API Documentation

With SerpBear you can use the built-in API for your reporting tools like Google Data Studio.

Authentication

Serpbear uses Basic Authorization with Bearer Token to authenticate requests. In your Requests, you need to set a Authorization header with the value Bearer APIKEY . The API key is set by you in the .env file.

API Endpoints

SerpBear exposes the following routes that can be consumed with the API key:

GET: /api/keyword => Get the data of a keyword.

GET: /api/keywords => Get all the keywords of a domain.

GET: /api/domains => Get all the Domains.

POST: /api/refresh => Refresh the SERP positions of given keyword IDs.

POST: /api/cron => Immediately scrape the positions for all the keywords.

POST: /api/notify => Instantly Receive all keyword Positions as an email to your Inbox.

GET: /api/keyword

Get the full data of a keyword.

Parameters:

- id (Integer) => The Keyword ID.

Success Response:

GET: /api/keywords

Get all the keywords of a given domain name.

Parameters:

- domain (string) => Domain name.

Success Response:

GET: /api/domains

Get all the domains.

Parameters: None

Success Response:

Last updated