Search Results
The top web search results for each search in a list: position, title, link and snippet, up to 10 a search. Turn on readPages to also get the text of each result page (charged per page read; a page that does not load costs nothing).
$0.00017 per search answered; $0.00126 per result page read when readPages is on
POST /api/v1/scrape/search-resultsParameters
| Name | Type | Required | Description |
|---|---|---|---|
queries | string[] | Required | Searches, one per item (up to 5,000 a run)Example: ["roofing contractors dallas", "funeral home Kansas City, MO"] |
maxResults | number | Optional | Results per search, 1 to 10Default: 10 (3 with readPages)Example: 10 |
region | string | Optional | Search region, like us-en or uk-enExample: us-en |
readPages | boolean | Optional | Also read each result page and add its title, description and textDefault: falseExample: false |
maxChars | number | Optional | With readPages: the most text kept a page, 1,000 to 30,000 charactersDefault: 15000Example: 15000 |
Examples
Top results for a list of searches
curl -X POST https://app.scrapercity.com/api/v1/scrape/search-results \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"queries": ["roofing contractors dallas", "funeral home Kansas City, MO"],
"maxResults": 10
}'Check status and download
curl -X GET https://app.scrapercity.com/api/v1/scrape/status/{runId} \
-H "Authorization: Bearer YOUR_API_KEY"
# When status is SUCCEEDED, download the CSV
curl -L https://app.scrapercity.com/api/downloads/{runId} -o search-results.csvUse Cases
- •Find the websites of a list of businesses by name and city
- •See who ranks for your keywords, in bulk
- •Feed fresh web pages on a topic into AI or research
Best Practices
- •Charged per search that answered; a search with no results is in the file and costs nothing
- •Columns: query, status (found or no_results), position, title, url, snippet, error; with readPages also page_title, description, text, truncated, and status read or not_read
Every scrape returns a runId. Poll GET /api/v1/scrape/status/{runId} until it completes, then download via GET /api/downloads/{runId}?format=csv.
Authenticate every request with Authorization: Bearer YOUR_API_KEY. See the full API reference for authentication, rate limits and error codes.