API & MCP

Let Claude, ChatGPT / OpenAI or any MCP client run backlink cost queries inside their tasks.

MCP endpoint
https://your-site/api/mcp
Streamable HTTP · MCP 2025-06-18 / 2026-07-28
Authentication

Use an invite code (Bearer token or the key URL parameter), or your own DataForSEO account via the X-DFS-Login / X-DFS-Password headers.

Your invite code: — · Add an invite code in Settings and the examples below will include it.

Client setup

claude mcp add --transport http linkcost https://your-site/api/mcp \
  --header "Authorization: Bearer YOUR_INVITE_CODE"

Tools

estimate_query_cost

Count the target's referring domains and estimate DataForSEO cost per fetch size (≈ $0.024)

analyze_linkcost

docs.toolDesc.analyze_linkcost

batch_analyze_linkcost

docs.toolDesc.batch_analyze_linkcost

get_report

Read a saved report, optionally filtered to matched / free / unmatched domains

lookup_domain_price

All inventory offers for one domain (no credit used)

check_credit

Remaining invite-code credit

REST API

POST /api/estimate
curl -X POST https://your-site/api/estimate \
  -H "content-type: application/json" \
  -H "x-invite-code: YOUR_INVITE_CODE" \
  -d '{"target":"example.com"}'
POST /api/analyze
curl -X POST https://your-site/api/analyze \
  -H "content-type: application/json" \
  -H "x-invite-code: YOUR_INVITE_CODE" \
  -d '{"target":"example.com","limit":1000}'   # limit: 10–100000 or "all"
GET /api/invite
curl https://your-site/api/invite -H "x-invite-code: YOUR_INVITE_CODE"