Skip to content

Status Codes

Just Serp API uses standard HTTP response codes to indicate the success or failure of an API request.

Success Codes

CodeMeaningCredit Charge
200Success. The request was successful and the data is returned.Yes

Error Codes

No credits are charged for these status codes.

CodeMeaningDescription
400Bad RequestThe request was unacceptable, often due to missing a required parameter.
401UnauthorizedNo valid API key provided.
402Insufficient CreditsYour account has run out of credits.
403ForbiddenThe API key doesn't have permissions for this resource.
404Not FoundThe requested resource doesn't exist.
429Too Many RequestsYou have hit your rate limit.
500Server ErrorSomething went wrong on our end.
503Service UnavailableThe server is currently unable to handle the request.

Handling Errors

When an error occurs, the API returns a JSON object containing an error message to help you diagnose the issue:

json
{
  "error": {
    "code": 401,
    "message": "Invalid API Key provided."
  }
}

We recommend implementing retry logic for 5xx errors with exponential backoff.