Google search results for a query.
GET/search
- Takes: Name
- Passive: the target is not contacted
Returns parsed results. Set output=csv for CSV; JSON is the default.
Query parameters
queryThe search term
outputSet to csv for CSV output
typeSet to images to request image results
deviceDevice to search as
locationLocation of the search
Response fields · 4ShowHide
search_information
Request metadata such as time taken, total results and detected location
organic_results[]
Organic results with title, URL and snippet
pagination
Next and previous page information
answer_box
Featured snippet or direct answer, when Google provides one
curl 'https://api.serpstack.com/search?query=coffee%20shops&access_key=YOUR_API_KEY'{
"search_information": {
"total_results": 1000
},
"organic_results": [
{
"title": "Example result",
"url": "https://example.com/",
"snippet": "An example snippet."
}
],
"pagination": {
"next": "https://example.com/next"
}
}