Appearance
Search
GET /v1/google/search
Performs a Google search and returns organic results with url, title, and description for each result. Supports an optional region parameter (2-letter country code) to get localized results from a specific country.
Authentication
All requests require the x-api-key header. Get your key at scrapecreators.com.
Query Parameters
| Name | Type | Required | Description | Example |
|---|---|---|---|---|
query | string | yes | Search query | austen allred |
region | string | no | 2 letter country code, ie US, UK, CA, etc This will show results from that country | US |
date_posted | enum(last-hour, last-day, last-week, last-month, last-year) | no | Date posted | last-hour |
page | number | no | Page number to retrieve | 1 |
Example Request
curl
bash
curl 'https://api.scrapecreators.com/v1/google/search?query=austen allred' \
-H 'x-api-key: $SCRAPECREATORS_API_KEY'Node / TypeScript
js
const params = new URLSearchParams({ query: 'austen allred' });
const res = await fetch(`https://api.scrapecreators.com/v1/google/search?${params}`, {
headers: { 'x-api-key': process.env.SCRAPECREATORS_API_KEY }
});
const data = await res.json();
console.log(data);Python
python
import os, requests
r = requests.get(
'https://api.scrapecreators.com/v1/google/search',
headers={'x-api-key': os.environ['SCRAPECREATORS_API_KEY']},
params={'query': 'austen allred'},
)
r.raise_for_status()
print(r.json())CLI
bash
scrapecreators google search --helpExample Response
json
{
"success": true,
"results": [
{
"url": "https://x.com/Austen",
"title": "Austen Allred ✓",
"description": "Among the dumbest assertions people make online is, “Remote work was better but companies brought everyone back in office to justify the rent they were paying and keep property values high.” As if companies are incapable of subleasing or selling buildings. 22 hours ago"
}
]
}Credits
Most ScrapeCreators endpoints consume 1 credit per successful response. Some heavier endpoints (transcripts, AI-driven enrichment, ad detail lookups) may cost more. Check GET /v1/credit-balance for your remaining balance.
Errors
| Status | Meaning | Action |
|---|---|---|
| 200 | Success. | Use the JSON payload. |
| 400 | Invalid or missing parameter. | Verify required parameters and value format. |
| 401 | Missing or invalid x-api-key. | Pass a valid API key in the header. |
| 402 | Out of credits. | Top up at scrapecreators.com or wait for plan reset. |
| 404 | Resource not found or private. | Confirm the handle, URL, or id and that the resource is public. |
| 429 | Rate limited. | Backoff and retry with exponential delay. |
| 500 | Server error or upstream platform failure. | Retry with backoff; report persistent errors to support. |