Search results
Create a search report for a keyword and location, inspect the request fields, and try the SERP API.
Collect search results for a keyword, search engine, location, language, and device. This example requests up to ten Google results for coffee roasters in the United States.
Create a search report
Get an HV API key and store it as HV_API_KEY on your server. This example uses cURL 7.87 or later. Submitting a report may use credits.
curl --fail-with-body --silent --show-error \
--request POST 'https://api.highvolume.georanker.com/serp/new' \
--url-query "apikey=$HV_API_KEY" \
--header 'Content-Type: application/json' \
--data '{"keyword":"coffee roasters","searchEngine":"google","region":"US","language":"en","maxResults":10,"asynchronous":true}'
A successful submission returns HTTP 200 and a report ID. This shortened response shows a report that is still processing.
{
"id": "YOUR_REPORT_ID",
"ready": false,
"faulty": false,
"data": null
}
Save id, then retrieve that report. Wait between checks and inspect ready and faulty before reading data.organic.
| HTTP status | What to do |
|---|---|
200 | Save id and retrieve the same report. |
400 | Correct the input identified by the error. |
402 | Check the key holder's credits and hourly or daily limits. |
403 | Verify that the key is active and has access to the HV API. |
429 | Slow down requests and back off before retrying. |
If submission times out before you receive an ID, check whether it was accepted before resubmitting. A second submission can create another paid report.
Request fields
| Field | How to use it |
|---|---|
keyword | Send the unencoded search text. The API uses the text as supplied. |
searchEngine | Select the source. This example uses google. |
region | Use a country code such as US or a supported canonical region. For a custom regionSearch, omit region so it does not take precedence. |
language | Select a supported language, such as en. |
isMobile | Set to true for a mobile browser. A custom user agent takes precedence. |
maxResults | Controls the number of organic results to collect. Limits depend on the engine and plan. |
asynchronous | Set to true to submit first and retrieve the report later. |
priority | Affects turnaround and cost. Review pricing before choosing a priority. |
Open the complete request fields and errors for advanced options. See supported SERP features, languages, and regions when changing the example.
Create reports in a batch
Use POST /serp/new/list to submit a JSON array of up to 1,000 search request objects. Each object uses the same fields as the single request and returns its own report ID. If you set callbacks, each report triggers its callback separately. Batch request fields
Try this search
Select Try API on this page and connect your key to send the example. Review pricing and credit usage before submitting.
Requests and responses
Jump to an endpoint
Loading endpoints...