Not as of now as I just tried. The Custom Search API is a rather different beast than other APIs, probably due to its age. I tried converting the calendar demo but the API says it wants the API key parameter, which per
Google's own article, should also be possible using OAuth 2.0 but clearly this is not the case.
So, I think you can ignore using that package for now, and do it a little bit more manually:
{$mode objfpc}{$H+}
uses
opensslsockets,fphttpclient,fpjson,jsonparser;
var
SearchResult,ResultItem: TJSONObject;
ResultEnum: TJSONEnum;
begin
SearchResult := GetJSON(TFPHTTPClient.SimpleGet('https://www.googleapis.com/customsearch/v1?key=<use yours>&cx=<also use yours>&q=<your query here>')) as TJSONObject;
for ResultEnum in SearchResult.Find('items') do begin
ResultItem := ResultEnum.Value as TJSONObject;
WriteLn(ResultItem['title'].AsString);
WriteLn(ResultItem['link'].AsString);
WriteLn(ResultItem['snippet'].AsString);
WriteLn;
end;
SearchResult.Free;
end.
You can create the search engine ID (cx parameter) from
here while the API key can be created
here.
And if somebody is interested in making the demo works, attached is the converted calendar demo project to use TGoogleCustomsearchAPI.