Add tags to keywords

Put static tags on keywords.

POST https://cotlet.dev/api/v1/accuranker/domains/{domain_id}/tags

write

Returns how many keywords were tagged and the tags applied. The tags are static and stay until removed. It reaches no one and is undone with remove_tags, so it does not wait for your OK.

Parameters

Parameters: add_tags
NameTypeDescription
domain_id string required string Domain ID from list_domains.
keyword_ids string[] required string[] Keyword IDs from list_keywords.
tags string[] required string[] Tag names. A tag that does not exist is created.

Request

cURL
curl -X POST https://cotlet.dev/api/v1/accuranker/domains/48213/tags \
  -H "Authorization: Bearer $COTLET_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"keyword_ids":["k_90311","k_90312","k_90340"],"tags":["pricing-pages"]}'
Python
result = client.call("accuranker", "add_tags", {"domain_id":"48213","keyword_ids":["k_90311","k_90312","k_90340"],"tags":["pricing-pages"]})
Node.js
const result = await cotlet.call('accuranker', 'add_tags', {"domain_id":"48213","keyword_ids":["k_90311","k_90312","k_90340"],"tags":["pricing-pages"]});
CLI
cotlet call accuranker add_tags --data '{"domain_id":"48213","keyword_ids":["k_90311","k_90312","k_90340"],"tags":["pricing-pages"]}'

Example response

JSON

{
  "tagged_keywords": 3,
  "tags_applied": [
    "pricing-pages"
  ],
  "tag_type": "static"
}

Sign in once. Your agent does the rest.

Sign up and add the apps you need. Free 7-day trial with 2,000 credits, no card needed.