API

Keyword Groups

You are reading the Project API docs

Base URL: api4.seranking.com

Project API uses subscription limits. Fro more information visit API credit system.

Data API and Project API keys are not interchangeable — use the correct one to avoid authentication errors.

Data apikey example:
80cfee7d-xxxx-xxxx-xxxx-fc8500816bb3
(UUID format)
Project apikey example:
253a73adxxxxxxxxxxxxxx340aa0a939
(40-char hex)

API keys are available in your account. For any questions or 401 errors, email [email protected] for support.

Keyword Groups API provides endpoints to manage keyword groups within a project.


Add keyword group

POST https://api4.seranking.com/keyword-groups

Creates a new keyword group for the specified project.

Request parameters

ParameterTypeRequiredDescription
nameStringYesName of the keyword group to create.
site_idIntegerYesProject (site) ID to which the group will be added.

Request example

Copy
POST https://api4.seranking.com/keyword-groups
{"name": "groupname","site_id": 1}

Response parameters

If successful, the server returns the 201 HTTP status code. Returns HTTP 400 if no name or site ID is specified and HTTP 404 if the site is not found (for more information, see Error handling).

ParameterTypeDescription
group_idIntegerID of the created keyword group.

Response example

Copy
{ "group_id": 123456 }

Move keywords to another group

POST https://api4.seranking.com/keyword-groups/{group_id}/keywords

Moves the specified keywords to the target keyword group.

Request parameters

ParameterTypeRequiredDescription
group_idIntegerYesTarget keyword group ID (path parameter).
keyword_idsArrayYesArray of keyword IDs to move.

Request example

Copy
POST https://api4.seranking.com/keyword-groups/123/keywords
{ "keyword_ids": [1,2,3,4,5] }

Response parameters

If successful, the server returns the 204 HTTP status code. Returns HTTP 404 if the group is not found (for more information, see Error handling).

Response example

No response body.


Rename keyword group

PUT https://api4.seranking.com/keyword-groups/{group_id}

Renames the specified keyword group.

Request parameters

ParameterTypeRequiredDescription
group_idIntegerYesKeyword group ID (path parameter).
nameStringYesNew keyword group name.

Request example

Copy
PUT https://api4.seranking.com/keyword-groups/123
{ "name": "Updated Group Name" }

Response parameters

If successful, the server returns the 204 HTTP status code. Returns HTTP 400 if no name is specified and HTTP 404 if the group is not found (for more information, see Error handling).

Response example

No response body.


Delete keyword group

DELETE https://api4.seranking.com/keyword-groups/{group_id}

Deletes the specified keyword group.

Request parameters

ParameterTypeRequiredDescription
group_idIntegerYesKeyword group ID (path parameter).

Request example

Copy
DELETE https://api4.seranking.com/keyword-groups/123

Response parameters

If successful, the server returns the 204 HTTP status code. Returns HTTP 404 if the group is not found (for more information, see Error handling).

Response example

No response body.


List keyword groups

GET https://api4.seranking.com/keyword-groups/{site_id}

Returns a list of keyword groups for the specified project.

Request parameters

ParameterTypeRequiredDescription
site_idIntegerYesProject (site) ID (path parameter).

Request example

Copy
GET https://api4.seranking.com/keyword-groups/1

Response parameters

If successful, the server returns the 200 HTTP status code and an array of keyword groups. Returns HTTP 404 if the site is not found (for more information, see Error handling).

ParameterTypeDescription
idStringKeyword group ID.
nameStringKeyword group name.
creation_dateStringDate the keyword group was created (in YYYY-MM-DD).

Response example

Copy
[
{
"id": "123",
"name": "NewKeyGroup",
"creation_date": "2018-08-27"
},
{
"id": "456",
"name": "NewKeyGroup1",
"creation_date": "2018-08-27"
},
{
"id": "789",
"name": "NewKeyGroup2",
"creation_date": "2018-08-27"
}
]

Learn how SE Ranking’s API can boost your SEO!

Hi! Meet our product expert, Alex.

He’ll walk you through the API and show you how to get the most out of it.

  • Enjoy a tailored demo on integrating rich, structured SEO data into your stack.
  • Pin down every tech detail live—auth, endpoints, rate limits, data formats.
  • Compare usage tiers and pricing so you can unlock maximum data value.

Request a free demo to see our tools and integrations in action

By clicking this button, you agree to SE Ranking’s Terms of Services and Privacy Policy.