To get started, you first need to Signup for an account and generate an API Key
in your account's dashboard.
Once you have your key ready, you can start issuing requests to our servers using the X-API-KEY
header with its value set to whatever is shown in your dashboard. It's that simple!
API Key security information
Your
API Key
represents your account. It is important that it always remains asecret
and should therefore never be used in any front-end environment where it can be easily read or accessed.If the
API Key
is somehow misplaced or leaked, make sure to immediately revoke and replace it by a new one.
https://api.serpgrid.dev/{endpoint}
Below you'll find an example of what a request should look like together with its expected response. A response will typically include the following body fields:
http_code
HTTP integer status codehttp_message
A message relevant to the status codetimestamp
Unix timestamp denoting when the request arrivedexecution_ms
Integer containing number of milliseconds it took to execute the requestmessage
A message containing information about the execution outcomepayload
JSON object containing the response data (returns empty array if no data found)Additionally, the following headers will also be returned for all relevant requests:
X-Credits-Remaining
The number of credits that remain in your accountX-Credits-Expire
A datetime string with the expiration dateX-Credits-Used
The number of credits the operation consumed