Black Friday: double credits on your first month, any plan · ends Sunday, Nov 29Cyber Monday extension: double credits on your first month, any plan · ends tonightBlack Friday: 2x creditsCyber Monday: 2x creditsSee plans
ScraperCity logo

Search Results API Documentation

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 onPOST /api/v1/scrape/search-results

Parameters

NameTypeRequiredDescription
queriesstring[]RequiredSearches, one per item (up to 5,000 a run)Example: ["roofing contractors dallas", "funeral home Kansas City, MO"]
maxResultsnumberOptionalResults per search, 1 to 10Default: 10 (3 with readPages)Example: 10
regionstringOptionalSearch region, like us-en or uk-enExample: us-en
readPagesbooleanOptionalAlso read each result page and add its title, description and textDefault: falseExample: false
maxCharsnumberOptionalWith 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.csv

Use 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.