Google API endpoint

Google search API

Returns normalized Google web search results. Results are fetched through Rayobrowse-rendered Chrome with availability fanout and stale-cache fallback when available. The endpoint returns 502 when Google serves a challenge page or unusable HTML. Rate limit is enforced at 1 request per second, and if the limit is exceeded a 429 status code is returned with rate limit headers.

POSTapiKey3 credits/requestgoogle.SearchOptiongoogle.searchResponseDoc/google/search

Parameters

NameInTypeRequiredEnumExampleDescription
searchOptionbodyobjectYesSearch options
x-api-keyheaderstringYesAPI key required

Authentication

Send your scraping API key in the x-api-key header. Use the console API Keys page to rotate or select the active key.

Billing

Endpoint usage is metered in credits. The plan prices, included credits, limits, and overage rates below match the active backend billing configuration.

Credit cost
3 credits/request
Charged response
Successful 2xx responses
PlanPriceIncluded creditsDaily capRate limitOverage
Free$0/mo2,000500 daily credits5/minNo overage
Starter$9/mo20,0005,000 daily credits15/min$0.75/1,000 overage credits when enabled
Growth$29/mo100,00025,000 daily credits45/min$0.45/1,000 overage credits when enabled
Pro$79/mo400,000No daily cap120/min$0.30/1,000 overage credits
Business$199/mo1,200,000No daily cap300/min$0.20/1,000 overage credits
Enterprise$499/mo5,000,000No daily cap1,000/min$0.12/1,000 overage credits

Failure responses

StatusDescriptionSchema
400Invalid input#/definitions/app.Response
429Rate limit exceeded#/definitions/app.Response
500Internal server error#/definitions/app.Response
502Google upstream request failed#/definitions/app.Response

Request body example

{
  "country": "us",
  "keyword": "chatgpt",
  "language": "en",
  "limit": 10,
  "page": 1
}

Example response

{
  "code": 200,
  "msg": "OK",
  "data": {
    "result": [
      {
        "position": 1,
        "title": "ChatGPT",
        "website_name": "ChatGPT",
        "icon": "",
        "link": "https://chatgpt.com/",
        "Snippet": "ChatGPT helps you get answers and create."
      }
    ]
  }
}

Request schema

#/definitions/google.SearchOption

FieldTypeRequiredEnumBoundsExampleDescription
countrystringYesusCountry code
keywordstringYeschatgpt
languagestringYesenlanguage code
limitintegerNo10Number of items, from 10 to 100, inclusive
pageintegerNo1

Response schema

#/definitions/google.searchResponseDoc

FieldTypeRequiredEnumBoundsExampleDescription
codeintegerNo200
datagoogle.SearchRespNo
data.knowledge_graphgoogle.KnowledgeGraphNo
data.knowledge_graph.attributesarrayNo
data.knowledge_graph.attributes[].idstringNokc:/computer/software:developerAttribute ID
data.knowledge_graph.attributes[].labelstringNoDeveloperAttribute label
data.knowledge_graph.attributes[].valuestringNoOpenAI, MicrosoftAttribute value
data.knowledge_graph.descriptionstringNoChatGPT is a generative artificial intelligence chatbot developed by OpenAI.Description
data.knowledge_graph.sub_titlestringNoSoftwareSubtitle of the knowledge graph item
data.knowledge_graph.titlestringNoChatGPTTitle of the knowledge graph item
data.knowledge_graph.wikipedia_linkstringNohttps://en.wikipedia.org/wiki/ChatGPTWikipedia link
data.people_also_askarrayNo
data.people_also_ask[].answerstringNoChatGPT is a chatbot developed by OpenAI.Answer to the question
data.people_also_ask[].datestringNo2024-09-30Date of the response
data.people_also_ask[].linkstringNohttps://openai.com/chatgpt/Link to the source
data.people_also_ask[].questionstringNoWhat is ChatGPT?Question from "People Also Ask"
data.people_also_ask[].titlestringNoChatGPTTitle of the source
data.people_also_search_forarrayNoGemini, WhatsApp
data.related_searchesarrayNoWhat is ChatGPT?
data.resultarrayNo
data.result[].SnippetstringNoNever run out of your favorite coffees, teas and powders again with our auto-delivery subscription. Select how often your products arrive, pause and cancel ...
data.result[].iconstringNo
data.result[].linkstringNohttps://www.coffeebean.com/
data.result[].positionintegerNo1
data.result[].timestringNo7 hours ago
data.result[].titlestringNoHome | The Coffee Bean & Tea Leaf
data.result[].website_namestringNoOpenAI
msgstringNoOK

Example request

curl -X POST "https://api.crawlora.net/api/v1/google/search" -H "x-api-key: <api-key>" -H "Content-Type: application/json" -d '{"country":"us","keyword":"chatgpt","language":"en","limit":10,"page":1}'

TypeScript fetch

const url = new URL("https://api.crawlora.net/api/v1/google/search");
const headers = new Headers();
headers.set("x-api-key", "<api-key>");
headers.set("Content-Type", "application/json");
const response = await fetch(url, {
  method: "POST",
  headers,
  body: JSON.stringify({
    "country": "us",
    "keyword": "chatgpt",
    "language": "en",
    "limit": 10,
    "page": 1
  }),
});
const payload = await response.json();