Contact SerpHunt
[email protected]
Headquarters
6 Mustaqillik Ave
Tashkent, Uzbekistan

Authenticate and make your first API request

Start by listing projects to see which sites your token can access.

Authorization header

Send the token from API access in the HTTP header Authorization. For REST, use the format Bearer: <token>. For REST, include a colon after Bearer and a space before the token. MCP uses a different header format, Bearer <token>.

Authorization: Bearer: <your SerpHunt token>

Get a list of projects

In this Bash or zsh example, the environment variable SERPHUNT_API_TOKEN must contain your token. The command retrieves the list of projects.

curl --get "https://seo.serphunt.com/api/v1/projects" \
  --header "Authorization: Bearer: ${SERPHUNT_API_TOKEN}" \
  --header "Accept: application/json" \
  --data-urlencode "limit=10" \
  --data-urlencode "offset=0"

Read the response

A successful API call returns JSON. In the documented response, status indicates the result, data contains records, and message gives the error message. Check the HTTP status as well. Without a token, the server returns 401 Unauthorized, and the response body may be plain text.

For HTTP 401, check the domain, your SerpHunt token, and the authorization header format. For HTTP 429, see API rate limits.

This website stores cookies on your computer.