---
title: "Surfer API Troubleshooting"
description: "Having troubles with Surfer API calls? Review the most common issues to quickly find a possible solution"
url: https://docs.surferseo.com/pl/articles/8196553-surfer-api-troubleshooting
collection: "API"
updated: 2026-10-06
language: pl
alternates: [en, fr, de]
---

# Surfer API Troubleshooting

Having troubles with Surfer API calls? Review the most common issues to quickly find a possible solution

## Reference Table:

<table data-id="a6c6daf8-1c4c-46b0-8748-cc972245b1b6" style="min-width: 100px;"><colgroup><col style="min-width: 25px;"><col style="min-width: 25px;"><col style="min-width: 25px;"><col style="min-width: 25px;"></colgroup><tbody><tr><td colspan="1" rowspan="1"><p data-id="f3f7d28e-6f9e-4d64-a5a6-35e2c09fcf6f"><strong>Code</strong></p></td><td colspan="1" rowspan="1"><p data-id="42b7bfc2-6b9e-4975-a91d-261aa38bf583"><strong>Name</strong></p></td><td colspan="1" rowspan="1"><p data-id="d35a75fe-7a25-478f-a1ac-81af2ce8854d"><strong>Plain-English cause</strong></p></td><td colspan="1" rowspan="1"><p data-id="967cdc91-516f-4fef-825c-c86c2824ddfa"><strong>Fix</strong></p></td></tr><tr><td colspan="1" rowspan="1"><p data-id="b2673eb8-1b1d-4567-8cba-c8eae1331464">400</p></td><td colspan="1" rowspan="1"><p data-id="fb03a9c8-6a98-47b8-b299-1506248bfa48">Bad Request</p></td><td colspan="1" rowspan="1"><p data-id="59a22755-323f-4c48-a5a0-18b56be8a47a">Syntax error in your JSON (missing comma, wrong bracket)</p></td><td colspan="1" rowspan="1"><p data-id="6f10af5e-ecc4-45aa-8beb-8d9cacf6cbe5">Validate your request payload</p></td></tr><tr><td colspan="1" rowspan="1"><p data-id="549014f7-9da0-408c-a10f-d18f810554fa">401</p></td><td colspan="1" rowspan="1"><p data-id="5154f945-0eb6-40e7-9dae-e113ce952370">Unauthorized</p></td><td colspan="1" rowspan="1"><p data-id="b6d04044-31b2-4bf5-b76d-e20f534b05af">Missing or wrong API key, or wrong header name</p></td><td colspan="1" rowspan="1"><p data-id="b02276ee-5753-4403-9f3b-ac11371a44b7">Use <code>API-KEY</code> header with the account owner's key</p></td></tr><tr><td colspan="1" rowspan="1"><p data-id="7ea5c0e3-d5fd-4dc8-89cf-91daa85d2fa1">403</p></td><td colspan="1" rowspan="1"><p data-id="9d9f2a06-fb31-46d7-8126-a873266abf78">Forbidden</p></td><td colspan="1" rowspan="1"><p data-id="04f2d73f-ba6c-4146-9dc7-5242ea55b286">Valid key, but this specific tool or endpoint isn't enabled on your account, having API access doesn't automatically unlock every tool (e.g. Audit, SERP Analyzer, or Content Editor may require an add-on or higher plan tier)</p></td><td colspan="1" rowspan="1"><p data-id="2647dcc1-51eb-4414-a4b1-91cfe212d3c7">Check whether the feature requires a separate add-on or plan upgrade</p></td></tr><tr><td colspan="1" rowspan="1"><p data-id="e535f51a-731d-499c-869f-0c43a46d573c">404</p></td><td colspan="1" rowspan="1"><p data-id="d044e6e5-e625-4fd9-a59f-ae016220870e">Not Found</p></td><td colspan="1" rowspan="1"><p data-id="3a8857aa-a954-4cad-a7cc-979003d41601">Wrong base URL, or the resource ID doesn't exist/belong to your account</p></td><td colspan="1" rowspan="1"><p data-id="dfcfb03e-79b3-432b-a712-780b93402507">Double-check the URL and ID</p></td></tr><tr><td colspan="1" rowspan="1"><p data-id="de646788-0641-4848-b07e-418affda5c1c">406</p></td><td colspan="1" rowspan="1"><p data-id="a31502a9-1248-4d3b-a282-e802724fc232">Not Acceptable</p></td><td colspan="1" rowspan="1"><p data-id="cbf0733a-1cff-42ac-885e-77a30391a532">Unsupported response format requested (V2 only)</p></td><td colspan="1" rowspan="1"><p data-id="67c5c756-2316-41cc-b0b9-b478739f49cc">Omit the <code>Accept</code> header, or set it to <code>application/json</code></p></td></tr><tr><td colspan="1" rowspan="1"><p data-id="872f66ef-01d6-4826-8502-66d5193a1821">409</p></td><td colspan="1" rowspan="1"><p data-id="23c82cc5-c9f2-4b14-bcb5-ab578ed20455">Conflict</p></td><td colspan="1" rowspan="1"><p data-id="3231dfc9-48dc-4bc9-b380-ab8b62254e12">Idempotency key conflict (V2 only)</p></td><td colspan="1" rowspan="1"><p data-id="10e6f2e4-aefb-4a44-95f9-19ed05a046be">Use a unique idempotency key per request</p></td></tr><tr><td colspan="1" rowspan="1"><p data-id="4d9fe440-fc7c-4796-b1ca-78e17d533a1a">413</p></td><td colspan="1" rowspan="1"><p data-id="16437c68-abcc-420d-982b-edcb3673a9e2">Content Too Large</p></td><td colspan="1" rowspan="1"><p data-id="3e1af022-a93f-4a7f-81f5-2d9e023f21ee">Request body exceeds size limit</p></td><td colspan="1" rowspan="1"><p data-id="d3897a40-78a9-4f14-a1f6-46dfdc209341">Trim input (AI Detector max: 100,000 chars)</p></td></tr><tr><td colspan="1" rowspan="1"><p data-id="66bd30db-374d-406c-9831-a2a45434abc3">415</p></td><td colspan="1" rowspan="1"><p data-id="380a1689-9405-44d0-8efd-aeb905e8a035">Unsupported Media Type</p></td><td colspan="1" rowspan="1"><p data-id="a1e1ff47-09e8-4c62-8ca3-2282efa22388">Wrong <code>Content-Type</code> header</p></td><td colspan="1" rowspan="1"><p data-id="83800a65-bbf5-4191-8304-e4fce34f61aa">Set <code>Content-Type: application/json</code></p></td></tr><tr><td colspan="1" rowspan="1"><p data-id="a4f31d50-7602-4f50-b76c-5fbf8cc6eb3b">422</p></td><td colspan="1" rowspan="1"><p data-id="ddb904c5-523a-412e-b1e7-d1bff687c42e">Quota Exceeded</p></td><td colspan="1" rowspan="1"><p data-id="3ab61b81-1a95-4835-8e0f-776bafac9a55">You've used up your plan's credits for this tool</p></td><td colspan="1" rowspan="1"><p data-id="71b66642-3093-4a4d-a682-3acc354e4d4e">Wait for billing reset or upgrade</p></td></tr><tr><td colspan="1" rowspan="1"><p data-id="83082d56-dd09-4e3c-9ae9-844c0633d485">422</p></td><td colspan="1" rowspan="1"><p data-id="079c795b-74e0-4d39-876a-4b5d045d405a">Unprocessable Entity</p></td><td colspan="1" rowspan="1"><p data-id="30c44b07-3a82-423c-b5d7-3239b14277da">Missing required parameter or wrong data type</p></td><td colspan="1" rowspan="1"><p data-id="d0f2b990-31a5-4916-8943-df3da2d93e08">Check the endpoint's required fields in the API docs</p></td></tr><tr><td colspan="1" rowspan="1"><p data-id="aa7b13f1-f740-4c35-99c9-dabdc20382b9">429</p></td><td colspan="1" rowspan="1"><p data-id="7e5cc65f-49f3-4caf-831a-2d189eb602cf">Rate Limit Exceeded</p></td><td colspan="1" rowspan="1"><p data-id="45703119-b8a8-4594-95af-ea4f5ae51b85">Too many requests per second/minute</p></td><td colspan="1" rowspan="1"><p data-id="bbfcea54-5318-48ff-b65f-18e5fdfc475b">Check <code>x-ratelimit-reset</code> for when the window resets, then retry with backoff</p></td></tr><tr><td colspan="1" rowspan="1"><p data-id="2df171e7-8a51-4a1f-b085-f946ef29ae56">500</p></td><td colspan="1" rowspan="1"><p data-id="cfcabc2c-4c29-4b45-be85-8c64fa129653">Internal Server Error</p></td><td colspan="1" rowspan="1"><p data-id="96033c32-9091-4192-9461-1063dd2545bd">Server-side issue, or empty CE query that was never opened</p></td><td colspan="1" rowspan="1"><p data-id="bf48b216-c7c4-438a-927f-5068d5acc344">Retry after a few minutes; if persistent, contact Support</p></td></tr></tbody></table>

* * *

## Possible issues you might come across while using the API:

## 1\. Request results in a generic HTML response

The URL you specified in the request is invalid and does not correspond to an API endpoint.

## 2\. Any request results in a 401 Unauthorized with the "Access denied." message

The specified API key is incorrect, missing, or your plan doesn't support making API requests.

Please remember that the header "Key" has to be explicitly named "API-KEY".

## 3\. Any request results in a 403 Forbidden with the "Access denied." message

Your current plan doesn’t support API. Please check your current subscription plan in the app settings and compare it to available plans with API on our [pricing page](https://surferseo.com/pricing/).

## 4\. POST requests result in 422 Unprocessable Entity with "Quota exceeded" message

-   **Audit and Content Editor:**
    

This means you have reached the usage limit for that particular tool in your current billing period. Confirm your available credit limit from your [usage page](https://app.surferseo.com/settings/current_usage).

-   **SERP Analyzer:**
    

You exceeded your daily quota (100 queries/day by default). You can either wait or reach out to our Sales team to extend the limits with a custom Enterprise plan.

## 5\. POST requests result in 400 Bad Request with "Internal server error" message

Your request contains a syntax error, for example, a missing comma.

## 6\. POST requests result in 422 Unprocessable Entity with JSON message

Your request most likely doesn't contain the required parameters (such as missing keywords), or the query is malformed (a string was provided instead of an Array).

## 7\. GET CE content requests result in 500 Internal Server Error

This means the query has no content stored. Most likely, it is an empty query that has never been visited via the app.

## 8\. GET SERP Analyzer search\_results requests result in 404 Not found with "Not found." message

The ID you specified in the URL of your request is incorrect, or this ID does not belong to the account associated with that API key.

## 9\. GET SERP Analyzer search\_results requests result in 200 OK, but most or some rows contain empty Strings

This means that the query did not complete all necessary calculations.

You can reference the 3rd column, "state," to see the state of each competitor crawl.

Similarly to regular queries:

-   "completed" - crawl went through successfully, present data is based on content we were served with (doesn't contain empty values, default value is "0")
    
-   "scheduled" - crawl is still processing (contains empty Strings)
    
-   "failed" - crawl finished unsuccessfully - most likely we were either blocked, or we timed out while trying to access that URL (contains empty Strings)
    

## 10\. GET SERP Analyzer prominent\_terms requests result in 404 Not found with the "Not found" message

The ID you specified in the URL of your request is incorrect, or this ID does not belong to the account associated with that API key.

If you are sure that the ID is correct, then either:

-   This query is still processing (listed as "scheduled" by exports/csv/serp\_analyzer endpoint)
    

or

-   We were not able to find any prominent phrases for that particular query, most likely due to a lack of sufficient written content within SERP competitors.
    

## 11\. ANY request leading to 429 Too Many Requests

You've exceeded the rate limit. All endpoints have a default limit of **10 requests/sec**, **except for SERP batch: 10 requests/min**. Check the `Retry-After` header on the response for how long to wait, then retry. For automated workflows, implement exponential backoff. If you're consistently hitting this, review your request frequency or contact Support.

## 12\. POST leading to 406 Not Acceptable

Note that this is for v2 only. The response format you requested isn’t available. This usually means an `Accept` header was included with an unsupported value. Remove it or set it to `application/json`.

## 13\. ANY request → 404 Not Found (wrong base URL)

Mind that this is different from the [SERP-specific 404](https://docs.surferseo.com/en/articles/8196553-surfer-api-troubleshooting.md#heading-7-8-get-serp-analyzer-search-results-requests-result-in-404-not-found-with-not-found-message) above. If you’re getting a 404 on a non-SERP endpoint, your base URL is likely wrong. Make sure you’re hitting:

-   v1: `https://app.surferseo.com/api/v1/`
    
-   v2: `https://app.surferseo.com/api/v2/`
    

Not `api.surferseo.com` or `surferseo.com/api/…` or any other variation.

## 14\. POST → 413 Content Too Large

Your request body exceeds the size limit. Most common on the AI Detector (max 100k characters) and Humanizer (minimum 128 characters, but very large inpts may be rejected). Trim your input and try again.

## 15\. ANY request → 415 Unsupported Media Type

Your request is using an unsupported `Content-Type` header. All requests must use `Content-Type: application/json`.

* * *

## Additional resources:

[Surfer API Introduction](https://docs.surferseo.com/en/articles/5700335-surfer-api-introduction.md)

[Surfer API Documentation (v1)](https://app.surferseo.com/api/v1/docs#section/Introduction)

[Surfer API Documentation (v2)](https://app.surferseo.com/api/v2/docs)

[Surfer API Examples of Use](https://docs.surferseo.com/en/articles/8201326-surfer-api-examples-of-use.md)
