{"openapi":"3.1.0","info":{"title":"SerpDino REST API","version":"1.0.0","summary":"Programmatic access to keyword rankings, live SERP data, keyword ideas, competitor analysis, and Core Web Vitals.","description":"Programmatic access to keyword rankings, live SERP data, keyword ideas, competitor analysis, and Core Web Vitals.\n\n## Authentication\nSend `Authorization: Bearer sd_your_key_here` on every request. Create keys in Dashboard → Settings → API Keys.\n\n## Error handling\n- All error responses are JSON. The error message lives in the `message` field (NOT `error`).\n- Some responses include `success: false` alongside `message`; account/auth errors may omit `success` entirely. Clients should treat any non-2xx status OR `success === false` as an error.\n- `/api/projects/keyword-ideas` returns HTTP 200 with `{ success: true, ideas: [] }` even when the upstream scraper is unreachable — an empty `ideas` array means \"no data available right now,\" not necessarily success.\n- Every endpoint on this API requires an **active paid subscription**. The Free plan has full access to the dashboard but not to the API: a key issued while the account was subscribed stops working the moment it drops to Free, and returns HTTP 403 `{ message: \"The Free plan does not include API access…\", planRequired: true }`.\n- Many read endpoints bypass auth entirely when the target project has `shared: true` (public dashboard links). Affected: `/api/projects/:id`, `keyword-updates`, `position-history`, `keyword-volumes`, `competitor-positions`, `pages`, `pages-pagespeed`, `notes` (GET), `export`, `export-agent`.\n- These domain-level read endpoints require an API key (or dashboard session): `/api/projects/competitors-filtered`, `/api/projects/pagespeed`, `/api/projects/crux-history`, `/api/projects/similarweb`. They read from our DB cache only — no live upstream calls. Each is rate-limited to 60 req / min (600 / hour) per account, plus a daily cap of 400 new-to-us domains. Cached domains never count against that cap.\n\n## MCP\nRemote MCP endpoint: https://serpdino.com/api/mcp. Works with Claude, ChatGPT, Cursor, and any MCP-compatible client.","contact":{"email":"support@serpdino.com","url":"https://serpdino.com"},"license":{"name":"Proprietary"}},"servers":[{"url":"https://serpdino.com"}],"tags":[{"name":"Projects","description":"Create and manage SEO tracking projects."},{"name":"Folders","description":"Organise projects into folders."},{"name":"Keywords","description":"Track keywords inside a project."},{"name":"Ranking Data","description":"Read keyword positions, SERP snapshots, and volume data."},{"name":"Keyword Research","description":"Discover new keywords and run live SERP / traffic checks."},{"name":"Local (Google Maps geo-grid)","description":"Track a Google Maps business across a grid of GPS points. Flow: resolve the business with `GET /api/local/business-details`, create a project with `type: \"local\"` (`POST /api/projects`), add keywords (`POST /api/projects/keywords`), start a scan (`POST /api/scrape/new-keywords`), poll `GET /api/projects/local-progress`, then read results. Each keyword × grid point is one check costing 1 credit, charged only on success — a 5×5 grid with 3 keywords is 75 credits per scan. Create the project with `updateFrequency: \"ondemand\"` to run scans only when you call the API: no recurring scans and no automatic first scan. Results are stored per UTC day; scanning the same keyword and point again on the same day replaces that day's result and is charged again."},{"name":"Page Monitor","description":"Check your own pages on every update: whether Google has them indexed, HTTP status and redirects, meta robots, canonical, indexability and load speed. Create a project with `type: \"monitor\"` and `domain` (`POST /api/projects`), then add pages. 1 credit per page per check covers the whole check, charged only when it completes; failed checks are retried automatically at no charge. On a scheduled project a newly added page gets its first check within about a minute, which is charged. Use `updateFrequency: \"ondemand\"` to check only via `POST /api/scrape/monitor-run`. Readings are stored one per page per UTC day; checking a page again the same day replaces that day's reading. Indexing is checked on google.com (US, English) with a `site:` query. The `X-Robots-Tag` response header is not read, so a noindex sent only in that header is not detected."},{"name":"Competitors","description":"Compare competitor rankings and traffic."},{"name":"Performance","description":"Page-level rankings and Core Web Vitals."},{"name":"Notes","description":"Timeline annotations for a project."},{"name":"Account","description":"Check usage and limits."},{"name":"Export","description":"Export project data as Markdown or CSV."},{"name":"API Keys","description":"Create and revoke API keys programmatically."}],"components":{"securitySchemes":{"ApiKeyAuth":{"type":"http","scheme":"bearer","bearerFormat":"sd_xxxxxxxx","description":"API key with `sd_` prefix. Send as `Authorization: Bearer sd_your_key_here`."}}},"security":[{"ApiKeyAuth":[]}],"paths":{"/api/projects":{"get":{"tags":["Projects"],"summary":"List all projects","operationId":"get_api_projects","responses":{"200":{"description":"Success","content":{"application/json":{"example":{"success":true,"projects":[{"_id":"65f1c2a8e1234567890abcde","name":"Acme Corp","domain":"acme.com","aliases":[],"competitors":["competitor.com"],"folder":null,"updateFrequency":"daily","serpTop":50,"createdDate":"2025-01-15T08:32:11.000Z"}]}}}},"400":{"description":"Bad Request — Missing required parameter or invalid value","content":{"application/json":{"example":{"success":false,"message":"Missing required parameter or invalid value"}}}},"401":{"description":"Unauthorized — Missing or invalid API key. Body: { message } or { success: false }","content":{"application/json":{"example":{"success":false,"message":"Missing or invalid API key. Body: { message } or { success: false }"}}}},"403":{"description":"Forbidden — No API access on the current plan (Free), or the account is blocked. Body: { message, planRequired: true }","content":{"application/json":{"example":{"success":false,"message":"No API access on the current plan (Free), or the account is blocked. Body: { message, planRequired: true }"}}}},"404":{"description":"Not Found — Resource (project, folder, note) does not exist or belongs to another user","content":{"application/json":{"example":{"success":false,"message":"Resource (project, folder, note) does not exist or belongs to another user"}}}},"429":{"description":"Too Many Requests — Rate limit exceeded. /api/tools/serp-check allows 10 req / 60s per API key, /api/tools/traffic-check 20 req / 60s. /api/projects/keyword-ideas allows 15 req / min (150 / hour) per account. competitors-filtered / pagespeed / crux-history / similarweb allow 60 req / min (600 / hour) per account, plus a daily quota of 400 new-to-us domains. Body includes retryAfter (seconds); a Retry-After header is also set.","content":{"application/json":{"example":{"success":false,"message":"Rate limit exceeded. /api/tools/serp-check allows 10 req / 60s per API key, /api/tools/traffic-check 20 req / 60s. /api/projects/keyword-ideas allows 15 req / min (150 / hour) per account. competitors-filtered / pagespeed / crux-history / similarweb allow 60 req / min (600 / hour) per account, plus a daily quota of 400 new-to-us domains. Body includes retryAfter (seconds); a Retry-After header is also set."}}}},"500":{"description":"Server Error — Internal server error","content":{"application/json":{"example":{"success":false,"message":"Internal server error"}}}}},"security":[{"ApiKeyAuth":[]}]},"post":{"tags":["Projects"],"summary":"Create a new project","description":"Returns HTTP 201 on success. Fires fire-and-forget triggers for keyword suggestions, SimilarWeb, PageSpeed, and competitor analysis. For a Google Maps geo-grid project pass `type: \"local\"` with `business` and `localGrid` instead of `domain` — see the Local section.","operationId":"post_api_projects","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","description":"Project name"},"type":{"type":"string","description":"serp | local | monitor (default: serp)","enum":["serp","local","monitor"]},"domain":{"type":"string","description":"Target domain (e.g. example.com). Lowercased server-side. Required for serp and monitor projects; not used by local projects."},"business":{"type":"object","description":"Local projects only, required there: the `business` object returned by `GET /api/local/business-details` (needs at least `placeId`, `name`, numeric `lat`/`lng`)."},"localGrid":{"type":"object","description":"Local projects only: `{ mode: \"grid\" | \"circle\", size, stepKm }` centred on the business, or `{ mode: \"custom\", points: [{ lat, lng }] }`. Default: circle, size 5, 1 km."},"folder":{"type":"string","description":"Folder ID to place project in"},"icon":{"type":"string","description":"Icon image URL. Default: the favicon of the project domain"},"aliases":{"type":"string","description":"Comma/newline-separated alternative domains (treated as same property)"},"competitors":{"type":"array","items":{"type":"string"},"description":"Competitor domains (PUT only — POST ignores this field)"},"shared":{"type":"boolean","description":"Whether project is shared via public link (default: false)"},"updateFrequency":{"type":"string","description":"daily | every3days | weekly | biweekly | custom | ondemand (default: daily). `ondemand` never runs on its own — checks run only via `POST /api/scrape/new-keywords`.","enum":["daily","every3days","weekly","biweekly","custom","ondemand"]},"customUpdateDays":{"type":"array","items":{"type":"number"},"description":"Required when updateFrequency=custom. Array of weekday numbers 0–6 (0=Sunday)."},"updateTime":{"type":"number","description":"Hour of day 0–23 to run updates (default: 12)"},"updateTimezone":{"type":"string","description":"IANA timezone name (default: UTC)"},"serpTop":{"type":"number","description":"50 | 100 — depth of SERP scrape (default: 50)","enum":[50,100]}},"required":["name"]}}}},"responses":{"201":{"description":"Success","content":{"application/json":{"example":{"success":true,"project":{"_id":"65f1c2a8e1234567890abcde","name":"My Project","domain":"example.com","updateFrequency":"daily","serpTop":50},"message":"Project created successfully"}}}},"400":{"description":"Bad Request — Missing required parameter or invalid value","content":{"application/json":{"example":{"success":false,"message":"Missing required parameter or invalid value"}}}},"401":{"description":"Unauthorized — Missing or invalid API key. Body: { message } or { success: false }","content":{"application/json":{"example":{"success":false,"message":"Missing or invalid API key. Body: { message } or { success: false }"}}}},"403":{"description":"Forbidden — No API access on the current plan (Free), or the account is blocked. Body: { message, planRequired: true }","content":{"application/json":{"example":{"success":false,"message":"No API access on the current plan (Free), or the account is blocked. Body: { message, planRequired: true }"}}}},"404":{"description":"Not Found — Resource (project, folder, note) does not exist or belongs to another user","content":{"application/json":{"example":{"success":false,"message":"Resource (project, folder, note) does not exist or belongs to another user"}}}},"429":{"description":"Too Many Requests — Rate limit exceeded. /api/tools/serp-check allows 10 req / 60s per API key, /api/tools/traffic-check 20 req / 60s. /api/projects/keyword-ideas allows 15 req / min (150 / hour) per account. competitors-filtered / pagespeed / crux-history / similarweb allow 60 req / min (600 / hour) per account, plus a daily quota of 400 new-to-us domains. Body includes retryAfter (seconds); a Retry-After header is also set.","content":{"application/json":{"example":{"success":false,"message":"Rate limit exceeded. /api/tools/serp-check allows 10 req / 60s per API key, /api/tools/traffic-check 20 req / 60s. /api/projects/keyword-ideas allows 15 req / min (150 / hour) per account. competitors-filtered / pagespeed / crux-history / similarweb allow 60 req / min (600 / hour) per account, plus a daily quota of 400 new-to-us domains. Body includes retryAfter (seconds); a Retry-After header is also set."}}}},"500":{"description":"Server Error — Internal server error","content":{"application/json":{"example":{"success":false,"message":"Internal server error"}}}}},"security":[{"ApiKeyAuth":[]}]},"put":{"tags":["Projects"],"summary":"Update project settings","description":"_id and name are always required, domain too except on local projects (the handler rejects with 400 if any is missing). Settings you omit are reset to their defaults (folder, icon, schedule, timezone, sharing) — to change a single field, send the existing values for the others. A project's type never changes; a local project's grid is edited with `PUT /api/projects/local-grid`.","operationId":"put_api_projects","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"_id":{"type":"string","description":"Project ID"},"name":{"type":"string","description":"Project name (required even if unchanged)"},"domain":{"type":"string","description":"Target domain (required even if unchanged, except on local projects)"},"competitors":{"type":"array","items":{"type":"string"},"description":"Array of competitor domains"},"folder":{"type":"string","description":"Folder ID, or empty string to remove from folder"},"icon":{"type":"string","description":"Icon image URL. Default: the favicon of the project domain"},"aliases":{"type":"string","description":"Comma/newline-separated alias domains"},"shared":{"type":"boolean","description":"Public sharing toggle"},"updateFrequency":{"type":"string","description":"daily | every3days | weekly | biweekly | custom | ondemand","enum":["daily","every3days","weekly","biweekly","custom","ondemand"]},"customUpdateDays":{"type":"array","items":{"type":"number"},"description":"Required when updateFrequency=custom. Weekday numbers 0–6."},"updateTime":{"type":"number","description":"Hour 0–23"},"updateTimezone":{"type":"string","description":"IANA timezone"},"serpTop":{"type":"number","description":"50 | 100","enum":[50,100]}},"required":["_id","name"]}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"example":{"success":true,"project":{"_id":"65f1c2a8e1234567890abcde","name":"Acme","domain":"acme.com","competitors":["competitor.com"]},"message":"Project updated successfully"}}}},"400":{"description":"Bad Request — Missing required parameter or invalid value","content":{"application/json":{"example":{"success":false,"message":"Missing required parameter or invalid value"}}}},"401":{"description":"Unauthorized — Missing or invalid API key. Body: { message } or { success: false }","content":{"application/json":{"example":{"success":false,"message":"Missing or invalid API key. Body: { message } or { success: false }"}}}},"403":{"description":"Forbidden — No API access on the current plan (Free), or the account is blocked. Body: { message, planRequired: true }","content":{"application/json":{"example":{"success":false,"message":"No API access on the current plan (Free), or the account is blocked. Body: { message, planRequired: true }"}}}},"404":{"description":"Not Found — Resource (project, folder, note) does not exist or belongs to another user","content":{"application/json":{"example":{"success":false,"message":"Resource (project, folder, note) does not exist or belongs to another user"}}}},"429":{"description":"Too Many Requests — Rate limit exceeded. /api/tools/serp-check allows 10 req / 60s per API key, /api/tools/traffic-check 20 req / 60s. /api/projects/keyword-ideas allows 15 req / min (150 / hour) per account. competitors-filtered / pagespeed / crux-history / similarweb allow 60 req / min (600 / hour) per account, plus a daily quota of 400 new-to-us domains. Body includes retryAfter (seconds); a Retry-After header is also set.","content":{"application/json":{"example":{"success":false,"message":"Rate limit exceeded. /api/tools/serp-check allows 10 req / 60s per API key, /api/tools/traffic-check 20 req / 60s. /api/projects/keyword-ideas allows 15 req / min (150 / hour) per account. competitors-filtered / pagespeed / crux-history / similarweb allow 60 req / min (600 / hour) per account, plus a daily quota of 400 new-to-us domains. Body includes retryAfter (seconds); a Retry-After header is also set."}}}},"500":{"description":"Server Error — Internal server error","content":{"application/json":{"example":{"success":false,"message":"Internal server error"}}}}},"security":[{"ApiKeyAuth":[]}]},"delete":{"tags":["Projects"],"summary":"Delete a project and all its data","operationId":"delete_api_projects","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"_id":{"type":"string","description":"Project ID"}},"required":["_id"]}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"example":{"success":true,"message":"Project deleted successfully","projects":[],"folders":[]}}}},"400":{"description":"Bad Request — Missing required parameter or invalid value","content":{"application/json":{"example":{"success":false,"message":"Missing required parameter or invalid value"}}}},"401":{"description":"Unauthorized — Missing or invalid API key. Body: { message } or { success: false }","content":{"application/json":{"example":{"success":false,"message":"Missing or invalid API key. Body: { message } or { success: false }"}}}},"403":{"description":"Forbidden — No API access on the current plan (Free), or the account is blocked. Body: { message, planRequired: true }","content":{"application/json":{"example":{"success":false,"message":"No API access on the current plan (Free), or the account is blocked. Body: { message, planRequired: true }"}}}},"404":{"description":"Not Found — Resource (project, folder, note) does not exist or belongs to another user","content":{"application/json":{"example":{"success":false,"message":"Resource (project, folder, note) does not exist or belongs to another user"}}}},"429":{"description":"Too Many Requests — Rate limit exceeded. /api/tools/serp-check allows 10 req / 60s per API key, /api/tools/traffic-check 20 req / 60s. /api/projects/keyword-ideas allows 15 req / min (150 / hour) per account. competitors-filtered / pagespeed / crux-history / similarweb allow 60 req / min (600 / hour) per account, plus a daily quota of 400 new-to-us domains. Body includes retryAfter (seconds); a Retry-After header is also set.","content":{"application/json":{"example":{"success":false,"message":"Rate limit exceeded. /api/tools/serp-check allows 10 req / 60s per API key, /api/tools/traffic-check 20 req / 60s. /api/projects/keyword-ideas allows 15 req / min (150 / hour) per account. competitors-filtered / pagespeed / crux-history / similarweb allow 60 req / min (600 / hour) per account, plus a daily quota of 400 new-to-us domains. Body includes retryAfter (seconds); a Retry-After header is also set."}}}},"500":{"description":"Server Error — Internal server error","content":{"application/json":{"example":{"success":false,"message":"Internal server error"}}}}},"security":[{"ApiKeyAuth":[]}]}},"/api/projects/{id}":{"get":{"tags":["Projects"],"summary":"Get project details","description":"Includes keywords[], domain, competitors[], and full settings.","operationId":"get_api_projects_id","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"},"description":"Project ID (Mongo ObjectId)"}],"responses":{"200":{"description":"Success","content":{"application/json":{"example":{"success":true,"project":{"_id":"65f1c2a8e1234567890abcde","name":"Acme Corp","domain":"acme.com","competitors":["competitor.com"],"keywords":[{"_id":"65f1c2a8e1234567890fffff","keyword":"seo tools","geoCode":"US","langCode":"en"}]}}}}},"400":{"description":"Bad Request — Missing required parameter or invalid value","content":{"application/json":{"example":{"success":false,"message":"Missing required parameter or invalid value"}}}},"401":{"description":"Unauthorized — Missing or invalid API key. Body: { message } or { success: false }","content":{"application/json":{"example":{"success":false,"message":"Missing or invalid API key. Body: { message } or { success: false }"}}}},"403":{"description":"Forbidden — No API access on the current plan (Free), or the account is blocked. Body: { message, planRequired: true }","content":{"application/json":{"example":{"success":false,"message":"No API access on the current plan (Free), or the account is blocked. Body: { message, planRequired: true }"}}}},"404":{"description":"Not Found — Resource (project, folder, note) does not exist or belongs to another user","content":{"application/json":{"example":{"success":false,"message":"Resource (project, folder, note) does not exist or belongs to another user"}}}},"429":{"description":"Too Many Requests — Rate limit exceeded. /api/tools/serp-check allows 10 req / 60s per API key, /api/tools/traffic-check 20 req / 60s. /api/projects/keyword-ideas allows 15 req / min (150 / hour) per account. competitors-filtered / pagespeed / crux-history / similarweb allow 60 req / min (600 / hour) per account, plus a daily quota of 400 new-to-us domains. Body includes retryAfter (seconds); a Retry-After header is also set.","content":{"application/json":{"example":{"success":false,"message":"Rate limit exceeded. /api/tools/serp-check allows 10 req / 60s per API key, /api/tools/traffic-check 20 req / 60s. /api/projects/keyword-ideas allows 15 req / min (150 / hour) per account. competitors-filtered / pagespeed / crux-history / similarweb allow 60 req / min (600 / hour) per account, plus a daily quota of 400 new-to-us domains. Body includes retryAfter (seconds); a Retry-After header is also set."}}}},"500":{"description":"Server Error — Internal server error","content":{"application/json":{"example":{"success":false,"message":"Internal server error"}}}}},"security":[{"ApiKeyAuth":[]}]}},"/api/projects/folders":{"get":{"tags":["Folders"],"summary":"List folders","operationId":"get_api_projects_folders","responses":{"200":{"description":"Success","content":{"application/json":{"example":{"success":true,"folders":[{"_id":"FOLDER_ID","name":"Clients","position":0}]}}}},"400":{"description":"Bad Request — Missing required parameter or invalid value","content":{"application/json":{"example":{"success":false,"message":"Missing required parameter or invalid value"}}}},"401":{"description":"Unauthorized — Missing or invalid API key. Body: { message } or { success: false }","content":{"application/json":{"example":{"success":false,"message":"Missing or invalid API key. Body: { message } or { success: false }"}}}},"403":{"description":"Forbidden — No API access on the current plan (Free), or the account is blocked. Body: { message, planRequired: true }","content":{"application/json":{"example":{"success":false,"message":"No API access on the current plan (Free), or the account is blocked. Body: { message, planRequired: true }"}}}},"404":{"description":"Not Found — Resource (project, folder, note) does not exist or belongs to another user","content":{"application/json":{"example":{"success":false,"message":"Resource (project, folder, note) does not exist or belongs to another user"}}}},"429":{"description":"Too Many Requests — Rate limit exceeded. /api/tools/serp-check allows 10 req / 60s per API key, /api/tools/traffic-check 20 req / 60s. /api/projects/keyword-ideas allows 15 req / min (150 / hour) per account. competitors-filtered / pagespeed / crux-history / similarweb allow 60 req / min (600 / hour) per account, plus a daily quota of 400 new-to-us domains. Body includes retryAfter (seconds); a Retry-After header is also set.","content":{"application/json":{"example":{"success":false,"message":"Rate limit exceeded. /api/tools/serp-check allows 10 req / 60s per API key, /api/tools/traffic-check 20 req / 60s. /api/projects/keyword-ideas allows 15 req / min (150 / hour) per account. competitors-filtered / pagespeed / crux-history / similarweb allow 60 req / min (600 / hour) per account, plus a daily quota of 400 new-to-us domains. Body includes retryAfter (seconds); a Retry-After header is also set."}}}},"500":{"description":"Server Error — Internal server error","content":{"application/json":{"example":{"success":false,"message":"Internal server error"}}}}},"security":[{"ApiKeyAuth":[]}]},"post":{"tags":["Folders"],"summary":"Create folder","description":"Returns HTTP 409 `{ message: \"Folder with this name already exists\" }` if a folder with that name (case-insensitive) already exists for this user. Requires active subscription.","operationId":"post_api_projects_folders","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","description":"Folder name"}},"required":["name"]}}}},"responses":{"201":{"description":"Success","content":{"application/json":{"example":{"success":true,"folder":{"_id":"FOLDER_ID","name":"My Folder","position":0},"message":"Folder created successfully"}}}},"400":{"description":"Bad Request — Missing required parameter or invalid value","content":{"application/json":{"example":{"success":false,"message":"Missing required parameter or invalid value"}}}},"401":{"description":"Unauthorized — Missing or invalid API key. Body: { message } or { success: false }","content":{"application/json":{"example":{"success":false,"message":"Missing or invalid API key. Body: { message } or { success: false }"}}}},"403":{"description":"Forbidden — No API access on the current plan (Free), or the account is blocked. Body: { message, planRequired: true }","content":{"application/json":{"example":{"success":false,"message":"No API access on the current plan (Free), or the account is blocked. Body: { message, planRequired: true }"}}}},"404":{"description":"Not Found — Resource (project, folder, note) does not exist or belongs to another user","content":{"application/json":{"example":{"success":false,"message":"Resource (project, folder, note) does not exist or belongs to another user"}}}},"429":{"description":"Too Many Requests — Rate limit exceeded. /api/tools/serp-check allows 10 req / 60s per API key, /api/tools/traffic-check 20 req / 60s. /api/projects/keyword-ideas allows 15 req / min (150 / hour) per account. competitors-filtered / pagespeed / crux-history / similarweb allow 60 req / min (600 / hour) per account, plus a daily quota of 400 new-to-us domains. Body includes retryAfter (seconds); a Retry-After header is also set.","content":{"application/json":{"example":{"success":false,"message":"Rate limit exceeded. /api/tools/serp-check allows 10 req / 60s per API key, /api/tools/traffic-check 20 req / 60s. /api/projects/keyword-ideas allows 15 req / min (150 / hour) per account. competitors-filtered / pagespeed / crux-history / similarweb allow 60 req / min (600 / hour) per account, plus a daily quota of 400 new-to-us domains. Body includes retryAfter (seconds); a Retry-After header is also set."}}}},"500":{"description":"Server Error — Internal server error","content":{"application/json":{"example":{"success":false,"message":"Internal server error"}}}}},"security":[{"ApiKeyAuth":[]}]},"put":{"tags":["Folders"],"summary":"Rename folder","description":"Returns HTTP 409 on name conflict. Requires active subscription.","operationId":"put_api_projects_folders","parameters":[{"name":"id","in":"query","required":true,"schema":{"type":"string"},"description":"Folder ID"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","description":"New folder name"}},"required":["name"]}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"example":{"success":true,"folder":{"_id":"FOLDER_ID","name":"New Name"},"message":"Folder updated successfully"}}}},"400":{"description":"Bad Request — Missing required parameter or invalid value","content":{"application/json":{"example":{"success":false,"message":"Missing required parameter or invalid value"}}}},"401":{"description":"Unauthorized — Missing or invalid API key. Body: { message } or { success: false }","content":{"application/json":{"example":{"success":false,"message":"Missing or invalid API key. Body: { message } or { success: false }"}}}},"403":{"description":"Forbidden — No API access on the current plan (Free), or the account is blocked. Body: { message, planRequired: true }","content":{"application/json":{"example":{"success":false,"message":"No API access on the current plan (Free), or the account is blocked. Body: { message, planRequired: true }"}}}},"404":{"description":"Not Found — Resource (project, folder, note) does not exist or belongs to another user","content":{"application/json":{"example":{"success":false,"message":"Resource (project, folder, note) does not exist or belongs to another user"}}}},"429":{"description":"Too Many Requests — Rate limit exceeded. /api/tools/serp-check allows 10 req / 60s per API key, /api/tools/traffic-check 20 req / 60s. /api/projects/keyword-ideas allows 15 req / min (150 / hour) per account. competitors-filtered / pagespeed / crux-history / similarweb allow 60 req / min (600 / hour) per account, plus a daily quota of 400 new-to-us domains. Body includes retryAfter (seconds); a Retry-After header is also set.","content":{"application/json":{"example":{"success":false,"message":"Rate limit exceeded. /api/tools/serp-check allows 10 req / 60s per API key, /api/tools/traffic-check 20 req / 60s. /api/projects/keyword-ideas allows 15 req / min (150 / hour) per account. competitors-filtered / pagespeed / crux-history / similarweb allow 60 req / min (600 / hour) per account, plus a daily quota of 400 new-to-us domains. Body includes retryAfter (seconds); a Retry-After header is also set."}}}},"500":{"description":"Server Error — Internal server error","content":{"application/json":{"example":{"success":false,"message":"Internal server error"}}}}},"security":[{"ApiKeyAuth":[]}]},"delete":{"tags":["Folders"],"summary":"Delete folder","description":"Detaches all projects in the folder (they remain, just unassigned), then deletes the folder. Returns the refreshed folders[] and projects[] lists. Requires active subscription.","operationId":"delete_api_projects_folders","parameters":[{"name":"id","in":"query","required":true,"schema":{"type":"string"},"description":"Folder ID"}],"responses":{"200":{"description":"Success","content":{"application/json":{"example":{"success":true,"message":"Folder \"My Folder\" deleted successfully","folders":[],"projects":[]}}}},"400":{"description":"Bad Request — Missing required parameter or invalid value","content":{"application/json":{"example":{"success":false,"message":"Missing required parameter or invalid value"}}}},"401":{"description":"Unauthorized — Missing or invalid API key. Body: { message } or { success: false }","content":{"application/json":{"example":{"success":false,"message":"Missing or invalid API key. Body: { message } or { success: false }"}}}},"403":{"description":"Forbidden — No API access on the current plan (Free), or the account is blocked. Body: { message, planRequired: true }","content":{"application/json":{"example":{"success":false,"message":"No API access on the current plan (Free), or the account is blocked. Body: { message, planRequired: true }"}}}},"404":{"description":"Not Found — Resource (project, folder, note) does not exist or belongs to another user","content":{"application/json":{"example":{"success":false,"message":"Resource (project, folder, note) does not exist or belongs to another user"}}}},"429":{"description":"Too Many Requests — Rate limit exceeded. /api/tools/serp-check allows 10 req / 60s per API key, /api/tools/traffic-check 20 req / 60s. /api/projects/keyword-ideas allows 15 req / min (150 / hour) per account. competitors-filtered / pagespeed / crux-history / similarweb allow 60 req / min (600 / hour) per account, plus a daily quota of 400 new-to-us domains. Body includes retryAfter (seconds); a Retry-After header is also set.","content":{"application/json":{"example":{"success":false,"message":"Rate limit exceeded. /api/tools/serp-check allows 10 req / 60s per API key, /api/tools/traffic-check 20 req / 60s. /api/projects/keyword-ideas allows 15 req / min (150 / hour) per account. competitors-filtered / pagespeed / crux-history / similarweb allow 60 req / min (600 / hour) per account, plus a daily quota of 400 new-to-us domains. Body includes retryAfter (seconds); a Retry-After header is also set."}}}},"500":{"description":"Server Error — Internal server error","content":{"application/json":{"example":{"success":false,"message":"Internal server error"}}}}},"security":[{"ApiKeyAuth":[]}]}},"/api/projects/keywords":{"post":{"tags":["Keywords"],"summary":"Add keywords to track in a project","description":"Max 3500 keywords per project. Keywords appear in rankings after the next scheduled SERP check. Requires active subscription. Duplicates within the request and against existing project keywords are silently deduped. When the limit is exceeded, returns HTTP 400 with extended fields `{ error: \"KEYWORDS_LIMIT_EXCEEDED\", currentCount, maxAllowed, availableSlots }`.","operationId":"post_api_projects_keywords","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"projectId":{"type":"string","description":"Project ID"},"keywords":{"type":"array","items":{"type":"string"},"description":"Array of keyword strings (lowercased server-side)"},"geoCode":{"type":"string","description":"ISO-2 country code (e.g. US). Required — no default."},"langCode":{"type":"string","description":"ISO-2 language code (e.g. en). Required — no default."}},"required":["projectId","keywords","geoCode","langCode"]}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"example":{"success":true,"message":"Added 2 new keywords","addedCount":2,"project":{"_id":"PROJECT_ID","keywords":["KW_ID_1","KW_ID_2"]}}}}},"400":{"description":"Bad Request — Missing required parameter or invalid value","content":{"application/json":{"example":{"success":false,"message":"Missing required parameter or invalid value"}}}},"401":{"description":"Unauthorized — Missing or invalid API key. Body: { message } or { success: false }","content":{"application/json":{"example":{"success":false,"message":"Missing or invalid API key. Body: { message } or { success: false }"}}}},"403":{"description":"Forbidden — No API access on the current plan (Free), or the account is blocked. Body: { message, planRequired: true }","content":{"application/json":{"example":{"success":false,"message":"No API access on the current plan (Free), or the account is blocked. Body: { message, planRequired: true }"}}}},"404":{"description":"Not Found — Resource (project, folder, note) does not exist or belongs to another user","content":{"application/json":{"example":{"success":false,"message":"Resource (project, folder, note) does not exist or belongs to another user"}}}},"429":{"description":"Too Many Requests — Rate limit exceeded. /api/tools/serp-check allows 10 req / 60s per API key, /api/tools/traffic-check 20 req / 60s. /api/projects/keyword-ideas allows 15 req / min (150 / hour) per account. competitors-filtered / pagespeed / crux-history / similarweb allow 60 req / min (600 / hour) per account, plus a daily quota of 400 new-to-us domains. Body includes retryAfter (seconds); a Retry-After header is also set.","content":{"application/json":{"example":{"success":false,"message":"Rate limit exceeded. /api/tools/serp-check allows 10 req / 60s per API key, /api/tools/traffic-check 20 req / 60s. /api/projects/keyword-ideas allows 15 req / min (150 / hour) per account. competitors-filtered / pagespeed / crux-history / similarweb allow 60 req / min (600 / hour) per account, plus a daily quota of 400 new-to-us domains. Body includes retryAfter (seconds); a Retry-After header is also set."}}}},"500":{"description":"Server Error — Internal server error","content":{"application/json":{"example":{"success":false,"message":"Internal server error"}}}}},"security":[{"ApiKeyAuth":[]}]},"delete":{"tags":["Keywords"],"summary":"Remove tracked keywords","operationId":"delete_api_projects_keywords","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"projectId":{"type":"string","description":"Project ID"},"keywordIds":{"type":"array","items":{"type":"string"},"description":"Array of keyword IDs to remove"}},"required":["projectId","keywordIds"]}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"example":{"success":true,"removedCount":2,"project":{"_id":"PROJECT_ID"}}}}},"400":{"description":"Bad Request — Missing required parameter or invalid value","content":{"application/json":{"example":{"success":false,"message":"Missing required parameter or invalid value"}}}},"401":{"description":"Unauthorized — Missing or invalid API key. Body: { message } or { success: false }","content":{"application/json":{"example":{"success":false,"message":"Missing or invalid API key. Body: { message } or { success: false }"}}}},"403":{"description":"Forbidden — No API access on the current plan (Free), or the account is blocked. Body: { message, planRequired: true }","content":{"application/json":{"example":{"success":false,"message":"No API access on the current plan (Free), or the account is blocked. Body: { message, planRequired: true }"}}}},"404":{"description":"Not Found — Resource (project, folder, note) does not exist or belongs to another user","content":{"application/json":{"example":{"success":false,"message":"Resource (project, folder, note) does not exist or belongs to another user"}}}},"429":{"description":"Too Many Requests — Rate limit exceeded. /api/tools/serp-check allows 10 req / 60s per API key, /api/tools/traffic-check 20 req / 60s. /api/projects/keyword-ideas allows 15 req / min (150 / hour) per account. competitors-filtered / pagespeed / crux-history / similarweb allow 60 req / min (600 / hour) per account, plus a daily quota of 400 new-to-us domains. Body includes retryAfter (seconds); a Retry-After header is also set.","content":{"application/json":{"example":{"success":false,"message":"Rate limit exceeded. /api/tools/serp-check allows 10 req / 60s per API key, /api/tools/traffic-check 20 req / 60s. /api/projects/keyword-ideas allows 15 req / min (150 / hour) per account. competitors-filtered / pagespeed / crux-history / similarweb allow 60 req / min (600 / hour) per account, plus a daily quota of 400 new-to-us domains. Body includes retryAfter (seconds); a Retry-After header is also set."}}}},"500":{"description":"Server Error — Internal server error","content":{"application/json":{"example":{"success":false,"message":"Internal server error"}}}}},"security":[{"ApiKeyAuth":[]}]}},"/api/scrape/new-keywords":{"post":{"tags":["Keywords"],"summary":"Trigger a fresh check for keywords (SERP or Google Maps grid)","description":"Async — returns immediately (HTTP 200, status: \"processing\") while scraping happens in the background. Pass all project keyword IDs to refresh everything. Requires active subscription. All `keywordIds` must belong to the given project. **Credits.** One check = one keyword on a serp project, or one keyword × one grid point on a local project. 1 credit is charged per check only when it completes successfully; failed checks are retried automatically (up to 5 times) at no charge. Rejects with HTTP 400 \"Insufficient balance\" if the balance is below the number of checks. **Repeat calls.** Checks still queued or running are never queued twice — they are reported in `checks.alreadyQueued`, so retrying this call after a timeout is safe while the run is in progress. Once a run has finished, a new call is a new paid run.","operationId":"post_api_scrape_new_keywords","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"projectId":{"type":"string","description":"Project ID"},"keywordIds":{"type":"array","items":{"type":"string"},"description":"Keyword IDs to refresh (must belong to projectId)"}},"required":["projectId","keywordIds"]}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"example":{"success":true,"message":"Accepted 10 keywords for processing. Position updates started in background mode.","status":"processing","summary":{"total":10,"accepted":10,"errors":0},"checks":{"queued":10,"alreadyQueued":0,"failedToQueue":0,"maxCredits":10}}}}},"400":{"description":"Bad Request — Missing required parameter or invalid value","content":{"application/json":{"example":{"success":false,"message":"Missing required parameter or invalid value"}}}},"401":{"description":"Unauthorized — Missing or invalid API key. Body: { message } or { success: false }","content":{"application/json":{"example":{"success":false,"message":"Missing or invalid API key. Body: { message } or { success: false }"}}}},"403":{"description":"Forbidden — No API access on the current plan (Free), or the account is blocked. Body: { message, planRequired: true }","content":{"application/json":{"example":{"success":false,"message":"No API access on the current plan (Free), or the account is blocked. Body: { message, planRequired: true }"}}}},"404":{"description":"Not Found — Resource (project, folder, note) does not exist or belongs to another user","content":{"application/json":{"example":{"success":false,"message":"Resource (project, folder, note) does not exist or belongs to another user"}}}},"429":{"description":"Too Many Requests — Rate limit exceeded. /api/tools/serp-check allows 10 req / 60s per API key, /api/tools/traffic-check 20 req / 60s. /api/projects/keyword-ideas allows 15 req / min (150 / hour) per account. competitors-filtered / pagespeed / crux-history / similarweb allow 60 req / min (600 / hour) per account, plus a daily quota of 400 new-to-us domains. Body includes retryAfter (seconds); a Retry-After header is also set.","content":{"application/json":{"example":{"success":false,"message":"Rate limit exceeded. /api/tools/serp-check allows 10 req / 60s per API key, /api/tools/traffic-check 20 req / 60s. /api/projects/keyword-ideas allows 15 req / min (150 / hour) per account. competitors-filtered / pagespeed / crux-history / similarweb allow 60 req / min (600 / hour) per account, plus a daily quota of 400 new-to-us domains. Body includes retryAfter (seconds); a Retry-After header is also set."}}}},"500":{"description":"Server Error — Internal server error","content":{"application/json":{"example":{"success":false,"message":"Internal server error"}}}}},"security":[{"ApiKeyAuth":[]}]}},"/api/projects/keyword-updates":{"get":{"tags":["Ranking Data"],"summary":"Get keyword position history","description":"Public when project is shared. Response.data is keyed by keyword ID; each entry contains the full Keywords document plus an `updates` array of dated check results. When startDate/endDate are omitted, defaults to last 30 days.","operationId":"get_api_projects_keyword_updates","parameters":[{"name":"projectId","in":"query","required":true,"schema":{"type":"string"},"description":"Project ID"},{"name":"startDate","in":"query","required":false,"schema":{"type":"string"},"description":"YYYY-MM-DD (default: 30 days ago)"},{"name":"endDate","in":"query","required":false,"schema":{"type":"string"},"description":"YYYY-MM-DD (default: today)"},{"name":"aggregation","in":"query","required":false,"schema":{"type":"string","enum":["daily","weekly","monthly"]},"description":"daily | weekly | monthly (default: daily)"},{"name":"search","in":"query","required":false,"schema":{"type":"string"},"description":"Filter keywords by substring (case-insensitive)"},{"name":"geoCode","in":"query","required":false,"schema":{"type":"string"},"description":"Filter by country code (uppercased)"},{"name":"langCode","in":"query","required":false,"schema":{"type":"string"},"description":"Filter by language code (lowercased)"},{"name":"sortBy","in":"query","required":false,"schema":{"type":"string","enum":["keyword","position","volume"]},"description":"keyword | position | volume"},{"name":"sortOrder","in":"query","required":false,"schema":{"type":"string","enum":["asc","desc"]},"description":"asc | desc (default: desc)"}],"responses":{"200":{"description":"Success","content":{"application/json":{"example":{"success":true,"data":{"65f1c2a8e1234567890fffff":{"keyword":{"_id":"65f1c2a8e1234567890fffff","value":"seo tools","geoCode":"US","langCode":"en","avgMonthlySearches":8100},"updates":[{"_id":"UPD_ID","date":"2025-01-16T12:00:00.000Z","status":"success","position":{"position":9,"url":"https://example.com/seo-tools","title":"...","domain":"example.com"},"aiSerpId":null},{"_id":"UPD_ID2","date":"2025-01-15T12:00:00.000Z","status":"success","position":{"position":12,"url":"https://example.com/seo-tools","title":"...","domain":"example.com"},"aiSerpId":null}]}}}}}},"400":{"description":"Bad Request — Missing required parameter or invalid value","content":{"application/json":{"example":{"success":false,"message":"Missing required parameter or invalid value"}}}},"401":{"description":"Unauthorized — Missing or invalid API key. Body: { message } or { success: false }","content":{"application/json":{"example":{"success":false,"message":"Missing or invalid API key. Body: { message } or { success: false }"}}}},"403":{"description":"Forbidden — No API access on the current plan (Free), or the account is blocked. Body: { message, planRequired: true }","content":{"application/json":{"example":{"success":false,"message":"No API access on the current plan (Free), or the account is blocked. Body: { message, planRequired: true }"}}}},"404":{"description":"Not Found — Resource (project, folder, note) does not exist or belongs to another user","content":{"application/json":{"example":{"success":false,"message":"Resource (project, folder, note) does not exist or belongs to another user"}}}},"429":{"description":"Too Many Requests — Rate limit exceeded. /api/tools/serp-check allows 10 req / 60s per API key, /api/tools/traffic-check 20 req / 60s. /api/projects/keyword-ideas allows 15 req / min (150 / hour) per account. competitors-filtered / pagespeed / crux-history / similarweb allow 60 req / min (600 / hour) per account, plus a daily quota of 400 new-to-us domains. Body includes retryAfter (seconds); a Retry-After header is also set.","content":{"application/json":{"example":{"success":false,"message":"Rate limit exceeded. /api/tools/serp-check allows 10 req / 60s per API key, /api/tools/traffic-check 20 req / 60s. /api/projects/keyword-ideas allows 15 req / min (150 / hour) per account. competitors-filtered / pagespeed / crux-history / similarweb allow 60 req / min (600 / hour) per account, plus a daily quota of 400 new-to-us domains. Body includes retryAfter (seconds); a Retry-After header is also set."}}}},"500":{"description":"Server Error — Internal server error","content":{"application/json":{"example":{"success":false,"message":"Internal server error"}}}}},"security":[{"ApiKeyAuth":[]}]}},"/api/projects/position-history":{"get":{"tags":["Ranking Data"],"summary":"Get full SERP snapshot for a keyword check","description":"Returns top 30 results plus the project domain itself if it ranks beyond 30. Each result includes movement vs the previous successful check (`up`/`down`/`same`/`new`). `url` is the landing page when it is known; otherwise it is only the domain, and `gotoToken` (Google's link token) is set: `https://www.google.com/goto?url=<gotoToken>` opens the result. Public when project is shared.","operationId":"get_api_projects_position_history","parameters":[{"name":"keywordUpdateId","in":"query","required":true,"schema":{"type":"string"},"description":"Keyword update ID (from keyword-updates response)"}],"responses":{"200":{"description":"Success","content":{"application/json":{"example":{"success":true,"data":{"keywordId":"65f1c2a8e1234567890fffff","keywordValue":"seo tools","date":"2025-01-16T12:00:00.000Z","resultList":[{"position":1,"title":"...","domain":"example.com","url":"https://example.com/seo-tools","gotoToken":"CAESewHrOzAV...","previousPosition":2,"movement":{"type":"up","value":1}},{"position":2,"title":"...","domain":"competitor.com","url":"competitor.com","gotoToken":"CAESXgHrOzAV...","movement":{"type":"new","value":null}}],"droppedDomains":[{"domain":"old-competitor.com","previousPosition":15,"movement":{"type":"gone","value":null}}],"hasPreviousData":true,"aiOverviewResults":[{"position":1,"title":"...","domain":"wikipedia.org","url":"https://...","isOurDomain":false}],"aiContainsOurDomain":false}}}}},"400":{"description":"Bad Request — Missing required parameter or invalid value","content":{"application/json":{"example":{"success":false,"message":"Missing required parameter or invalid value"}}}},"401":{"description":"Unauthorized — Missing or invalid API key. Body: { message } or { success: false }","content":{"application/json":{"example":{"success":false,"message":"Missing or invalid API key. Body: { message } or { success: false }"}}}},"403":{"description":"Forbidden — No API access on the current plan (Free), or the account is blocked. Body: { message, planRequired: true }","content":{"application/json":{"example":{"success":false,"message":"No API access on the current plan (Free), or the account is blocked. Body: { message, planRequired: true }"}}}},"404":{"description":"Not Found — Resource (project, folder, note) does not exist or belongs to another user","content":{"application/json":{"example":{"success":false,"message":"Resource (project, folder, note) does not exist or belongs to another user"}}}},"429":{"description":"Too Many Requests — Rate limit exceeded. /api/tools/serp-check allows 10 req / 60s per API key, /api/tools/traffic-check 20 req / 60s. /api/projects/keyword-ideas allows 15 req / min (150 / hour) per account. competitors-filtered / pagespeed / crux-history / similarweb allow 60 req / min (600 / hour) per account, plus a daily quota of 400 new-to-us domains. Body includes retryAfter (seconds); a Retry-After header is also set.","content":{"application/json":{"example":{"success":false,"message":"Rate limit exceeded. /api/tools/serp-check allows 10 req / 60s per API key, /api/tools/traffic-check 20 req / 60s. /api/projects/keyword-ideas allows 15 req / min (150 / hour) per account. competitors-filtered / pagespeed / crux-history / similarweb allow 60 req / min (600 / hour) per account, plus a daily quota of 400 new-to-us domains. Body includes retryAfter (seconds); a Retry-After header is also set."}}}},"500":{"description":"Server Error — Internal server error","content":{"application/json":{"example":{"success":false,"message":"Internal server error"}}}}},"security":[{"ApiKeyAuth":[]}]}},"/api/projects/keyword-volumes":{"get":{"tags":["Ranking Data"],"summary":"Get search volume, CPC, and competition data","description":"Two modes with different response shapes. Bulk (no keywordId) uses compact field names to minimise payload size. Single mode (with keywordId) returns the full per-keyword detail. CPC values are pre-converted to the project currency. Public when project is shared.","operationId":"get_api_projects_keyword_volumes","parameters":[{"name":"projectId","in":"query","required":true,"schema":{"type":"string"},"description":"Project ID"},{"name":"keywordId","in":"query","required":false,"schema":{"type":"string"},"description":"Single keyword ID — when present, returns full volume history for one keyword instead of the bulk map"}],"responses":{"200":{"description":"Success","content":{"application/json":{"example":{"success":true,"data":{"65f1c2a8e1234567890fffff":{"v":"seo tools","g":"US","l":"en","s":"google","lv":8100,"tr":[6600,7200,7800,8000,8100,8100,7900,8000,8100,8200,8000,8100],"am":8100,"ci":72,"cl":3.1,"ch":5.4}}}}}},"400":{"description":"Bad Request — Missing required parameter or invalid value","content":{"application/json":{"example":{"success":false,"message":"Missing required parameter or invalid value"}}}},"401":{"description":"Unauthorized — Missing or invalid API key. Body: { message } or { success: false }","content":{"application/json":{"example":{"success":false,"message":"Missing or invalid API key. Body: { message } or { success: false }"}}}},"403":{"description":"Forbidden — No API access on the current plan (Free), or the account is blocked. Body: { message, planRequired: true }","content":{"application/json":{"example":{"success":false,"message":"No API access on the current plan (Free), or the account is blocked. Body: { message, planRequired: true }"}}}},"404":{"description":"Not Found — Resource (project, folder, note) does not exist or belongs to another user","content":{"application/json":{"example":{"success":false,"message":"Resource (project, folder, note) does not exist or belongs to another user"}}}},"429":{"description":"Too Many Requests — Rate limit exceeded. /api/tools/serp-check allows 10 req / 60s per API key, /api/tools/traffic-check 20 req / 60s. /api/projects/keyword-ideas allows 15 req / min (150 / hour) per account. competitors-filtered / pagespeed / crux-history / similarweb allow 60 req / min (600 / hour) per account, plus a daily quota of 400 new-to-us domains. Body includes retryAfter (seconds); a Retry-After header is also set.","content":{"application/json":{"example":{"success":false,"message":"Rate limit exceeded. /api/tools/serp-check allows 10 req / 60s per API key, /api/tools/traffic-check 20 req / 60s. /api/projects/keyword-ideas allows 15 req / min (150 / hour) per account. competitors-filtered / pagespeed / crux-history / similarweb allow 60 req / min (600 / hour) per account, plus a daily quota of 400 new-to-us domains. Body includes retryAfter (seconds); a Retry-After header is also set."}}}},"500":{"description":"Server Error — Internal server error","content":{"application/json":{"example":{"success":false,"message":"Internal server error"}}}}},"security":[{"ApiKeyAuth":[]}]}},"/api/tools/serp-check":{"post":{"tags":["Keyword Research"],"summary":"Live SERP check — returns top results and search volume for a keyword","description":"Rate limited: 10 req / 60s **per API user** — all keys on one account share the bucket. 429 response body includes `retryAfter` (seconds), `limit`, `window`. Returns HTTP 502 if both upstream SERP and volume calls fail. Search volume is served from Serpdino's own keyword database, matched on keyword + country: if we have no data for that pair, `volume.metrics` is `null` and `volume.volume` is `[]` while the SERP part is still returned in full.","operationId":"post_api_tools_serp_check","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"keyword":{"type":"string","description":"Search query"},"geo":{"type":"string","description":"ISO-2 country code (e.g. US)"},"lang":{"type":"string","description":"ISO-2 language code (e.g. en)"}},"required":["keyword","geo","lang"]}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"example":{"success":true,"data":{"serp":[{"position":1,"url":"https://...","title":"...","snippet":"..."}],"volume":{"value":1300,"cpc":2.5,"competition":"MEDIUM"}},"remaining":9}}}},"400":{"description":"Bad Request — Missing required parameter or invalid value","content":{"application/json":{"example":{"success":false,"message":"Missing required parameter or invalid value"}}}},"401":{"description":"Unauthorized — Missing or invalid API key. Body: { message } or { success: false }","content":{"application/json":{"example":{"success":false,"message":"Missing or invalid API key. Body: { message } or { success: false }"}}}},"403":{"description":"Forbidden — No API access on the current plan (Free), or the account is blocked. Body: { message, planRequired: true }","content":{"application/json":{"example":{"success":false,"message":"No API access on the current plan (Free), or the account is blocked. Body: { message, planRequired: true }"}}}},"404":{"description":"Not Found — Resource (project, folder, note) does not exist or belongs to another user","content":{"application/json":{"example":{"success":false,"message":"Resource (project, folder, note) does not exist or belongs to another user"}}}},"429":{"description":"Too Many Requests — Rate limit exceeded. /api/tools/serp-check allows 10 req / 60s per API key, /api/tools/traffic-check 20 req / 60s. /api/projects/keyword-ideas allows 15 req / min (150 / hour) per account. competitors-filtered / pagespeed / crux-history / similarweb allow 60 req / min (600 / hour) per account, plus a daily quota of 400 new-to-us domains. Body includes retryAfter (seconds); a Retry-After header is also set.","content":{"application/json":{"example":{"success":false,"message":"Rate limit exceeded. /api/tools/serp-check allows 10 req / 60s per API key, /api/tools/traffic-check 20 req / 60s. /api/projects/keyword-ideas allows 15 req / min (150 / hour) per account. competitors-filtered / pagespeed / crux-history / similarweb allow 60 req / min (600 / hour) per account, plus a daily quota of 400 new-to-us domains. Body includes retryAfter (seconds); a Retry-After header is also set."}}}},"500":{"description":"Server Error — Internal server error","content":{"application/json":{"example":{"success":false,"message":"Internal server error"}}}}},"security":[{"ApiKeyAuth":[]}]}},"/api/tools/traffic-check":{"post":{"tags":["Keyword Research"],"summary":"Domain traffic check — returns SimilarWeb stats and PageSpeed data","description":"Rate limited: 20 req / 60s **per API user** — all keys on one account share the bucket. A daily quota of 400 new-to-us domains also applies — cached domains never count against it. Triggers a live scraper fetch on DB cache miss for either SimilarWeb or PageSpeed (slow path), or returns cached data immediately. `data` may be null if SimilarWeb has no info on the domain. Domain is validated and normalised server-side (strips protocol, `www.`, path).","operationId":"post_api_tools_traffic_check","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"domain":{"type":"string","description":"Target domain (e.g. example.com or https://www.example.com/path — normalised server-side)"}},"required":["domain"]}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"example":{"success":true,"domain":"example.com","data":{"stats":{"domain":"example.com","totalVisits":1234567,"engagementMetrics":{"bounceRate":0.42,"avgVisitDuration":134},"fetchedAt":"2025-01-16T08:00:00.000Z"},"monthlyVisits":[{"domain":"example.com","month":"2025-01-01","visits":1234567}]},"pagespeed":{"domain":"example.com","performanceScore":86,"cruxScore":78,"largestContentfulPaint":1.8,"cumulativeLayoutShift":0.05,"fetchedAt":"2025-01-16T08:00:00.000Z"},"remaining":19}}}},"400":{"description":"Bad Request — Missing required parameter or invalid value","content":{"application/json":{"example":{"success":false,"message":"Missing required parameter or invalid value"}}}},"401":{"description":"Unauthorized — Missing or invalid API key. Body: { message } or { success: false }","content":{"application/json":{"example":{"success":false,"message":"Missing or invalid API key. Body: { message } or { success: false }"}}}},"403":{"description":"Forbidden — No API access on the current plan (Free), or the account is blocked. Body: { message, planRequired: true }","content":{"application/json":{"example":{"success":false,"message":"No API access on the current plan (Free), or the account is blocked. Body: { message, planRequired: true }"}}}},"404":{"description":"Not Found — Resource (project, folder, note) does not exist or belongs to another user","content":{"application/json":{"example":{"success":false,"message":"Resource (project, folder, note) does not exist or belongs to another user"}}}},"429":{"description":"Too Many Requests — Rate limit exceeded. /api/tools/serp-check allows 10 req / 60s per API key, /api/tools/traffic-check 20 req / 60s. /api/projects/keyword-ideas allows 15 req / min (150 / hour) per account. competitors-filtered / pagespeed / crux-history / similarweb allow 60 req / min (600 / hour) per account, plus a daily quota of 400 new-to-us domains. Body includes retryAfter (seconds); a Retry-After header is also set.","content":{"application/json":{"example":{"success":false,"message":"Rate limit exceeded. /api/tools/serp-check allows 10 req / 60s per API key, /api/tools/traffic-check 20 req / 60s. /api/projects/keyword-ideas allows 15 req / min (150 / hour) per account. competitors-filtered / pagespeed / crux-history / similarweb allow 60 req / min (600 / hour) per account, plus a daily quota of 400 new-to-us domains. Body includes retryAfter (seconds); a Retry-After header is also set."}}}},"500":{"description":"Server Error — Internal server error","content":{"application/json":{"example":{"success":false,"message":"Internal server error"}}}}},"security":[{"ApiKeyAuth":[]}]}},"/api/projects/keyword-suggestions":{"get":{"tags":["Keyword Research"],"summary":"AI-generated keyword suggestions for a project","description":"Polling endpoint — `ready: false` (with no other fields) means the LLM pipeline is still running. Retry every few seconds for ~2 minutes max. Generation is auto-triggered at project creation, so this is just a reader over the cached suggestions doc. Requires active subscription. Each locale ships up to 30 phrases, sorted by lastVolume desc.","operationId":"get_api_projects_keyword_suggestions","parameters":[{"name":"projectId","in":"query","required":true,"schema":{"type":"string"},"description":"Project ID"}],"responses":{"200":{"description":"Success","content":{"application/json":{"example":{"success":true,"ready":true,"domain":"example.com","primary":{"lang":"en","geo":"US"},"locales":[{"key":"en-US","lang":"en","region":"US","geo":"US","lastUpdatedAt":"2025-01-16T08:00:00.000Z","keywords":[{"phrase":"best seo tools","lastVolume":8100,"volume":[{"year":2024,"months":[{"month":12,"value":8100}]}]}]}],"pages":[],"meta":{"seedUsed":"domain"},"runCount":1,"lastRunAt":"2025-01-16T08:00:00.000Z","lastError":null}}}},"400":{"description":"Bad Request — Missing required parameter or invalid value","content":{"application/json":{"example":{"success":false,"message":"Missing required parameter or invalid value"}}}},"401":{"description":"Unauthorized — Missing or invalid API key. Body: { message } or { success: false }","content":{"application/json":{"example":{"success":false,"message":"Missing or invalid API key. Body: { message } or { success: false }"}}}},"403":{"description":"Forbidden — No API access on the current plan (Free), or the account is blocked. Body: { message, planRequired: true }","content":{"application/json":{"example":{"success":false,"message":"No API access on the current plan (Free), or the account is blocked. Body: { message, planRequired: true }"}}}},"404":{"description":"Not Found — Resource (project, folder, note) does not exist or belongs to another user","content":{"application/json":{"example":{"success":false,"message":"Resource (project, folder, note) does not exist or belongs to another user"}}}},"429":{"description":"Too Many Requests — Rate limit exceeded. /api/tools/serp-check allows 10 req / 60s per API key, /api/tools/traffic-check 20 req / 60s. /api/projects/keyword-ideas allows 15 req / min (150 / hour) per account. competitors-filtered / pagespeed / crux-history / similarweb allow 60 req / min (600 / hour) per account, plus a daily quota of 400 new-to-us domains. Body includes retryAfter (seconds); a Retry-After header is also set.","content":{"application/json":{"example":{"success":false,"message":"Rate limit exceeded. /api/tools/serp-check allows 10 req / 60s per API key, /api/tools/traffic-check 20 req / 60s. /api/projects/keyword-ideas allows 15 req / min (150 / hour) per account. competitors-filtered / pagespeed / crux-history / similarweb allow 60 req / min (600 / hour) per account, plus a daily quota of 400 new-to-us domains. Body includes retryAfter (seconds); a Retry-After header is also set."}}}},"500":{"description":"Server Error — Internal server error","content":{"application/json":{"example":{"success":false,"message":"Internal server error"}}}}},"security":[{"ApiKeyAuth":[]}]}},"/api/projects/keyword-ideas":{"post":{"tags":["Keyword Research"],"summary":"Keyword ideas based on a project's domain","description":"Soft-fail endpoint: always returns HTTP 200 with `success: true` when authorised. On upstream errors returns `{ success: true, ideas: [], error: \"upstream_error\" | \"service_unavailable\" }` — an empty `ideas` array does NOT mean failure, it means \"no data available right now\". 30s timeout on the upstream call. Requires active subscription. Rate limited for API-key callers: 15 req / min, 150 req / hour per account — HTTP 429 with `retryAfter` when exceeded.","operationId":"post_api_projects_keyword_ideas","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"projectId":{"type":"string","description":"Project ID"},"geo":{"type":"string","description":"Country code (default: US, uppercased)"},"lang":{"type":"string","description":"Language code (default: en, lowercased)"}},"required":["projectId"]}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"example":{"success":true,"ideas":[{"keyword":"seo tools comparison","avgMonthlySearches":1000,"competition":"MEDIUM"}]}}}},"400":{"description":"Bad Request — Missing required parameter or invalid value","content":{"application/json":{"example":{"success":false,"message":"Missing required parameter or invalid value"}}}},"401":{"description":"Unauthorized — Missing or invalid API key. Body: { message } or { success: false }","content":{"application/json":{"example":{"success":false,"message":"Missing or invalid API key. Body: { message } or { success: false }"}}}},"403":{"description":"Forbidden — No API access on the current plan (Free), or the account is blocked. Body: { message, planRequired: true }","content":{"application/json":{"example":{"success":false,"message":"No API access on the current plan (Free), or the account is blocked. Body: { message, planRequired: true }"}}}},"404":{"description":"Not Found — Resource (project, folder, note) does not exist or belongs to another user","content":{"application/json":{"example":{"success":false,"message":"Resource (project, folder, note) does not exist or belongs to another user"}}}},"429":{"description":"Too Many Requests — Rate limit exceeded. /api/tools/serp-check allows 10 req / 60s per API key, /api/tools/traffic-check 20 req / 60s. /api/projects/keyword-ideas allows 15 req / min (150 / hour) per account. competitors-filtered / pagespeed / crux-history / similarweb allow 60 req / min (600 / hour) per account, plus a daily quota of 400 new-to-us domains. Body includes retryAfter (seconds); a Retry-After header is also set.","content":{"application/json":{"example":{"success":false,"message":"Rate limit exceeded. /api/tools/serp-check allows 10 req / 60s per API key, /api/tools/traffic-check 20 req / 60s. /api/projects/keyword-ideas allows 15 req / min (150 / hour) per account. competitors-filtered / pagespeed / crux-history / similarweb allow 60 req / min (600 / hour) per account, plus a daily quota of 400 new-to-us domains. Body includes retryAfter (seconds); a Retry-After header is also set."}}}},"500":{"description":"Server Error — Internal server error","content":{"application/json":{"example":{"success":false,"message":"Internal server error"}}}}},"security":[{"ApiKeyAuth":[]}]}},"/api/local/business-details":{"get":{"tags":["Local (Google Maps geo-grid)"],"summary":"Resolve a Google Place ID into the business object a local project needs","description":"Live Google Places lookup. Pass the returned `business` object unchanged to `POST /api/projects`. `lat`/`lng` are the grid centre for grid/circle layouts. `countryCode`/`langCode` are the defaults used for scans when a keyword has no locale of its own. Rate limited: 15 req / min, 150 / hour per account.","operationId":"get_api_local_business_details","parameters":[{"name":"placeId","in":"query","required":true,"schema":{"type":"string"},"description":"Google Place ID (ChIJ…)"},{"name":"language","in":"query","required":false,"schema":{"type":"string"},"description":"Language for the localized name/address, e.g. en"}],"responses":{"200":{"description":"Success","content":{"application/json":{"example":{"success":true,"business":{"placeId":"ChIJN1t_tDeuEmsRUsoyG83frY4","name":"Acme Dental","address":"123 Main St, Springfield, IL 62701, USA","lat":39.7817,"lng":-89.6501,"serviceArea":false,"rating":4.7,"reviewCount":312,"website":"https://acmedental.example","mapsUri":"https://maps.google.com/?cid=…","countryCode":"US","langCode":"EN"}}}}},"400":{"description":"Bad Request — Missing required parameter or invalid value","content":{"application/json":{"example":{"success":false,"message":"Missing required parameter or invalid value"}}}},"401":{"description":"Unauthorized — Missing or invalid API key. Body: { message } or { success: false }","content":{"application/json":{"example":{"success":false,"message":"Missing or invalid API key. Body: { message } or { success: false }"}}}},"403":{"description":"Forbidden — No API access on the current plan (Free), or the account is blocked. Body: { message, planRequired: true }","content":{"application/json":{"example":{"success":false,"message":"No API access on the current plan (Free), or the account is blocked. Body: { message, planRequired: true }"}}}},"404":{"description":"Not Found — Resource (project, folder, note) does not exist or belongs to another user","content":{"application/json":{"example":{"success":false,"message":"Resource (project, folder, note) does not exist or belongs to another user"}}}},"429":{"description":"Too Many Requests — Rate limit exceeded. /api/tools/serp-check allows 10 req / 60s per API key, /api/tools/traffic-check 20 req / 60s. /api/projects/keyword-ideas allows 15 req / min (150 / hour) per account. competitors-filtered / pagespeed / crux-history / similarweb allow 60 req / min (600 / hour) per account, plus a daily quota of 400 new-to-us domains. Body includes retryAfter (seconds); a Retry-After header is also set.","content":{"application/json":{"example":{"success":false,"message":"Rate limit exceeded. /api/tools/serp-check allows 10 req / 60s per API key, /api/tools/traffic-check 20 req / 60s. /api/projects/keyword-ideas allows 15 req / min (150 / hour) per account. competitors-filtered / pagespeed / crux-history / similarweb allow 60 req / min (600 / hour) per account, plus a daily quota of 400 new-to-us domains. Body includes retryAfter (seconds); a Retry-After header is also set."}}}},"500":{"description":"Server Error — Internal server error","content":{"application/json":{"example":{"success":false,"message":"Internal server error"}}}}},"security":[{"ApiKeyAuth":[]}]}},"/api/projects/local-grid":{"put":{"tags":["Local (Google Maps geo-grid)"],"summary":"Replace the grid of a local project","description":"`grid` is a size × size square and `circle` is concentric rings; both are centred on the business. Size: 3–21. stepKm: 0.5–16.09 (10 mi). `custom` takes your own points, up to 60, and is how you scan around a centre other than the business. The response contains the materialized `localGrid.points`. Results reference points by `pointIndex`, their position in that array, so changing the grid changes what a pointIndex means.","operationId":"put_api_projects_local_grid","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"projectId":{"type":"string","description":"Local project ID"},"localGrid":{"type":"object","description":"`{ mode: \"grid\" | \"circle\", size, stepKm, unit? }` or `{ mode: \"custom\", points: [{ lat, lng }] }`. `unit` (km | mi) is display-only; stepKm is always in km."}},"required":["projectId","localGrid"]}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"example":{"success":true,"project":{"_id":"PROJECT_ID","type":"local","localGrid":{"mode":"grid","size":5,"stepKm":1,"unit":"km","points":[{"lat":39.763714,"lng":-89.673512},"… 25 points"]}}}}}},"400":{"description":"Bad Request — Missing required parameter or invalid value","content":{"application/json":{"example":{"success":false,"message":"Missing required parameter or invalid value"}}}},"401":{"description":"Unauthorized — Missing or invalid API key. Body: { message } or { success: false }","content":{"application/json":{"example":{"success":false,"message":"Missing or invalid API key. Body: { message } or { success: false }"}}}},"403":{"description":"Forbidden — No API access on the current plan (Free), or the account is blocked. Body: { message, planRequired: true }","content":{"application/json":{"example":{"success":false,"message":"No API access on the current plan (Free), or the account is blocked. Body: { message, planRequired: true }"}}}},"404":{"description":"Not Found — Resource (project, folder, note) does not exist or belongs to another user","content":{"application/json":{"example":{"success":false,"message":"Resource (project, folder, note) does not exist or belongs to another user"}}}},"429":{"description":"Too Many Requests — Rate limit exceeded. /api/tools/serp-check allows 10 req / 60s per API key, /api/tools/traffic-check 20 req / 60s. /api/projects/keyword-ideas allows 15 req / min (150 / hour) per account. competitors-filtered / pagespeed / crux-history / similarweb allow 60 req / min (600 / hour) per account, plus a daily quota of 400 new-to-us domains. Body includes retryAfter (seconds); a Retry-After header is also set.","content":{"application/json":{"example":{"success":false,"message":"Rate limit exceeded. /api/tools/serp-check allows 10 req / 60s per API key, /api/tools/traffic-check 20 req / 60s. /api/projects/keyword-ideas allows 15 req / min (150 / hour) per account. competitors-filtered / pagespeed / crux-history / similarweb allow 60 req / min (600 / hour) per account, plus a daily quota of 400 new-to-us domains. Body includes retryAfter (seconds); a Retry-After header is also set."}}}},"500":{"description":"Server Error — Internal server error","content":{"application/json":{"example":{"success":false,"message":"Internal server error"}}}}},"security":[{"ApiKeyAuth":[]}]}},"/api/projects/local-progress":{"get":{"tags":["Local (Google Maps geo-grid)"],"summary":"Scan progress of a local project","description":"Lightweight, so it is safe to poll every 10–15 seconds. `pending` has one entry per keyword with checks still queued, running or waiting for an automatic retry. The scan is finished when `scanning` is false. `failed` lists points that exhausted their retries today (UTC). Those points have no result, were not charged and will not be retried unless you start a new scan.","operationId":"get_api_projects_local_progress","parameters":[{"name":"projectId","in":"query","required":true,"schema":{"type":"string"},"description":"Local project ID"}],"responses":{"200":{"description":"Success","content":{"application/json":{"example":{"success":true,"totalPoints":25,"scanning":true,"pending":{"KW_ID_1":{"pending":7,"done":18,"total":25}},"failed":{"KW_ID_2":{"count":1,"pointIndexes":[14]}}}}}},"400":{"description":"Bad Request — Missing required parameter or invalid value","content":{"application/json":{"example":{"success":false,"message":"Missing required parameter or invalid value"}}}},"401":{"description":"Unauthorized — Missing or invalid API key. Body: { message } or { success: false }","content":{"application/json":{"example":{"success":false,"message":"Missing or invalid API key. Body: { message } or { success: false }"}}}},"403":{"description":"Forbidden — No API access on the current plan (Free), or the account is blocked. Body: { message, planRequired: true }","content":{"application/json":{"example":{"success":false,"message":"No API access on the current plan (Free), or the account is blocked. Body: { message, planRequired: true }"}}}},"404":{"description":"Not Found — Resource (project, folder, note) does not exist or belongs to another user","content":{"application/json":{"example":{"success":false,"message":"Resource (project, folder, note) does not exist or belongs to another user"}}}},"429":{"description":"Too Many Requests — Rate limit exceeded. /api/tools/serp-check allows 10 req / 60s per API key, /api/tools/traffic-check 20 req / 60s. /api/projects/keyword-ideas allows 15 req / min (150 / hour) per account. competitors-filtered / pagespeed / crux-history / similarweb allow 60 req / min (600 / hour) per account, plus a daily quota of 400 new-to-us domains. Body includes retryAfter (seconds); a Retry-After header is also set.","content":{"application/json":{"example":{"success":false,"message":"Rate limit exceeded. /api/tools/serp-check allows 10 req / 60s per API key, /api/tools/traffic-check 20 req / 60s. /api/projects/keyword-ideas allows 15 req / min (150 / hour) per account. competitors-filtered / pagespeed / crux-history / similarweb allow 60 req / min (600 / hour) per account, plus a daily quota of 400 new-to-us domains. Body includes retryAfter (seconds); a Retry-After header is also set."}}}},"500":{"description":"Server Error — Internal server error","content":{"application/json":{"example":{"success":false,"message":"Internal server error"}}}}},"security":[{"ApiKeyAuth":[]}]}},"/api/projects/local-keyword-grid":{"get":{"tags":["Local (Google Maps geo-grid)"],"summary":"Your rank at every grid point for one keyword","description":"`position` is the business's rank in the Google Maps list at that point; 0 means it was not in the list. Defaults to the latest scanned day. Public when the project is shared.","operationId":"get_api_projects_local_keyword_grid","parameters":[{"name":"projectId","in":"query","required":true,"schema":{"type":"string"},"description":"Local project ID"},{"name":"keywordId","in":"query","required":true,"schema":{"type":"string"},"description":"Keyword ID"},{"name":"date","in":"query","required":false,"schema":{"type":"string"},"description":"YYYY-MM-DD (UTC). Default: latest scanned day for this keyword"}],"responses":{"200":{"description":"Success","content":{"application/json":{"example":{"success":true,"date":"2026-10-16","points":[{"pointIndex":0,"lat":39.763714,"lng":-89.673512,"position":4},{"pointIndex":1,"lat":39.763714,"lng":-89.661796,"position":0}]}}}},"400":{"description":"Bad Request — Missing required parameter or invalid value","content":{"application/json":{"example":{"success":false,"message":"Missing required parameter or invalid value"}}}},"401":{"description":"Unauthorized — Missing or invalid API key. Body: { message } or { success: false }","content":{"application/json":{"example":{"success":false,"message":"Missing or invalid API key. Body: { message } or { success: false }"}}}},"403":{"description":"Forbidden — No API access on the current plan (Free), or the account is blocked. Body: { message, planRequired: true }","content":{"application/json":{"example":{"success":false,"message":"No API access on the current plan (Free), or the account is blocked. Body: { message, planRequired: true }"}}}},"404":{"description":"Not Found — Resource (project, folder, note) does not exist or belongs to another user","content":{"application/json":{"example":{"success":false,"message":"Resource (project, folder, note) does not exist or belongs to another user"}}}},"429":{"description":"Too Many Requests — Rate limit exceeded. /api/tools/serp-check allows 10 req / 60s per API key, /api/tools/traffic-check 20 req / 60s. /api/projects/keyword-ideas allows 15 req / min (150 / hour) per account. competitors-filtered / pagespeed / crux-history / similarweb allow 60 req / min (600 / hour) per account, plus a daily quota of 400 new-to-us domains. Body includes retryAfter (seconds); a Retry-After header is also set.","content":{"application/json":{"example":{"success":false,"message":"Rate limit exceeded. /api/tools/serp-check allows 10 req / 60s per API key, /api/tools/traffic-check 20 req / 60s. /api/projects/keyword-ideas allows 15 req / min (150 / hour) per account. competitors-filtered / pagespeed / crux-history / similarweb allow 60 req / min (600 / hour) per account, plus a daily quota of 400 new-to-us domains. Body includes retryAfter (seconds); a Retry-After header is also set."}}}},"500":{"description":"Server Error — Internal server error","content":{"application/json":{"example":{"success":false,"message":"Internal server error"}}}}},"security":[{"ApiKeyAuth":[]}]}},"/api/projects/local-point":{"get":{"tags":["Local (Google Maps geo-grid)"],"summary":"Full Google Maps ranking at one grid point: every competitor, per keyword","description":"Every listing Google Maps showed at that point, typically up to 40 per keyword, with rank, Place ID, name, category, rating, review count, address and website. `isOurs` marks the tracked business and its branch listings. Defaults to the latest scanned day. Public when the project is shared.","operationId":"get_api_projects_local_point","parameters":[{"name":"projectId","in":"query","required":true,"schema":{"type":"string"},"description":"Local project ID"},{"name":"pointIndex","in":"query","required":true,"schema":{"type":"number"},"description":"Index into `localGrid.points`"},{"name":"keywordId","in":"query","required":false,"schema":{"type":"string"},"description":"Only this keyword"},{"name":"date","in":"query","required":false,"schema":{"type":"string"},"description":"YYYY-MM-DD (UTC). Default: latest scanned day for this point"}],"responses":{"200":{"description":"Success","content":{"application/json":{"example":{"success":true,"date":"2026-10-16","point":{"pointIndex":12,"lat":39.7817,"lng":-89.6501},"keywords":[{"keywordId":"KW_ID_1","value":"dentist","ourPosition":3,"results":[{"position":1,"placeId":"ChIJ…","isOurs":false,"name":"Springfield Smiles","category":"Dentist","rating":4.9,"reviewCount":841,"address":"…","photoUrl":null,"website":"https://…"},{"position":3,"placeId":"ChIJN1t_tDeuEmsRUsoyG83frY4","isOurs":true,"name":"Acme Dental","category":"Dentist","rating":4.7,"reviewCount":312,"address":"…","photoUrl":null,"website":"https://acmedental.example"}]}]}}}},"400":{"description":"Bad Request — Missing required parameter or invalid value","content":{"application/json":{"example":{"success":false,"message":"Missing required parameter or invalid value"}}}},"401":{"description":"Unauthorized — Missing or invalid API key. Body: { message } or { success: false }","content":{"application/json":{"example":{"success":false,"message":"Missing or invalid API key. Body: { message } or { success: false }"}}}},"403":{"description":"Forbidden — No API access on the current plan (Free), or the account is blocked. Body: { message, planRequired: true }","content":{"application/json":{"example":{"success":false,"message":"No API access on the current plan (Free), or the account is blocked. Body: { message, planRequired: true }"}}}},"404":{"description":"Not Found — Resource (project, folder, note) does not exist or belongs to another user","content":{"application/json":{"example":{"success":false,"message":"Resource (project, folder, note) does not exist or belongs to another user"}}}},"429":{"description":"Too Many Requests — Rate limit exceeded. /api/tools/serp-check allows 10 req / 60s per API key, /api/tools/traffic-check 20 req / 60s. /api/projects/keyword-ideas allows 15 req / min (150 / hour) per account. competitors-filtered / pagespeed / crux-history / similarweb allow 60 req / min (600 / hour) per account, plus a daily quota of 400 new-to-us domains. Body includes retryAfter (seconds); a Retry-After header is also set.","content":{"application/json":{"example":{"success":false,"message":"Rate limit exceeded. /api/tools/serp-check allows 10 req / 60s per API key, /api/tools/traffic-check 20 req / 60s. /api/projects/keyword-ideas allows 15 req / min (150 / hour) per account. competitors-filtered / pagespeed / crux-history / similarweb allow 60 req / min (600 / hour) per account, plus a daily quota of 400 new-to-us domains. Body includes retryAfter (seconds); a Retry-After header is also set."}}}},"500":{"description":"Server Error — Internal server error","content":{"application/json":{"example":{"success":false,"message":"Internal server error"}}}}},"security":[{"ApiKeyAuth":[]}]}},"/api/projects/local-map":{"get":{"tags":["Local (Google Maps geo-grid)"],"summary":"Share of Local Voice history per keyword plus the latest grid map","description":"`data` holds one entry per keyword with an update per scanned day. There `position.position` is the SoLV %: the share of grid points where the business ranks in the top 20. `map` describes the latest day per point: visibility %, average rank position (`arp`, null when absent everywhere) and the raw position for each keyword. While a scan is running, its partial day is hidden for keywords that already have an earlier finished day. Public when the project is shared.","operationId":"get_api_projects_local_map","parameters":[{"name":"projectId","in":"query","required":true,"schema":{"type":"string"},"description":"Local project ID"}],"responses":{"200":{"description":"Success","content":{"application/json":{"example":{"success":true,"data":{"KW_ID_1":{"keyword":{"_id":"KW_ID_1","value":"dentist","geoCode":"US","langCode":"en"},"updates":[{"date":"2026-10-16T09:12:44.000Z","position":{"position":64},"solv":{"inTopN":16,"total":25,"topN":20},"status":"success"}]}},"map":{"latestDate":"2026-10-16","topN":20,"keywords":[{"id":"KW_ID_1","value":"dentist"}],"points":[{"pointIndex":0,"lat":39.763714,"lng":-89.673512,"vis":{"pct":71,"total":3},"solv":{"pct":67,"inTopN":2,"total":3,"topN":20},"arp":5.5,"found":2,"total":3,"keywords":[{"keywordId":"KW_ID_1","position":4}]}]},"dates":["2026-10-16"]}}}},"400":{"description":"Bad Request — Missing required parameter or invalid value","content":{"application/json":{"example":{"success":false,"message":"Missing required parameter or invalid value"}}}},"401":{"description":"Unauthorized — Missing or invalid API key. Body: { message } or { success: false }","content":{"application/json":{"example":{"success":false,"message":"Missing or invalid API key. Body: { message } or { success: false }"}}}},"403":{"description":"Forbidden — No API access on the current plan (Free), or the account is blocked. Body: { message, planRequired: true }","content":{"application/json":{"example":{"success":false,"message":"No API access on the current plan (Free), or the account is blocked. Body: { message, planRequired: true }"}}}},"404":{"description":"Not Found — Resource (project, folder, note) does not exist or belongs to another user","content":{"application/json":{"example":{"success":false,"message":"Resource (project, folder, note) does not exist or belongs to another user"}}}},"429":{"description":"Too Many Requests — Rate limit exceeded. /api/tools/serp-check allows 10 req / 60s per API key, /api/tools/traffic-check 20 req / 60s. /api/projects/keyword-ideas allows 15 req / min (150 / hour) per account. competitors-filtered / pagespeed / crux-history / similarweb allow 60 req / min (600 / hour) per account, plus a daily quota of 400 new-to-us domains. Body includes retryAfter (seconds); a Retry-After header is also set.","content":{"application/json":{"example":{"success":false,"message":"Rate limit exceeded. /api/tools/serp-check allows 10 req / 60s per API key, /api/tools/traffic-check 20 req / 60s. /api/projects/keyword-ideas allows 15 req / min (150 / hour) per account. competitors-filtered / pagespeed / crux-history / similarweb allow 60 req / min (600 / hour) per account, plus a daily quota of 400 new-to-us domains. Body includes retryAfter (seconds); a Retry-After header is also set."}}}},"500":{"description":"Server Error — Internal server error","content":{"application/json":{"example":{"success":false,"message":"Internal server error"}}}}},"security":[{"ApiKeyAuth":[]}]}},"/api/projects/monitor-pages":{"post":{"tags":["Page Monitor"],"summary":"Add pages to a monitor project","description":"Only URLs on the project domain or its subdomains are accepted. Up to 1000 pages per project. The URL is normalized for duplicate detection. Rejected lines are reported in `skipped` (the first 20 of each kind, plus counts).","operationId":"post_api_projects_monitor_pages","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"projectId":{"type":"string","description":"Monitor project ID"},"urls":{"type":"array","items":{"type":"string"},"description":"Page URLs; a single string with one URL per line (or comma/space separated) also works"}},"required":["projectId","urls"]}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"example":{"success":true,"addedCount":2,"skipped":{"invalid":[],"invalidCount":0,"foreign":["https://other.com/"],"foreignCount":1,"duplicate":0,"overLimit":0},"project":{"_id":"PROJECT_ID","type":"monitor","domain":"example.com","pageCount":2}}}}},"400":{"description":"Bad Request — Missing required parameter or invalid value","content":{"application/json":{"example":{"success":false,"message":"Missing required parameter or invalid value"}}}},"401":{"description":"Unauthorized — Missing or invalid API key. Body: { message } or { success: false }","content":{"application/json":{"example":{"success":false,"message":"Missing or invalid API key. Body: { message } or { success: false }"}}}},"403":{"description":"Forbidden — No API access on the current plan (Free), or the account is blocked. Body: { message, planRequired: true }","content":{"application/json":{"example":{"success":false,"message":"No API access on the current plan (Free), or the account is blocked. Body: { message, planRequired: true }"}}}},"404":{"description":"Not Found — Resource (project, folder, note) does not exist or belongs to another user","content":{"application/json":{"example":{"success":false,"message":"Resource (project, folder, note) does not exist or belongs to another user"}}}},"429":{"description":"Too Many Requests — Rate limit exceeded. /api/tools/serp-check allows 10 req / 60s per API key, /api/tools/traffic-check 20 req / 60s. /api/projects/keyword-ideas allows 15 req / min (150 / hour) per account. competitors-filtered / pagespeed / crux-history / similarweb allow 60 req / min (600 / hour) per account, plus a daily quota of 400 new-to-us domains. Body includes retryAfter (seconds); a Retry-After header is also set.","content":{"application/json":{"example":{"success":false,"message":"Rate limit exceeded. /api/tools/serp-check allows 10 req / 60s per API key, /api/tools/traffic-check 20 req / 60s. /api/projects/keyword-ideas allows 15 req / min (150 / hour) per account. competitors-filtered / pagespeed / crux-history / similarweb allow 60 req / min (600 / hour) per account, plus a daily quota of 400 new-to-us domains. Body includes retryAfter (seconds); a Retry-After header is also set."}}}},"500":{"description":"Server Error — Internal server error","content":{"application/json":{"example":{"success":false,"message":"Internal server error"}}}}},"security":[{"ApiKeyAuth":[]}]},"put":{"tags":["Page Monitor"],"summary":"Set a page note or reorder pages","description":"Send `pageId` + `note` (empty string clears it, max 300 chars), or `order` with page IDs in the new order. A page URL cannot be edited: remove the page and add the new URL.","operationId":"put_api_projects_monitor_pages","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"projectId":{"type":"string","description":"Monitor project ID"},"pageId":{"type":"string","description":"Page to annotate"},"note":{"type":"string","description":"Note text"},"order":{"type":"array","items":{"type":"string"},"description":"Page IDs in display order"}},"required":["projectId"]}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"example":{"success":true}}}},"400":{"description":"Bad Request — Missing required parameter or invalid value","content":{"application/json":{"example":{"success":false,"message":"Missing required parameter or invalid value"}}}},"401":{"description":"Unauthorized — Missing or invalid API key. Body: { message } or { success: false }","content":{"application/json":{"example":{"success":false,"message":"Missing or invalid API key. Body: { message } or { success: false }"}}}},"403":{"description":"Forbidden — No API access on the current plan (Free), or the account is blocked. Body: { message, planRequired: true }","content":{"application/json":{"example":{"success":false,"message":"No API access on the current plan (Free), or the account is blocked. Body: { message, planRequired: true }"}}}},"404":{"description":"Not Found — Resource (project, folder, note) does not exist or belongs to another user","content":{"application/json":{"example":{"success":false,"message":"Resource (project, folder, note) does not exist or belongs to another user"}}}},"429":{"description":"Too Many Requests — Rate limit exceeded. /api/tools/serp-check allows 10 req / 60s per API key, /api/tools/traffic-check 20 req / 60s. /api/projects/keyword-ideas allows 15 req / min (150 / hour) per account. competitors-filtered / pagespeed / crux-history / similarweb allow 60 req / min (600 / hour) per account, plus a daily quota of 400 new-to-us domains. Body includes retryAfter (seconds); a Retry-After header is also set.","content":{"application/json":{"example":{"success":false,"message":"Rate limit exceeded. /api/tools/serp-check allows 10 req / 60s per API key, /api/tools/traffic-check 20 req / 60s. /api/projects/keyword-ideas allows 15 req / min (150 / hour) per account. competitors-filtered / pagespeed / crux-history / similarweb allow 60 req / min (600 / hour) per account, plus a daily quota of 400 new-to-us domains. Body includes retryAfter (seconds); a Retry-After header is also set."}}}},"500":{"description":"Server Error — Internal server error","content":{"application/json":{"example":{"success":false,"message":"Internal server error"}}}}},"security":[{"ApiKeyAuth":[]}]},"delete":{"tags":["Page Monitor"],"summary":"Remove pages and their history","description":"Also drops their queued checks and every stored reading.","operationId":"delete_api_projects_monitor_pages","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"projectId":{"type":"string","description":"Monitor project ID"},"pageIds":{"type":"array","items":{"type":"string"},"description":"Pages to remove"}},"required":["projectId","pageIds"]}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"example":{"success":true,"deletedCount":1,"project":{"_id":"PROJECT_ID","pageCount":1}}}}},"400":{"description":"Bad Request — Missing required parameter or invalid value","content":{"application/json":{"example":{"success":false,"message":"Missing required parameter or invalid value"}}}},"401":{"description":"Unauthorized — Missing or invalid API key. Body: { message } or { success: false }","content":{"application/json":{"example":{"success":false,"message":"Missing or invalid API key. Body: { message } or { success: false }"}}}},"403":{"description":"Forbidden — No API access on the current plan (Free), or the account is blocked. Body: { message, planRequired: true }","content":{"application/json":{"example":{"success":false,"message":"No API access on the current plan (Free), or the account is blocked. Body: { message, planRequired: true }"}}}},"404":{"description":"Not Found — Resource (project, folder, note) does not exist or belongs to another user","content":{"application/json":{"example":{"success":false,"message":"Resource (project, folder, note) does not exist or belongs to another user"}}}},"429":{"description":"Too Many Requests — Rate limit exceeded. /api/tools/serp-check allows 10 req / 60s per API key, /api/tools/traffic-check 20 req / 60s. /api/projects/keyword-ideas allows 15 req / min (150 / hour) per account. competitors-filtered / pagespeed / crux-history / similarweb allow 60 req / min (600 / hour) per account, plus a daily quota of 400 new-to-us domains. Body includes retryAfter (seconds); a Retry-After header is also set.","content":{"application/json":{"example":{"success":false,"message":"Rate limit exceeded. /api/tools/serp-check allows 10 req / 60s per API key, /api/tools/traffic-check 20 req / 60s. /api/projects/keyword-ideas allows 15 req / min (150 / hour) per account. competitors-filtered / pagespeed / crux-history / similarweb allow 60 req / min (600 / hour) per account, plus a daily quota of 400 new-to-us domains. Body includes retryAfter (seconds); a Retry-After header is also set."}}}},"500":{"description":"Server Error — Internal server error","content":{"application/json":{"example":{"success":false,"message":"Internal server error"}}}}},"security":[{"ApiKeyAuth":[]}]}},"/api/scrape/monitor-run":{"post":{"tags":["Page Monitor"],"summary":"Check pages now","description":"Async: returns at once while checks run in the background — poll `monitor-checks` until `pending` is empty. Omit `pageIds` to check the whole project. Rejects with HTTP 400 \"Insufficient balance\" (with `required` and `available`) before anything is queued. Pages already queued or running are not queued again; they are counted in `summary.skipped`, so repeating the call after a timeout is safe while the run is in progress. Once it has finished, a new call is a new paid run. HTTP 409 if the project is suspended.","operationId":"post_api_scrape_monitor_run","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"projectId":{"type":"string","description":"Monitor project ID"},"pageIds":{"type":"array","items":{"type":"string"},"description":"Only these pages (default: all)"}},"required":["projectId"]}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"example":{"success":true,"status":"processing","summary":{"queued":12,"skipped":0,"errors":0,"runs":12}}}}},"400":{"description":"Bad Request — Missing required parameter or invalid value","content":{"application/json":{"example":{"success":false,"message":"Missing required parameter or invalid value"}}}},"401":{"description":"Unauthorized — Missing or invalid API key. Body: { message } or { success: false }","content":{"application/json":{"example":{"success":false,"message":"Missing or invalid API key. Body: { message } or { success: false }"}}}},"403":{"description":"Forbidden — No API access on the current plan (Free), or the account is blocked. Body: { message, planRequired: true }","content":{"application/json":{"example":{"success":false,"message":"No API access on the current plan (Free), or the account is blocked. Body: { message, planRequired: true }"}}}},"404":{"description":"Not Found — Resource (project, folder, note) does not exist or belongs to another user","content":{"application/json":{"example":{"success":false,"message":"Resource (project, folder, note) does not exist or belongs to another user"}}}},"429":{"description":"Too Many Requests — Rate limit exceeded. /api/tools/serp-check allows 10 req / 60s per API key, /api/tools/traffic-check 20 req / 60s. /api/projects/keyword-ideas allows 15 req / min (150 / hour) per account. competitors-filtered / pagespeed / crux-history / similarweb allow 60 req / min (600 / hour) per account, plus a daily quota of 400 new-to-us domains. Body includes retryAfter (seconds); a Retry-After header is also set.","content":{"application/json":{"example":{"success":false,"message":"Rate limit exceeded. /api/tools/serp-check allows 10 req / 60s per API key, /api/tools/traffic-check 20 req / 60s. /api/projects/keyword-ideas allows 15 req / min (150 / hour) per account. competitors-filtered / pagespeed / crux-history / similarweb allow 60 req / min (600 / hour) per account, plus a daily quota of 400 new-to-us domains. Body includes retryAfter (seconds); a Retry-After header is also set."}}}},"500":{"description":"Server Error — Internal server error","content":{"application/json":{"example":{"success":false,"message":"Internal server error"}}}}},"security":[{"ApiKeyAuth":[]}]}},"/api/projects/monitor-checks":{"get":{"tags":["Page Monitor"],"summary":"Pages with their latest state and daily readings","description":"Every page comes back with `last`, a copy of its newest reading, so `startDate=endDate=<today>` is the cheap way to get the current state of a large project. `checks` is keyed by page ID, then by UTC day. `pending` marks pages with a check queued or running: poll until it is empty. `failed` marks pages whose check today exhausted its retries; they have no reading for today and were not charged. `index.state`: indexed | not_indexed | indexed_other (Google shows a different URL, e.g. the canonical) | error. `seo.indexable` is null when the page was behind bot protection (`http.blocked`). Speed is in ms, `weight` in bytes. Public when the project is shared.","operationId":"get_api_projects_monitor_checks","parameters":[{"name":"projectId","in":"query","required":true,"schema":{"type":"string"},"description":"Monitor project ID"},{"name":"startDate","in":"query","required":false,"schema":{"type":"string"},"description":"YYYY-MM-DD, UTC (default: 30 days before endDate; range capped at 400 days)"},{"name":"endDate","in":"query","required":false,"schema":{"type":"string"},"description":"YYYY-MM-DD, UTC (default: today)"},{"name":"pageIds","in":"query","required":false,"schema":{"type":"string"},"description":"Comma-separated page IDs to limit the response to"}],"responses":{"200":{"description":"Success","content":{"application/json":{"example":{"success":true,"range":{"startDate":"2026-10-15","endDate":"2026-10-16"},"days":["2026-10-15","2026-10-16"],"pages":[{"_id":"PAGE_ID","url":"https://example.com/pricing","normalizedUrl":"https://example.com/pricing","position":1,"note":"Landing for the spring campaign","last":{"runDate":"2026-10-16T00:00:00.000Z","statusCode":200,"redirected":false,"blocked":false,"indexState":"indexed","indexable":true,"metaRobots":"index, follow","canonical":"https://example.com/pricing","canonicalMatch":true,"ttfb":212,"load":1840,"fcp":690,"weight":1482331},"createdDate":"2026-10-01T09:00:00.000Z"}],"checks":{"PAGE_ID":{"2026-10-16":{"http":{"statusCode":200,"finalUrl":"https://example.com/pricing","redirected":false,"blocked":false,"checkedAt":"2026-10-16T09:00:04.000Z"},"seo":{"title":"Pricing — Example","metaRobots":"index, follow","canonical":"https://example.com/pricing","canonicalMatch":true,"indexable":true},"speed":{"ttfb":212,"dcl":540,"load":1840,"fcp":690,"weight":1482331,"samples":[{"ttfb":212,"dcl":540,"load":1840,"fcp":690,"weight":1482331,"region":"eu-west-2"}]},"index":{"state":"indexed","matchedUrl":"https://example.com/pricing","via":"site","results":10,"checkedAt":"2026-10-16T09:00:05.000Z"}}}},"pending":{},"failed":{}}}}},"400":{"description":"Bad Request — Missing required parameter or invalid value","content":{"application/json":{"example":{"success":false,"message":"Missing required parameter or invalid value"}}}},"401":{"description":"Unauthorized — Missing or invalid API key. Body: { message } or { success: false }","content":{"application/json":{"example":{"success":false,"message":"Missing or invalid API key. Body: { message } or { success: false }"}}}},"403":{"description":"Forbidden — No API access on the current plan (Free), or the account is blocked. Body: { message, planRequired: true }","content":{"application/json":{"example":{"success":false,"message":"No API access on the current plan (Free), or the account is blocked. Body: { message, planRequired: true }"}}}},"404":{"description":"Not Found — Resource (project, folder, note) does not exist or belongs to another user","content":{"application/json":{"example":{"success":false,"message":"Resource (project, folder, note) does not exist or belongs to another user"}}}},"429":{"description":"Too Many Requests — Rate limit exceeded. /api/tools/serp-check allows 10 req / 60s per API key, /api/tools/traffic-check 20 req / 60s. /api/projects/keyword-ideas allows 15 req / min (150 / hour) per account. competitors-filtered / pagespeed / crux-history / similarweb allow 60 req / min (600 / hour) per account, plus a daily quota of 400 new-to-us domains. Body includes retryAfter (seconds); a Retry-After header is also set.","content":{"application/json":{"example":{"success":false,"message":"Rate limit exceeded. /api/tools/serp-check allows 10 req / 60s per API key, /api/tools/traffic-check 20 req / 60s. /api/projects/keyword-ideas allows 15 req / min (150 / hour) per account. competitors-filtered / pagespeed / crux-history / similarweb allow 60 req / min (600 / hour) per account, plus a daily quota of 400 new-to-us domains. Body includes retryAfter (seconds); a Retry-After header is also set."}}}},"500":{"description":"Server Error — Internal server error","content":{"application/json":{"example":{"success":false,"message":"Internal server error"}}}}},"security":[{"ApiKeyAuth":[]}]}},"/api/projects/competitor-positions":{"get":{"tags":["Competitors"],"summary":"Get a competitor's ranking positions across all tracked keywords","description":"Searches the project's tracked keywords' SERP history for results matching the competitor domain. `position: 0` means the competitor didn't appear in the top 30 results for that check. Public when project is shared. Deduped to one entry per calendar day per keyword.","operationId":"get_api_projects_competitor_positions","parameters":[{"name":"projectId","in":"query","required":true,"schema":{"type":"string"},"description":"Project ID"},{"name":"competitorDomain","in":"query","required":true,"schema":{"type":"string"},"description":"Competitor domain (e.g. competitor.com — normalised server-side)"},{"name":"startDate","in":"query","required":false,"schema":{"type":"string"},"description":"YYYY-MM-DD"},{"name":"endDate","in":"query","required":false,"schema":{"type":"string"},"description":"YYYY-MM-DD"}],"responses":{"200":{"description":"Success","content":{"application/json":{"example":{"success":true,"keywordHistory":{"65f1c2a8e1234567890fffff":{"keyword":{"_id":"65f1c2a8e1234567890fffff","value":"seo tools","geoCode":"US","langCode":"en"},"updates":[{"_id":"UPD_ID","date":"2025-01-15T12:00:00.000Z","status":"success","position":{"position":4,"domain":"competitor.com","title":"-","url":"-"},"aiSerpId":null}]}}}}}},"400":{"description":"Bad Request — Missing required parameter or invalid value","content":{"application/json":{"example":{"success":false,"message":"Missing required parameter or invalid value"}}}},"401":{"description":"Unauthorized — Missing or invalid API key. Body: { message } or { success: false }","content":{"application/json":{"example":{"success":false,"message":"Missing or invalid API key. Body: { message } or { success: false }"}}}},"403":{"description":"Forbidden — No API access on the current plan (Free), or the account is blocked. Body: { message, planRequired: true }","content":{"application/json":{"example":{"success":false,"message":"No API access on the current plan (Free), or the account is blocked. Body: { message, planRequired: true }"}}}},"404":{"description":"Not Found — Resource (project, folder, note) does not exist or belongs to another user","content":{"application/json":{"example":{"success":false,"message":"Resource (project, folder, note) does not exist or belongs to another user"}}}},"429":{"description":"Too Many Requests — Rate limit exceeded. /api/tools/serp-check allows 10 req / 60s per API key, /api/tools/traffic-check 20 req / 60s. /api/projects/keyword-ideas allows 15 req / min (150 / hour) per account. competitors-filtered / pagespeed / crux-history / similarweb allow 60 req / min (600 / hour) per account, plus a daily quota of 400 new-to-us domains. Body includes retryAfter (seconds); a Retry-After header is also set.","content":{"application/json":{"example":{"success":false,"message":"Rate limit exceeded. /api/tools/serp-check allows 10 req / 60s per API key, /api/tools/traffic-check 20 req / 60s. /api/projects/keyword-ideas allows 15 req / min (150 / hour) per account. competitors-filtered / pagespeed / crux-history / similarweb allow 60 req / min (600 / hour) per account, plus a daily quota of 400 new-to-us domains. Body includes retryAfter (seconds); a Retry-After header is also set."}}}},"500":{"description":"Server Error — Internal server error","content":{"application/json":{"example":{"success":false,"message":"Internal server error"}}}}},"security":[{"ApiKeyAuth":[]}]}},"/api/projects/competitors-filtered":{"get":{"tags":["Competitors"],"summary":"Compare traffic and performance across a domain and its competitors","description":"Requires an API key or dashboard session (401 otherwise). Rate limited: 60 req / min (600 / hour) per identity, plus a daily new-domain quota. Reads from the SimilarWeb / PageSpeed cache only (no live fetching). Auto-filters competitors to a balanced sample of 6 (3 above, 3 below main domain traffic) when more than 6 are supplied. `data` is keyed by domain.","operationId":"get_api_projects_competitors_filtered","parameters":[{"name":"domain","in":"query","required":true,"schema":{"type":"string"},"description":"Main domain"},{"name":"competitors","in":"query","required":true,"schema":{"type":"string"},"description":"Comma-separated competitor domains, or repeated query param. Max 50 accepted (HTTP 400 above); auto-filtered to 6 in the response."}],"responses":{"200":{"description":"Success","content":{"application/json":{"example":{"success":true,"data":{"example.com":{"stats":{"domain":"example.com","totalVisits":1234567,"fetchedAt":"2025-01-16T08:00:00.000Z"},"monthlyVisits":[{"month":"2025-01-01","visits":1234567}],"pageSpeed":{"cruxScore":78}}},"filtered":["competitor.com"],"mainDomainVisits":1234567,"totalCompetitors":1}}}},"400":{"description":"Bad Request — Missing required parameter or invalid value","content":{"application/json":{"example":{"success":false,"message":"Missing required parameter or invalid value"}}}},"401":{"description":"Unauthorized — Missing or invalid API key. Body: { message } or { success: false }","content":{"application/json":{"example":{"success":false,"message":"Missing or invalid API key. Body: { message } or { success: false }"}}}},"403":{"description":"Forbidden — No API access on the current plan (Free), or the account is blocked. Body: { message, planRequired: true }","content":{"application/json":{"example":{"success":false,"message":"No API access on the current plan (Free), or the account is blocked. Body: { message, planRequired: true }"}}}},"404":{"description":"Not Found — Resource (project, folder, note) does not exist or belongs to another user","content":{"application/json":{"example":{"success":false,"message":"Resource (project, folder, note) does not exist or belongs to another user"}}}},"429":{"description":"Too Many Requests — Rate limit exceeded. /api/tools/serp-check allows 10 req / 60s per API key, /api/tools/traffic-check 20 req / 60s. /api/projects/keyword-ideas allows 15 req / min (150 / hour) per account. competitors-filtered / pagespeed / crux-history / similarweb allow 60 req / min (600 / hour) per account, plus a daily quota of 400 new-to-us domains. Body includes retryAfter (seconds); a Retry-After header is also set.","content":{"application/json":{"example":{"success":false,"message":"Rate limit exceeded. /api/tools/serp-check allows 10 req / 60s per API key, /api/tools/traffic-check 20 req / 60s. /api/projects/keyword-ideas allows 15 req / min (150 / hour) per account. competitors-filtered / pagespeed / crux-history / similarweb allow 60 req / min (600 / hour) per account, plus a daily quota of 400 new-to-us domains. Body includes retryAfter (seconds); a Retry-After header is also set."}}}},"500":{"description":"Server Error — Internal server error","content":{"application/json":{"example":{"success":false,"message":"Internal server error"}}}}},"security":[{"ApiKeyAuth":[]}]}},"/api/projects/pages":{"get":{"tags":["Performance"],"summary":"Page-level ranking data: which URLs rank, average position, trend sparklines","description":"Aggregated by the projectPagesPoller. Each page includes 14-point trend data for the last 90 days, bucketed weekly (or daily if there is not enough data for a week-bucket). Public when project is shared. Sorted worst-first by avgPosition.","operationId":"get_api_projects_pages","parameters":[{"name":"projectId","in":"query","required":true,"schema":{"type":"string"},"description":"Project ID"}],"responses":{"200":{"description":"Success","content":{"application/json":{"example":{"success":true,"data":[{"url":"https://example.com/blog/post","path":"/blog/post","keywordCount":12,"avgPosition":8.4,"bestPosition":3,"keywords":[{"keywordId":"KW_ID","value":"seo tools","position":5}],"avgPositionTrend":[{"date":"2025-01-06T00:00:00.000Z","avgPosition":9.2,"keywordCount":12}],"avgPositionTrendGranularity":"week","weeklyAvgPositions":[{"weekStart":"2025-01-06T00:00:00.000Z","avgPosition":9.2,"keywordCount":12}]}],"lastPagesUpdate":"2025-01-16T08:00:00.000Z"}}}},"400":{"description":"Bad Request — Missing required parameter or invalid value","content":{"application/json":{"example":{"success":false,"message":"Missing required parameter or invalid value"}}}},"401":{"description":"Unauthorized — Missing or invalid API key. Body: { message } or { success: false }","content":{"application/json":{"example":{"success":false,"message":"Missing or invalid API key. Body: { message } or { success: false }"}}}},"403":{"description":"Forbidden — No API access on the current plan (Free), or the account is blocked. Body: { message, planRequired: true }","content":{"application/json":{"example":{"success":false,"message":"No API access on the current plan (Free), or the account is blocked. Body: { message, planRequired: true }"}}}},"404":{"description":"Not Found — Resource (project, folder, note) does not exist or belongs to another user","content":{"application/json":{"example":{"success":false,"message":"Resource (project, folder, note) does not exist or belongs to another user"}}}},"429":{"description":"Too Many Requests — Rate limit exceeded. /api/tools/serp-check allows 10 req / 60s per API key, /api/tools/traffic-check 20 req / 60s. /api/projects/keyword-ideas allows 15 req / min (150 / hour) per account. competitors-filtered / pagespeed / crux-history / similarweb allow 60 req / min (600 / hour) per account, plus a daily quota of 400 new-to-us domains. Body includes retryAfter (seconds); a Retry-After header is also set.","content":{"application/json":{"example":{"success":false,"message":"Rate limit exceeded. /api/tools/serp-check allows 10 req / 60s per API key, /api/tools/traffic-check 20 req / 60s. /api/projects/keyword-ideas allows 15 req / min (150 / hour) per account. competitors-filtered / pagespeed / crux-history / similarweb allow 60 req / min (600 / hour) per account, plus a daily quota of 400 new-to-us domains. Body includes retryAfter (seconds); a Retry-After header is also set."}}}},"500":{"description":"Server Error — Internal server error","content":{"application/json":{"example":{"success":false,"message":"Internal server error"}}}}},"security":[{"ApiKeyAuth":[]}]}},"/api/projects/pagespeed":{"get":{"tags":["Performance"],"summary":"PageSpeed Insights (Core Web Vitals) for a domain","description":"Requires an API key or dashboard session (401 otherwise). Rate limited: 60 req / min (600 / hour) per identity, plus a daily new-domain quota. Reads from DB cache only (never triggers a live PageSpeed run). Returns `data: null` if domain not in cache. Domain is normalised (strips `www.`, lowercased).","operationId":"get_api_projects_pagespeed","parameters":[{"name":"domain","in":"query","required":true,"schema":{"type":"string"},"description":"Target domain"}],"responses":{"200":{"description":"Success","content":{"application/json":{"example":{"success":true,"data":{"domain":"example.com","performanceScore":86,"accessibilityScore":92,"bestPracticesScore":90,"seoScore":95,"cruxScore":78,"largestContentfulPaint":1.8,"firstContentfulPaint":1,"cumulativeLayoutShift":0.05,"totalBlockingTime":120,"cruxFieldData":{"LCP":{"p75":1900},"CLS":{"p75":0.05},"INP":{"p75":180}},"fetchedAt":"2025-01-16T08:00:00.000Z"}}}}},"400":{"description":"Bad Request — Missing required parameter or invalid value","content":{"application/json":{"example":{"success":false,"message":"Missing required parameter or invalid value"}}}},"401":{"description":"Unauthorized — Missing or invalid API key. Body: { message } or { success: false }","content":{"application/json":{"example":{"success":false,"message":"Missing or invalid API key. Body: { message } or { success: false }"}}}},"403":{"description":"Forbidden — No API access on the current plan (Free), or the account is blocked. Body: { message, planRequired: true }","content":{"application/json":{"example":{"success":false,"message":"No API access on the current plan (Free), or the account is blocked. Body: { message, planRequired: true }"}}}},"404":{"description":"Not Found — Resource (project, folder, note) does not exist or belongs to another user","content":{"application/json":{"example":{"success":false,"message":"Resource (project, folder, note) does not exist or belongs to another user"}}}},"429":{"description":"Too Many Requests — Rate limit exceeded. /api/tools/serp-check allows 10 req / 60s per API key, /api/tools/traffic-check 20 req / 60s. /api/projects/keyword-ideas allows 15 req / min (150 / hour) per account. competitors-filtered / pagespeed / crux-history / similarweb allow 60 req / min (600 / hour) per account, plus a daily quota of 400 new-to-us domains. Body includes retryAfter (seconds); a Retry-After header is also set.","content":{"application/json":{"example":{"success":false,"message":"Rate limit exceeded. /api/tools/serp-check allows 10 req / 60s per API key, /api/tools/traffic-check 20 req / 60s. /api/projects/keyword-ideas allows 15 req / min (150 / hour) per account. competitors-filtered / pagespeed / crux-history / similarweb allow 60 req / min (600 / hour) per account, plus a daily quota of 400 new-to-us domains. Body includes retryAfter (seconds); a Retry-After header is also set."}}}},"500":{"description":"Server Error — Internal server error","content":{"application/json":{"example":{"success":false,"message":"Internal server error"}}}}},"security":[{"ApiKeyAuth":[]}]}},"/api/projects/pages-pagespeed":{"get":{"tags":["Performance"],"summary":"Per-page Lighthouse lab metrics for all tracked pages in a project","description":"Public when project is shared. `pages` is keyed by URL. `baseline` is the home-page record when available, falling back to the domain-level snapshot (with `source: \"domain\"`) so the UI can still compute deltas. Returns `baseline: null` if neither exists.","operationId":"get_api_projects_pages_pagespeed","parameters":[{"name":"projectId","in":"query","required":true,"schema":{"type":"string"},"description":"Project ID"}],"responses":{"200":{"description":"Success","content":{"application/json":{"example":{"success":true,"baseline":{"url":"https://example.com/","path":"/","domain":"example.com","performanceScore":86,"largestContentfulPaint":1.8,"firstContentfulPaint":1,"cumulativeLayoutShift":0.04,"totalBlockingTime":120,"source":"page"},"pages":{"https://example.com/blog/post":{"url":"https://example.com/blog/post","path":"/blog/post","performanceScore":80,"largestContentfulPaint":2.1,"source":"page"}}}}}},"400":{"description":"Bad Request — Missing required parameter or invalid value","content":{"application/json":{"example":{"success":false,"message":"Missing required parameter or invalid value"}}}},"401":{"description":"Unauthorized — Missing or invalid API key. Body: { message } or { success: false }","content":{"application/json":{"example":{"success":false,"message":"Missing or invalid API key. Body: { message } or { success: false }"}}}},"403":{"description":"Forbidden — No API access on the current plan (Free), or the account is blocked. Body: { message, planRequired: true }","content":{"application/json":{"example":{"success":false,"message":"No API access on the current plan (Free), or the account is blocked. Body: { message, planRequired: true }"}}}},"404":{"description":"Not Found — Resource (project, folder, note) does not exist or belongs to another user","content":{"application/json":{"example":{"success":false,"message":"Resource (project, folder, note) does not exist or belongs to another user"}}}},"429":{"description":"Too Many Requests — Rate limit exceeded. /api/tools/serp-check allows 10 req / 60s per API key, /api/tools/traffic-check 20 req / 60s. /api/projects/keyword-ideas allows 15 req / min (150 / hour) per account. competitors-filtered / pagespeed / crux-history / similarweb allow 60 req / min (600 / hour) per account, plus a daily quota of 400 new-to-us domains. Body includes retryAfter (seconds); a Retry-After header is also set.","content":{"application/json":{"example":{"success":false,"message":"Rate limit exceeded. /api/tools/serp-check allows 10 req / 60s per API key, /api/tools/traffic-check 20 req / 60s. /api/projects/keyword-ideas allows 15 req / min (150 / hour) per account. competitors-filtered / pagespeed / crux-history / similarweb allow 60 req / min (600 / hour) per account, plus a daily quota of 400 new-to-us domains. Body includes retryAfter (seconds); a Retry-After header is also set."}}}},"500":{"description":"Server Error — Internal server error","content":{"application/json":{"example":{"success":false,"message":"Internal server error"}}}}},"security":[{"ApiKeyAuth":[]}]}},"/api/projects/crux-history":{"get":{"tags":["Performance"],"summary":"Chrome UX Report (CrUX) real-user performance history for a domain","description":"Requires an API key or dashboard session (401 otherwise). Rate limited: 60 req / min (600 / hour) per identity, plus a daily new-domain quota. Reads from DB cache only. `data` is the origin-level series (CrUX records with no specific URL); `pages` is per-page records keyed by URL with parsed `path`.","operationId":"get_api_projects_crux_history","parameters":[{"name":"domain","in":"query","required":true,"schema":{"type":"string"},"description":"Target domain"}],"responses":{"200":{"description":"Success","content":{"application/json":{"example":{"success":true,"data":[{"domain":"example.com","date":"2025-01-01","lcp":{"p75":1900},"cls":{"p75":0.05}}],"pages":[{"url":"https://example.com/blog/","path":"/blog/","data":[{"date":"2025-01-01","lcp":{"p75":2100}}]}]}}}},"400":{"description":"Bad Request — Missing required parameter or invalid value","content":{"application/json":{"example":{"success":false,"message":"Missing required parameter or invalid value"}}}},"401":{"description":"Unauthorized — Missing or invalid API key. Body: { message } or { success: false }","content":{"application/json":{"example":{"success":false,"message":"Missing or invalid API key. Body: { message } or { success: false }"}}}},"403":{"description":"Forbidden — No API access on the current plan (Free), or the account is blocked. Body: { message, planRequired: true }","content":{"application/json":{"example":{"success":false,"message":"No API access on the current plan (Free), or the account is blocked. Body: { message, planRequired: true }"}}}},"404":{"description":"Not Found — Resource (project, folder, note) does not exist or belongs to another user","content":{"application/json":{"example":{"success":false,"message":"Resource (project, folder, note) does not exist or belongs to another user"}}}},"429":{"description":"Too Many Requests — Rate limit exceeded. /api/tools/serp-check allows 10 req / 60s per API key, /api/tools/traffic-check 20 req / 60s. /api/projects/keyword-ideas allows 15 req / min (150 / hour) per account. competitors-filtered / pagespeed / crux-history / similarweb allow 60 req / min (600 / hour) per account, plus a daily quota of 400 new-to-us domains. Body includes retryAfter (seconds); a Retry-After header is also set.","content":{"application/json":{"example":{"success":false,"message":"Rate limit exceeded. /api/tools/serp-check allows 10 req / 60s per API key, /api/tools/traffic-check 20 req / 60s. /api/projects/keyword-ideas allows 15 req / min (150 / hour) per account. competitors-filtered / pagespeed / crux-history / similarweb allow 60 req / min (600 / hour) per account, plus a daily quota of 400 new-to-us domains. Body includes retryAfter (seconds); a Retry-After header is also set."}}}},"500":{"description":"Server Error — Internal server error","content":{"application/json":{"example":{"success":false,"message":"Internal server error"}}}}},"security":[{"ApiKeyAuth":[]}]}},"/api/projects/similarweb":{"get":{"tags":["Performance"],"summary":"SimilarWeb traffic stats and monthly visit history for a domain","description":"Requires an API key or dashboard session (401 otherwise). Rate limited: 60 req / min (600 / hour) per identity, plus a daily new-domain quota. Reads from DB cache only. `exists: false` and `data: null` when the domain has never been scraped. `monthlyVisits` capped at 12 months, oldest first.","operationId":"get_api_projects_similarweb","parameters":[{"name":"domain","in":"query","required":true,"schema":{"type":"string"},"description":"Target domain"}],"responses":{"200":{"description":"Success","content":{"application/json":{"example":{"success":true,"exists":true,"data":{"stats":{"domain":"example.com","totalVisits":1234567,"fetchedAt":"2025-01-16T08:00:00.000Z"},"monthlyVisits":[{"domain":"example.com","month":"2024-02-01","visits":1100000},{"domain":"example.com","month":"2025-01-01","visits":1234567}]}}}}},"400":{"description":"Bad Request — Missing required parameter or invalid value","content":{"application/json":{"example":{"success":false,"message":"Missing required parameter or invalid value"}}}},"401":{"description":"Unauthorized — Missing or invalid API key. Body: { message } or { success: false }","content":{"application/json":{"example":{"success":false,"message":"Missing or invalid API key. Body: { message } or { success: false }"}}}},"403":{"description":"Forbidden — No API access on the current plan (Free), or the account is blocked. Body: { message, planRequired: true }","content":{"application/json":{"example":{"success":false,"message":"No API access on the current plan (Free), or the account is blocked. Body: { message, planRequired: true }"}}}},"404":{"description":"Not Found — Resource (project, folder, note) does not exist or belongs to another user","content":{"application/json":{"example":{"success":false,"message":"Resource (project, folder, note) does not exist or belongs to another user"}}}},"429":{"description":"Too Many Requests — Rate limit exceeded. /api/tools/serp-check allows 10 req / 60s per API key, /api/tools/traffic-check 20 req / 60s. /api/projects/keyword-ideas allows 15 req / min (150 / hour) per account. competitors-filtered / pagespeed / crux-history / similarweb allow 60 req / min (600 / hour) per account, plus a daily quota of 400 new-to-us domains. Body includes retryAfter (seconds); a Retry-After header is also set.","content":{"application/json":{"example":{"success":false,"message":"Rate limit exceeded. /api/tools/serp-check allows 10 req / 60s per API key, /api/tools/traffic-check 20 req / 60s. /api/projects/keyword-ideas allows 15 req / min (150 / hour) per account. competitors-filtered / pagespeed / crux-history / similarweb allow 60 req / min (600 / hour) per account, plus a daily quota of 400 new-to-us domains. Body includes retryAfter (seconds); a Retry-After header is also set."}}}},"500":{"description":"Server Error — Internal server error","content":{"application/json":{"example":{"success":false,"message":"Internal server error"}}}}},"security":[{"ApiKeyAuth":[]}]}},"/api/projects/notes":{"get":{"tags":["Notes"],"summary":"List timeline notes for a project","operationId":"get_api_projects_notes","parameters":[{"name":"projectId","in":"query","required":true,"schema":{"type":"string"},"description":"Project ID"}],"responses":{"200":{"description":"Success","content":{"application/json":{"example":{"success":true,"data":[{"_id":"NOTE_ID","date":"2025-01-15","text":"Google algorithm update","color":"warning"}]}}}},"400":{"description":"Bad Request — Missing required parameter or invalid value","content":{"application/json":{"example":{"success":false,"message":"Missing required parameter or invalid value"}}}},"401":{"description":"Unauthorized — Missing or invalid API key. Body: { message } or { success: false }","content":{"application/json":{"example":{"success":false,"message":"Missing or invalid API key. Body: { message } or { success: false }"}}}},"403":{"description":"Forbidden — No API access on the current plan (Free), or the account is blocked. Body: { message, planRequired: true }","content":{"application/json":{"example":{"success":false,"message":"No API access on the current plan (Free), or the account is blocked. Body: { message, planRequired: true }"}}}},"404":{"description":"Not Found — Resource (project, folder, note) does not exist or belongs to another user","content":{"application/json":{"example":{"success":false,"message":"Resource (project, folder, note) does not exist or belongs to another user"}}}},"429":{"description":"Too Many Requests — Rate limit exceeded. /api/tools/serp-check allows 10 req / 60s per API key, /api/tools/traffic-check 20 req / 60s. /api/projects/keyword-ideas allows 15 req / min (150 / hour) per account. competitors-filtered / pagespeed / crux-history / similarweb allow 60 req / min (600 / hour) per account, plus a daily quota of 400 new-to-us domains. Body includes retryAfter (seconds); a Retry-After header is also set.","content":{"application/json":{"example":{"success":false,"message":"Rate limit exceeded. /api/tools/serp-check allows 10 req / 60s per API key, /api/tools/traffic-check 20 req / 60s. /api/projects/keyword-ideas allows 15 req / min (150 / hour) per account. competitors-filtered / pagespeed / crux-history / similarweb allow 60 req / min (600 / hour) per account, plus a daily quota of 400 new-to-us domains. Body includes retryAfter (seconds); a Retry-After header is also set."}}}},"500":{"description":"Server Error — Internal server error","content":{"application/json":{"example":{"success":false,"message":"Internal server error"}}}}},"security":[{"ApiKeyAuth":[]}]},"post":{"tags":["Notes"],"summary":"Add or update a note on a project timeline","description":"Upsert by `(projectId, date)`: if a note already exists for this date, it is updated in place and the response is HTTP 200 with `message: \"Note updated\"`. Otherwise a new note is created and the response is HTTP 201 with `message: \"Note saved\"`. Requires active subscription.","operationId":"post_api_projects_notes","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"projectId":{"type":"string","description":"Project ID"},"date":{"type":"string","description":"YYYY-MM-DD (interpreted as 00:00:00 UTC)"},"text":{"type":"string","description":"Note content"},"color":{"type":"string","description":"info | warning | success | danger (default: info, only set on new notes)","enum":["info","warning","success","danger"]}},"required":["projectId","date","text"]}}}},"responses":{"201":{"description":"Success","content":{"application/json":{"example":{"success":true,"message":"Note saved","data":{"_id":"NOTE_ID","projectId":"PROJECT_ID","date":"2025-01-15T00:00:00.000Z","text":"Google algorithm update","color":"warning"}}}}},"400":{"description":"Bad Request — Missing required parameter or invalid value","content":{"application/json":{"example":{"success":false,"message":"Missing required parameter or invalid value"}}}},"401":{"description":"Unauthorized — Missing or invalid API key. Body: { message } or { success: false }","content":{"application/json":{"example":{"success":false,"message":"Missing or invalid API key. Body: { message } or { success: false }"}}}},"403":{"description":"Forbidden — No API access on the current plan (Free), or the account is blocked. Body: { message, planRequired: true }","content":{"application/json":{"example":{"success":false,"message":"No API access on the current plan (Free), or the account is blocked. Body: { message, planRequired: true }"}}}},"404":{"description":"Not Found — Resource (project, folder, note) does not exist or belongs to another user","content":{"application/json":{"example":{"success":false,"message":"Resource (project, folder, note) does not exist or belongs to another user"}}}},"429":{"description":"Too Many Requests — Rate limit exceeded. /api/tools/serp-check allows 10 req / 60s per API key, /api/tools/traffic-check 20 req / 60s. /api/projects/keyword-ideas allows 15 req / min (150 / hour) per account. competitors-filtered / pagespeed / crux-history / similarweb allow 60 req / min (600 / hour) per account, plus a daily quota of 400 new-to-us domains. Body includes retryAfter (seconds); a Retry-After header is also set.","content":{"application/json":{"example":{"success":false,"message":"Rate limit exceeded. /api/tools/serp-check allows 10 req / 60s per API key, /api/tools/traffic-check 20 req / 60s. /api/projects/keyword-ideas allows 15 req / min (150 / hour) per account. competitors-filtered / pagespeed / crux-history / similarweb allow 60 req / min (600 / hour) per account, plus a daily quota of 400 new-to-us domains. Body includes retryAfter (seconds); a Retry-After header is also set."}}}},"500":{"description":"Server Error — Internal server error","content":{"application/json":{"example":{"success":false,"message":"Internal server error"}}}}},"security":[{"ApiKeyAuth":[]}]},"delete":{"tags":["Notes"],"summary":"Delete a note","description":"Returns the remaining notes for the project in `data` after deletion. Requires active subscription.","operationId":"delete_api_projects_notes","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"noteId":{"type":"string","description":"Note ID"}},"required":["noteId"]}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"example":{"success":true,"message":"Note deleted","data":[{"_id":"OTHER_NOTE_ID","date":"2025-01-10T00:00:00.000Z","text":"...","color":"info"}]}}}},"400":{"description":"Bad Request — Missing required parameter or invalid value","content":{"application/json":{"example":{"success":false,"message":"Missing required parameter or invalid value"}}}},"401":{"description":"Unauthorized — Missing or invalid API key. Body: { message } or { success: false }","content":{"application/json":{"example":{"success":false,"message":"Missing or invalid API key. Body: { message } or { success: false }"}}}},"403":{"description":"Forbidden — No API access on the current plan (Free), or the account is blocked. Body: { message, planRequired: true }","content":{"application/json":{"example":{"success":false,"message":"No API access on the current plan (Free), or the account is blocked. Body: { message, planRequired: true }"}}}},"404":{"description":"Not Found — Resource (project, folder, note) does not exist or belongs to another user","content":{"application/json":{"example":{"success":false,"message":"Resource (project, folder, note) does not exist or belongs to another user"}}}},"429":{"description":"Too Many Requests — Rate limit exceeded. /api/tools/serp-check allows 10 req / 60s per API key, /api/tools/traffic-check 20 req / 60s. /api/projects/keyword-ideas allows 15 req / min (150 / hour) per account. competitors-filtered / pagespeed / crux-history / similarweb allow 60 req / min (600 / hour) per account, plus a daily quota of 400 new-to-us domains. Body includes retryAfter (seconds); a Retry-After header is also set.","content":{"application/json":{"example":{"success":false,"message":"Rate limit exceeded. /api/tools/serp-check allows 10 req / 60s per API key, /api/tools/traffic-check 20 req / 60s. /api/projects/keyword-ideas allows 15 req / min (150 / hour) per account. competitors-filtered / pagespeed / crux-history / similarweb allow 60 req / min (600 / hour) per account, plus a daily quota of 400 new-to-us domains. Body includes retryAfter (seconds); a Retry-After header is also set."}}}},"500":{"description":"Server Error — Internal server error","content":{"application/json":{"example":{"success":false,"message":"Internal server error"}}}}},"security":[{"ApiKeyAuth":[]}]}},"/api/user/capacity":{"get":{"tags":["Account"],"summary":"Check account usage and limits","description":"The one place to read every limit that applies to your account, so a client can pace itself instead of discovering limits by being rejected.\n\n`total` / `booked` / `available` are monthly SERP-check tokens — the budget consumed by tracking keywords, calculated as keywords × refreshes per month (× 2 when `serpTop` is 100). **There is no limit on the number of projects (websites)** — `limits.projects` is `null`, meaning unlimited. Running out of tokens is what stops you adding more tracking, not a website count.\n\n`limits.rateLimits` reports the per-API-key ceilings enforced on the endpoints of the same name; `domainReads` covers competitors-filtered / pagespeed / crux-history / similarweb.\n\n`limits.rateLimits.newDomainsPerDay` is the odd one out: not a per-minute rate but a **daily allowance of domains that are new to us**, and a single bucket shared by every endpoint in its `appliesTo` list rather than one allowance each. Domains already in our cache never consume it, so re-checking a domain you looked up last week is free. `resetsInSeconds` is the time until the allowance clears **if you look up no further new domains** — each newly counted domain re-arms the 24h window — and is `null` when nothing has been counted yet.\n\n`limits` is always read live and never served from cache.","operationId":"get_api_user_capacity","responses":{"200":{"description":"Success","content":{"application/json":{"example":{"total":12000,"booked":320,"available":11680,"projects":4,"keywords":320,"plan":"paid","limits":{"keywordsPerProject":3500,"projects":null,"apiKeys":{"limit":5,"used":2},"competitorsPerRequest":50,"rateLimits":{"serpCheck":{"perMinute":10,"windowSeconds":60},"trafficCheck":{"perMinute":20,"windowSeconds":60},"keywordResearch":{"perMinute":15,"perHour":150},"domainReads":{"perMinute":60,"perHour":600},"newDomainsPerDay":{"limit":400,"used":37,"remaining":363,"resetsInSeconds":61840,"appliesTo":["/api/tools/traffic-check","/api/projects/similarweb","/api/projects/pagespeed","/api/projects/crux-history","/api/projects/competitors-filtered"]}}}}}}},"400":{"description":"Bad Request — Missing required parameter or invalid value","content":{"application/json":{"example":{"success":false,"message":"Missing required parameter or invalid value"}}}},"401":{"description":"Unauthorized — Missing or invalid API key. Body: { message } or { success: false }","content":{"application/json":{"example":{"success":false,"message":"Missing or invalid API key. Body: { message } or { success: false }"}}}},"403":{"description":"Forbidden — No API access on the current plan (Free), or the account is blocked. Body: { message, planRequired: true }","content":{"application/json":{"example":{"success":false,"message":"No API access on the current plan (Free), or the account is blocked. Body: { message, planRequired: true }"}}}},"404":{"description":"Not Found — Resource (project, folder, note) does not exist or belongs to another user","content":{"application/json":{"example":{"success":false,"message":"Resource (project, folder, note) does not exist or belongs to another user"}}}},"429":{"description":"Too Many Requests — Rate limit exceeded. /api/tools/serp-check allows 10 req / 60s per API key, /api/tools/traffic-check 20 req / 60s. /api/projects/keyword-ideas allows 15 req / min (150 / hour) per account. competitors-filtered / pagespeed / crux-history / similarweb allow 60 req / min (600 / hour) per account, plus a daily quota of 400 new-to-us domains. Body includes retryAfter (seconds); a Retry-After header is also set.","content":{"application/json":{"example":{"success":false,"message":"Rate limit exceeded. /api/tools/serp-check allows 10 req / 60s per API key, /api/tools/traffic-check 20 req / 60s. /api/projects/keyword-ideas allows 15 req / min (150 / hour) per account. competitors-filtered / pagespeed / crux-history / similarweb allow 60 req / min (600 / hour) per account, plus a daily quota of 400 new-to-us domains. Body includes retryAfter (seconds); a Retry-After header is also set."}}}},"500":{"description":"Server Error — Internal server error","content":{"application/json":{"example":{"success":false,"message":"Internal server error"}}}}},"security":[{"ApiKeyAuth":[]}]}},"/api/projects/export-agent":{"get":{"tags":["Export"],"summary":"Generate a comprehensive Markdown report for a project","description":"Returns plain Markdown text (Content-Type: text/markdown), NOT JSON. Includes rankings, traffic, competitors, and performance data in a single document — designed for feeding to LLMs.","operationId":"get_api_projects_export_agent","parameters":[{"name":"projectId","in":"query","required":true,"schema":{"type":"string"},"description":"Project ID"}],"responses":{"200":{"description":"Success","content":{"text/markdown":{"schema":{"type":"string"},"example":"# Acme Corp — SEO Report\n\nDomain: acme.com\n\n## Rankings\n..."}}},"400":{"description":"Bad Request — Missing required parameter or invalid value","content":{"application/json":{"example":{"success":false,"message":"Missing required parameter or invalid value"}}}},"401":{"description":"Unauthorized — Missing or invalid API key. Body: { message } or { success: false }","content":{"application/json":{"example":{"success":false,"message":"Missing or invalid API key. Body: { message } or { success: false }"}}}},"403":{"description":"Forbidden — No API access on the current plan (Free), or the account is blocked. Body: { message, planRequired: true }","content":{"application/json":{"example":{"success":false,"message":"No API access on the current plan (Free), or the account is blocked. Body: { message, planRequired: true }"}}}},"404":{"description":"Not Found — Resource (project, folder, note) does not exist or belongs to another user","content":{"application/json":{"example":{"success":false,"message":"Resource (project, folder, note) does not exist or belongs to another user"}}}},"429":{"description":"Too Many Requests — Rate limit exceeded. /api/tools/serp-check allows 10 req / 60s per API key, /api/tools/traffic-check 20 req / 60s. /api/projects/keyword-ideas allows 15 req / min (150 / hour) per account. competitors-filtered / pagespeed / crux-history / similarweb allow 60 req / min (600 / hour) per account, plus a daily quota of 400 new-to-us domains. Body includes retryAfter (seconds); a Retry-After header is also set.","content":{"application/json":{"example":{"success":false,"message":"Rate limit exceeded. /api/tools/serp-check allows 10 req / 60s per API key, /api/tools/traffic-check 20 req / 60s. /api/projects/keyword-ideas allows 15 req / min (150 / hour) per account. competitors-filtered / pagespeed / crux-history / similarweb allow 60 req / min (600 / hour) per account, plus a daily quota of 400 new-to-us domains. Body includes retryAfter (seconds); a Retry-After header is also set."}}}},"500":{"description":"Server Error — Internal server error","content":{"application/json":{"example":{"success":false,"message":"Internal server error"}}}}},"security":[{"ApiKeyAuth":[]}]}},"/api/projects/export":{"get":{"tags":["Export"],"summary":"CSV export of ranking data","description":"Returns CSV with UTF-8 BOM and semicolon (`;`) separator — opens correctly in Excel without conversion. `Content-Disposition` header forces download with a generated filename. `full` format: one row per keyword with a date column per checked day. `summary` format: one row per keyword with aggregated stats (current/best/worst/avg position, change). `top10` format: a block per keyword with positions 1–10 as rows and the ranking URL for each checked day as columns, limited to the 90 most recent checked days. Public when project is shared.","operationId":"get_api_projects_export","parameters":[{"name":"projectId","in":"query","required":true,"schema":{"type":"string"},"description":"Project ID"},{"name":"format","in":"query","required":false,"schema":{"type":"string","enum":["full","summary","top10"]},"description":"full | summary | top10 (default: full)"},{"name":"startDate","in":"query","required":false,"schema":{"type":"string"},"description":"YYYY-MM-DD"},{"name":"endDate","in":"query","required":false,"schema":{"type":"string"},"description":"YYYY-MM-DD"}],"responses":{"200":{"description":"Success","content":{"text/csv; charset=utf-8":{"schema":{"type":"string"},"example":"Keyword;SERP;Volume;URL;Change;2025-01-16;2025-01-15\nseo tools;en-US;8100;https://example.com/seo-tools;-3;9;12\n"}}},"400":{"description":"Bad Request — Missing required parameter or invalid value","content":{"application/json":{"example":{"success":false,"message":"Missing required parameter or invalid value"}}}},"401":{"description":"Unauthorized — Missing or invalid API key. Body: { message } or { success: false }","content":{"application/json":{"example":{"success":false,"message":"Missing or invalid API key. Body: { message } or { success: false }"}}}},"403":{"description":"Forbidden — No API access on the current plan (Free), or the account is blocked. Body: { message, planRequired: true }","content":{"application/json":{"example":{"success":false,"message":"No API access on the current plan (Free), or the account is blocked. Body: { message, planRequired: true }"}}}},"404":{"description":"Not Found — Resource (project, folder, note) does not exist or belongs to another user","content":{"application/json":{"example":{"success":false,"message":"Resource (project, folder, note) does not exist or belongs to another user"}}}},"429":{"description":"Too Many Requests — Rate limit exceeded. /api/tools/serp-check allows 10 req / 60s per API key, /api/tools/traffic-check 20 req / 60s. /api/projects/keyword-ideas allows 15 req / min (150 / hour) per account. competitors-filtered / pagespeed / crux-history / similarweb allow 60 req / min (600 / hour) per account, plus a daily quota of 400 new-to-us domains. Body includes retryAfter (seconds); a Retry-After header is also set.","content":{"application/json":{"example":{"success":false,"message":"Rate limit exceeded. /api/tools/serp-check allows 10 req / 60s per API key, /api/tools/traffic-check 20 req / 60s. /api/projects/keyword-ideas allows 15 req / min (150 / hour) per account. competitors-filtered / pagespeed / crux-history / similarweb allow 60 req / min (600 / hour) per account, plus a daily quota of 400 new-to-us domains. Body includes retryAfter (seconds); a Retry-After header is also set."}}}},"500":{"description":"Server Error — Internal server error","content":{"application/json":{"example":{"success":false,"message":"Internal server error"}}}}},"security":[{"ApiKeyAuth":[]}]}},"/api/user/api-keys":{"get":{"tags":["API Keys"],"summary":"List your API keys","description":"Returns metadata only — secrets are never returned after creation. Each entry includes _id, name, keyPrefix (masked, first 4 chars only), lastUsedAt, createdAt.","operationId":"get_api_user_api_keys","responses":{"200":{"description":"Success","content":{"application/json":{"example":{"success":true,"apiKeys":[{"_id":"KEY_ID","name":"My Integration","keyPrefix":"sd_a••••","lastUsedAt":"2025-01-16T10:00:00.000Z","createdAt":"2025-01-10T08:00:00.000Z"}]}}}},"400":{"description":"Bad Request — Missing required parameter or invalid value","content":{"application/json":{"example":{"success":false,"message":"Missing required parameter or invalid value"}}}},"401":{"description":"Unauthorized — Missing or invalid API key. Body: { message } or { success: false }","content":{"application/json":{"example":{"success":false,"message":"Missing or invalid API key. Body: { message } or { success: false }"}}}},"403":{"description":"Forbidden — No API access on the current plan (Free), or the account is blocked. Body: { message, planRequired: true }","content":{"application/json":{"example":{"success":false,"message":"No API access on the current plan (Free), or the account is blocked. Body: { message, planRequired: true }"}}}},"404":{"description":"Not Found — Resource (project, folder, note) does not exist or belongs to another user","content":{"application/json":{"example":{"success":false,"message":"Resource (project, folder, note) does not exist or belongs to another user"}}}},"429":{"description":"Too Many Requests — Rate limit exceeded. /api/tools/serp-check allows 10 req / 60s per API key, /api/tools/traffic-check 20 req / 60s. /api/projects/keyword-ideas allows 15 req / min (150 / hour) per account. competitors-filtered / pagespeed / crux-history / similarweb allow 60 req / min (600 / hour) per account, plus a daily quota of 400 new-to-us domains. Body includes retryAfter (seconds); a Retry-After header is also set.","content":{"application/json":{"example":{"success":false,"message":"Rate limit exceeded. /api/tools/serp-check allows 10 req / 60s per API key, /api/tools/traffic-check 20 req / 60s. /api/projects/keyword-ideas allows 15 req / min (150 / hour) per account. competitors-filtered / pagespeed / crux-history / similarweb allow 60 req / min (600 / hour) per account, plus a daily quota of 400 new-to-us domains. Body includes retryAfter (seconds); a Retry-After header is also set."}}}},"500":{"description":"Server Error — Internal server error","content":{"application/json":{"example":{"success":false,"message":"Internal server error"}}}}},"security":[{"ApiKeyAuth":[]}]},"post":{"tags":["API Keys"],"summary":"Create a new API key","description":"`key` is the full secret — shown only once, store it immediately. `apiKey` is metadata. Max 5 active keys per user. Names limited to 100 chars.","operationId":"post_api_user_api_keys","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","description":"Key name (max 100 chars)"}},"required":["name"]}}}},"responses":{"201":{"description":"Success","content":{"application/json":{"example":{"success":true,"key":"sd_abcd1234567890abcdef1234567890abcdef1234","apiKey":{"_id":"KEY_ID","name":"My Integration","keyPrefix":"sd_a••••","createdAt":"2025-01-16T10:00:00.000Z"}}}}},"400":{"description":"Bad Request — Missing required parameter or invalid value","content":{"application/json":{"example":{"success":false,"message":"Missing required parameter or invalid value"}}}},"401":{"description":"Unauthorized — Missing or invalid API key. Body: { message } or { success: false }","content":{"application/json":{"example":{"success":false,"message":"Missing or invalid API key. Body: { message } or { success: false }"}}}},"403":{"description":"Forbidden — No API access on the current plan (Free), or the account is blocked. Body: { message, planRequired: true }","content":{"application/json":{"example":{"success":false,"message":"No API access on the current plan (Free), or the account is blocked. Body: { message, planRequired: true }"}}}},"404":{"description":"Not Found — Resource (project, folder, note) does not exist or belongs to another user","content":{"application/json":{"example":{"success":false,"message":"Resource (project, folder, note) does not exist or belongs to another user"}}}},"429":{"description":"Too Many Requests — Rate limit exceeded. /api/tools/serp-check allows 10 req / 60s per API key, /api/tools/traffic-check 20 req / 60s. /api/projects/keyword-ideas allows 15 req / min (150 / hour) per account. competitors-filtered / pagespeed / crux-history / similarweb allow 60 req / min (600 / hour) per account, plus a daily quota of 400 new-to-us domains. Body includes retryAfter (seconds); a Retry-After header is also set.","content":{"application/json":{"example":{"success":false,"message":"Rate limit exceeded. /api/tools/serp-check allows 10 req / 60s per API key, /api/tools/traffic-check 20 req / 60s. /api/projects/keyword-ideas allows 15 req / min (150 / hour) per account. competitors-filtered / pagespeed / crux-history / similarweb allow 60 req / min (600 / hour) per account, plus a daily quota of 400 new-to-us domains. Body includes retryAfter (seconds); a Retry-After header is also set."}}}},"500":{"description":"Server Error — Internal server error","content":{"application/json":{"example":{"success":false,"message":"Internal server error"}}}}},"security":[{"ApiKeyAuth":[]}]},"delete":{"tags":["API Keys"],"summary":"Revoke an API key","description":"Soft-revokes by setting `revokedAt`. Accepts `id` from either body or query string. Returns 404 if the key does not exist or already revoked.","operationId":"delete_api_user_api_keys","parameters":[{"name":"id","in":"query","required":false,"schema":{"type":"string"},"description":"API key ID (one of body or query is required)"}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","description":"API key ID (one of body or query is required)"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"example":{"success":true}}}},"400":{"description":"Bad Request — Missing required parameter or invalid value","content":{"application/json":{"example":{"success":false,"message":"Missing required parameter or invalid value"}}}},"401":{"description":"Unauthorized — Missing or invalid API key. Body: { message } or { success: false }","content":{"application/json":{"example":{"success":false,"message":"Missing or invalid API key. Body: { message } or { success: false }"}}}},"403":{"description":"Forbidden — No API access on the current plan (Free), or the account is blocked. Body: { message, planRequired: true }","content":{"application/json":{"example":{"success":false,"message":"No API access on the current plan (Free), or the account is blocked. Body: { message, planRequired: true }"}}}},"404":{"description":"Not Found — Resource (project, folder, note) does not exist or belongs to another user","content":{"application/json":{"example":{"success":false,"message":"Resource (project, folder, note) does not exist or belongs to another user"}}}},"429":{"description":"Too Many Requests — Rate limit exceeded. /api/tools/serp-check allows 10 req / 60s per API key, /api/tools/traffic-check 20 req / 60s. /api/projects/keyword-ideas allows 15 req / min (150 / hour) per account. competitors-filtered / pagespeed / crux-history / similarweb allow 60 req / min (600 / hour) per account, plus a daily quota of 400 new-to-us domains. Body includes retryAfter (seconds); a Retry-After header is also set.","content":{"application/json":{"example":{"success":false,"message":"Rate limit exceeded. /api/tools/serp-check allows 10 req / 60s per API key, /api/tools/traffic-check 20 req / 60s. /api/projects/keyword-ideas allows 15 req / min (150 / hour) per account. competitors-filtered / pagespeed / crux-history / similarweb allow 60 req / min (600 / hour) per account, plus a daily quota of 400 new-to-us domains. Body includes retryAfter (seconds); a Retry-After header is also set."}}}},"500":{"description":"Server Error — Internal server error","content":{"application/json":{"example":{"success":false,"message":"Internal server error"}}}}},"security":[{"ApiKeyAuth":[]}]}}}}