String Web Access API
Search

Search overview

Run a Google search and get the top organic results as structured JSON.

POST /search runs a Google search for a query and returns the top organic results as structured JSON — title, URL, display URL, snippet, and position.

curl https://request.usestring.ai/v1/search \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{ "query": "best coffee shops in san francisco" }'

Response

{
  "results": [
    {
      "position": 1,
      "title": "Example Result Title",
      "url": "https://example.com/page",
      "displayUrl": "https://example.com › page",
      "snippet": "A short description of the page as shown on the results page."
    }
  ]
}
FieldDescription
position1-based rank of the result on the results page.
titleResult title as shown on the results page.
urlDestination URL the result links to.
displayUrlHuman-readable URL shown beneath the title.
snippetDescription text shown with the result.

Pricing

Each search is billed at the browser standard rate — $2.00 per 1,000 searches on Starter, $1.00 per 1,000 on Growth. See Pricing.

Use Search to find the right pages for a query, then Fetch those URLs to pull their content.

On this page