مستندات توسعه دهندگان

Ignore a keyword, or undo it

POST/sites/{siteId}/keywords/ignore
Scope
actions:write
ابزار MCP
ignore_keyword

Ignore a keyword, or undo it Hides the keyword from Keywords, Keyword gaps, content ideas and the opportunity counts. Kept by the keyword text, so it stays hidden after keyword and gap refreshes, and a gap keyword not in the list can be ignored too. on false undoes it. The same call twice changes nothing (changed false). Ignoring stops daily checks of the keyword. Recorded in the website's Activity as the key owner.

توضیح ها از سند OpenAPI می آیند و انگلیسی اند.

پارامترها

ناممحلتوضیح
siteIdاجباریpathstringWebsite id, from GET /sites.

بدنه درخواست

فیلدتوضیح
keywordstring · at most 120 characters; The keyword text
keyword_idstring · Or the keyword id, from GET /keywords
ontrue or false · Default true; false undoes it
reasonstring · at most 300 characters; Why, kept with it (at most 300 characters)
{
  "keyword": "bike shop login",
  "reason": "A competitor brand"
}

پاسخ

200 · application/json

فیلدتوضیح
keywordstring · required; The keyword text, normalised
ignoredtrue or false · required; Hidden now
changedtrue or false · required; False when it already was in that state
untrackedtrue or false · required; True when ignoring stopped its daily checks
linkaddress (URL) · required; The Keywords screen in the app

خطاها

کدمعنی
400Bad request. Codes: missing_keyword, bad_keyword, bad_on, bad_reason, reason_too_long.
401Missing, unknown or revoked key. Codes: missing_key, invalid_key.
403The key lacks the scope, covers another website, or its owner lost access. Codes: missing_scope, other_site, owner_left, no_owner, forbidden.
404Not found. Codes: not_found, keyword_not_found.
429Too many requests this hour for this key. Codes: rate_limited.

نمونه درخواست

curl -X POST \
  -H "Authorization: Bearer mr_ws_…" \
  -H "Content-Type: application/json" \
  -d '{"keyword":"bike shop login","reason":"A competitor brand"}' \
  "https://app.monoranks.com/api/v1/sites/SITE_ID/keywords/ignore"

نمونه پاسخ

{
  "keyword": "bike shop login",
  "ignored": true,
  "changed": true,
  "untracked": false,
  "link": "https://app.monoranks.com/sites/3f6c2a1e-8b4d-4c7a-9e21-5d0b7a6f4c13/keywords"
}

سرور MCP همین کار را با ابزار ignore_keyword انجام می دهد.