Text search API documentation

Google search results API documentation

Send one server-side request and receive structured Google text search results with country, language, and page targeting.

One endpoint for text search

Send a JSON body with an HTTP POST request to /api/v1/search. Authenticate with the X-API-Key header or an Authorization Bearer token.

Search parameters

NameTypeRequiredDefaultDescription
qstringYesNoneThe text to search for. Use 1 to 300 characters.
glcountry codeNousThe country used to localize the search results.
hllanguage codeNoenThe language used for the search interface and results.
pageintegerNo1The result page to request. Accepted values are 1 through 10.

Credits

One successful API or Playground response uses one credit, including a cached response. Failed requests do not use a search credit. The Free plan includes 100 credits each calendar month.

Errors

HTTPCodeMeaning
400INVALID_SEARCH_REQUEST or INVALID_JSONThe request body is missing, malformed, or contains an invalid value.
401AUTH_REQUIRED or INVALID_CREDENTIALSThe request does not include a valid API key or account session.
402CREDITS_EXHAUSTEDThe account does not have a credit available for this request.
413REQUEST_BODY_TOO_LARGEThe JSON request body is larger than the accepted limit.
502PROVIDER_UNAVAILABLE or PROVIDER_INVALID_RESPONSEThe upstream search service could not return a valid response.
504PROVIDER_TIMEOUTThe upstream search did not finish before the request deadline.