API

URL Tags

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.

URL Tags API provides endpoints to manage landing page tags within a site.


List tags

GET https://api4.seranking.com/sites/{site_id}/url-tags

Returns a list of landing page tags added to domains and/or links within the specified site.

Request parameters

ParameterTypeRequiredDescription
site_idIntegerYesWebsite ID (path parameter).

Request example

Copy
GET https://api4.seranking.com/sites/1/url-tags

Response parameters

If successful, the server returns the 200 HTTP status code and an array of tags.

ParameterTypeDescription
idStringTag ID.
nameStringTag name.
urlArrayList of links the tag is added to.
domainArrayList of domains the tag is added to.

Response example

Copy
[
{
"id": "51",
"name": "tag1",
"url": [ "https://test.com" ],
"domain": [ "www.flotenk.com", "google.com" ]
},
...
]

Add tag

POST https://api4.seranking.com/sites/{site_id}/url-tags

Creates a tag within the specified site and optionally attaches it to links and/or domains. You can add a maximum of 20 tags to one site.

Request parameters

ParameterTypeRequiredDescription
site_idIntegerYesWebsite ID (path parameter).
nameStringYesTag name.
urlsArrayNoList of links the tag is added to.
domainsArrayNoList of domains the tag is added to.

Request example

Copy
POST https://api4.seranking.com/sites/1/url-tags
{
"name": "tag1",
"urls": ["http://url.com/path"],
"domains": ["test.com"]
}

Response parameters

If successful, the server returns the 200 HTTP status code and the created tag ID. Returns HTTP 400 if the maximum number of tags per site is exceeded (for more information, see Error handling).

ParameterTypeDescription
tag_idIntegerCreated tag ID.

Response example

Copy
{ "tag_id": 1 }

Update tag assignment

PUT https://api4.seranking.com/sites/{site_id}/url-tags

Assigns tags to the specified links and/or domains. All previously assigned tags for the submitted links and domains are removed and replaced with the provided tag IDs.

Request parameters

ParameterTypeRequiredDescription
site_idIntegerYesWebsite ID (path parameter).
tag_idsArrayYesList of tag IDs to assign.
urlsArrayNoList of links to update.
domainsArrayNoList of domains to update.

Request example

Copy
PUT https://api4.seranking.com/sites/1/url-tags
{
"tag_ids": [1, 2],
"urls": ["http://url.com/path"],
"domains": ["test.com"]
}

Response parameters

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

Response example

No response body.


Delete tag

DELETE https://api4.seranking.com/sites/{site_id}/url-tags/{tag_id}

Deletes a tag from the specified site.

Request parameters

ParameterTypeRequiredDescription
site_idIntegerYesWebsite ID (path parameter).
tag_idIntegerYesTag ID (path parameter).

Request example

Copy
DELETE https://api4.seranking.com/sites/1/url-tags/51

Response parameters

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

Response example

No response body.

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.