Docs

33 tools. The same tools work in Claude, in ChatGPT and over the REST API.

Peak Answer gives Claude, ChatGPT and your own code the data for SEO and AI search. Each call costs credits, and reading your own Search Console, Google Analytics and PostHog data is free. Start free with 300 credits a month.

Connect in Claude or ChatGPT

The server address is the same everywhere. It uses OAuth, so you sign in and approve access when you connect.

https://peakanswer.com/api/mcp
ClientHow
Claude (web and desktop)Settings, Connectors, add custom connector, paste the URL and sign in.
Claude Codeclaude mcp add --transport http peakanswer https://peakanswer.com/api/mcp
ChatGPTPlugins, the plus button, Add custom MCP server. Paste the URL, choose OAuth, then Create as a plugin and install it.
Cursor and VS CodeAdd an entry with the url https://peakanswer.com/api/mcp to mcp.json. The editor handles the sign in.
Gemini CLIgemini mcp add --transport http peakanswer https://peakanswer.com/api/mcp

A client that cannot sign in can send an API key as Authorization: Bearer YOUR_KEY. Each tool below shows its MCP name and the arguments it takes.

Use the REST API

Make a key on the API keys page. It is shown once, so copy it somewhere safe. Keep it on your server, never in front end code.

curl "https://peakanswer.com/api/v1/account/credits" \
  -H "Authorization: Bearer $PEAK_ANSWER_KEY"

Every answer is JSON with data, next_cursor and meta. The meta object has credits_used and credits_left for the call. Lists carry a next_cursor: pass it back as cursor to get the next page. For writes, send an Idempotency-Key header so a retry does not repeat the change. The whole API is also described as OpenAPI 3.1.

Credits and plans

Each tool lists its price below. A refused call costs nothing, and a call that fails before it returns an answer is refunded. Plan credits reset each billing cycle and do not carry over. Top up credits last 12 months and are used after the plan credits.

PlanPrice a monthCredits a monthWatched itemsSites
Free$030051
Starter$91,500503
Pro$295,00025010
Agency$9918,000No limit25

Annual billing is two months free. Top ups: $10 for 1,500 credits, $50 for 8,000 credits, $200 for 35,000 credits.

ToolCost
credits_usageFree (0 credits)
plan_infoFree (0 credits)
topup_linkFree (0 credits)
billing_linkFree (0 credits)
api_keys_listFree (0 credits)
api_keys_createFree (0 credits)
api_keys_revokeFree (0 credits)
connect_linkFree (0 credits)
credit_alert_setFree (0 credits)
watch_listFree (0 credits)
watch_updateFree (0 credits)
answers_run1 credit per run on ChatGPT, Gemini and Google AI Mode, 3 on Perplexity, 30 on Claude. A follow up turn costs the same again
answers_batch1 credit per run on ChatGPT, Gemini and Google AI Mode, 3 on Perplexity, 30 on Claude. A batch costs the sum of its runs
jobs_getFree (0 credits)
answers_historyFree (0 credits)
changes_summaryFree (0 credits)
serp_google1 credits per search
keywords_lookup10 credits per call, up to 100 keywords
keywords_ideas10 credits per call
domain_ranked_keywords20 credits per call
domain_strength20 credits per call
backlinks_list20 credits per call
citations_sources10 credits per call, 2 when answered from the shared cache
threads_search10 credits per call
facts_check10 credits per engine
page_audit20 credits per page
site_audit20 credits per site
coverage_map10 credits per map
crawler_checkFree (0 credits)
gsc_queryFree (0 credits)
ga4_reportFree (0 credits)
posthog_queryFree (0 credits)
my_ai_visitsFree (0 credits)

Every tool

Account

Credits and usage credits_usage

The credit balance (from the plan and from top ups), when plan credits reset, what this month's credits went on by tool, and the latest calls with what each cost. Free. Call it before a big job or when asked how many credits are left.

Free (0 credits). Works with a read only key. GET /api/v1/account/credits

ParameterTypeRequiredWhat it does
recent_callsintegerNoHow many of the latest calls to list, up to 100.

Example request

curl "https://peakanswer.com/api/v1/account/credits" \
  -H "Authorization: Bearer $PEAK_ANSWER_KEY"

The same call from an MCP client:

{
  "name": "credits_usage",
  "arguments": {}
}

Example response

{
  "data": {
    "metered": true,
    "plan": {
      "id": "example.com",
      "label": "example.com"
    },
    "balance": {
      "total": 1,
      "from_plan": 1,
      "from_top_ups": 1,
      "plan_resets_at": "example.com"
    },
    "month": {
      "starts_at": "example.com",
      "credits_used": 1,
      "by_tool": [
        {
          "tool": "example.com",
          "credits": 1
        }
      ]
    },
    "recent_calls": [
      {
        "at": "example.com",
        "tool": "example.com",
        "credits": 1,
        "refunded": true
      }
    ],
    "low_balance_alert": {
      "threshold": 1
    }
  },
  "next_cursor": null,
  "meta": {
    "as_of": "2026-11-23T00:00:00.000Z",
    "source": "peakanswer",
    "credits_used": 0,
    "credits_left": 1450
  }
}

Plan plan_info

The current plan and what it includes, how the account is billed and when it renews, the three top ups, and every plan side by side. Free.

Free (0 credits). Works with a read only key. GET /api/v1/account/plan

No parameters.

Example request

curl "https://peakanswer.com/api/v1/account/plan" \
  -H "Authorization: Bearer $PEAK_ANSWER_KEY"

The same call from an MCP client:

{
  "name": "plan_info",
  "arguments": {}
}

Example response

{
  "data": {
    "metered": true,
    "plan": {
      "id": "free",
      "label": "example.com",
      "price_monthly_usd": 1,
      "price_annual_usd": 1,
      "monthly_credits": 1,
      "watch_limit": 1,
      "brand_limit": 1,
      "seat_limit": 1,
      "requests_per_minute": 1
    },
    "monthly_credits": 1,
    "billing": {
      "interval": "monthly",
      "status": "example.com",
      "renews_at": "example.com",
      "cancels_at": "example.com",
      "has_subscription": true
    },
    "top_ups": [
      {
        "id": "topup_10",
        "price_usd": 1,
        "credits": 1
      }
    ],
    "plans": [
      {
        "id": "free",
        "label": "example.com",
        "price_monthly_usd": 1,
        "price_annual_usd": 1,
        "monthly_credits": 1,
        "watch_limit": 1,
        "brand_limit": 1,
        "seat_limit": 1,
        "requests_per_minute": 1
      }
    ]
  },
  "next_cursor": null,
  "meta": {
    "as_of": "2026-11-23T00:00:00.000Z",
    "source": "peakanswer",
    "credits_used": 0,
    "credits_left": 1450
  }
}

Low credit email credit_alert_set

Turn the low credit email on or off. Give a number of credits to get an email when the balance drops under it. Leave the number out to turn it off.

Free (0 credits). Needs a key that can make changes. PUT /api/v1/account/credit-alert

ParameterTypeRequiredWhat it does
thresholdintegerNoCredits. Null or left out turns the email off.

Example request

curl -X PUT "https://peakanswer.com/api/v1/account/credit-alert" \
  -H "Authorization: Bearer $PEAK_ANSWER_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'

The same call from an MCP client:

{
  "name": "credit_alert_set",
  "arguments": {}
}

Example response

{
  "data": {
    "threshold": 1
  },
  "next_cursor": null,
  "meta": {
    "as_of": "2026-11-23T00:00:00.000Z",
    "source": "peakanswer",
    "credits_used": 0,
    "credits_left": 1450
  }
}

Billing

API keys

API keys api_keys_list

The API keys on the account with their name, the start of the key, whether they read or also write, and when each was last used. The secret is never shown.

Free (0 credits). Works with a read only key. GET /api/v1/keys

ParameterTypeRequiredWhat it does
cursorstringNoPass next_cursor from the previous page to get the next one.
limitintegerNoHow many rows to return, 1 to 200.

Example request

curl "https://peakanswer.com/api/v1/keys" \
  -H "Authorization: Bearer $PEAK_ANSWER_KEY"

The same call from an MCP client:

{
  "name": "api_keys_list",
  "arguments": {}
}

Example response

{
  "data": {
    "items": [
      {
        "id": "example.com",
        "name": "example.com",
        "prefix": "example.com",
        "scope": "read",
        "reach": "brand",
        "brand_id": "example.com",
        "last_used_at": "example.com",
        "created_at": "example.com",
        "legacy": true
      }
    ]
  },
  "next_cursor": null,
  "meta": {
    "as_of": "2026-11-23T00:00:00.000Z",
    "source": "peakanswer",
    "credits_used": 0,
    "credits_left": 1450
  }
}

Make an API key api_keys_create

Make a new API key. The secret is in the answer once and cannot be read again, so show it to the person and tell them to save it. Read keys can only look. Write keys can also change things.

Free (0 credits). Needs a key that can make changes. POST /api/v1/keys

ParameterTypeRequiredWhat it does
namestringNoA label, such as the script that will use it.
access"read" | "write"No
reach"brand" | "org"Noorg works on every site on the account. brand works on one site.
sitestringNoThe site id, for reach brand.

Example request

curl -X POST "https://peakanswer.com/api/v1/keys" \
  -H "Authorization: Bearer $PEAK_ANSWER_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'

The same call from an MCP client:

{
  "name": "api_keys_create",
  "arguments": {}
}

Example response

{
  "data": {
    "id": "example.com",
    "key": "example.com",
    "prefix": "example.com",
    "access": "read",
    "reach": "brand"
  },
  "next_cursor": null,
  "meta": {
    "as_of": "2026-11-23T00:00:00.000Z",
    "source": "peakanswer",
    "credits_used": 0,
    "credits_left": 1450
  }
}

Revoke an API key api_keys_revoke

Stop an API key from working, for good. Get the id from api_keys_list. Revoking the key used for this call ends that connection.

Free (0 credits). Needs a key that can make changes. DELETE /api/v1/keys/{id}

ParameterTypeRequiredWhat it does
idstringYesThe key id from api_keys_list.

Example request

curl -X DELETE "https://peakanswer.com/api/v1/keys/example.com" \
  -H "Authorization: Bearer $PEAK_ANSWER_KEY"

The same call from an MCP client:

{
  "name": "api_keys_revoke",
  "arguments": {
    "id": "example.com"
  }
}

Example response

{
  "data": {
    "id": "example.com",
    "revoked": true,
    "legacy": true
  },
  "next_cursor": null,
  "meta": {
    "as_of": "2026-11-23T00:00:00.000Z",
    "source": "peakanswer",
    "credits_used": 0,
    "credits_left": 1450
  }
}

Connections

Watching

List watched items watch_list

List what is being watched on this account: each query that reruns on a schedule, how often, whether it is on, when it last ran and how that went. Also says how many watches the plan allows.

Free (0 credits). Works with a read only key. GET /api/v1/watches

ParameterTypeRequiredWhat it does
cursorstringNoPass next_cursor from the previous page to get the next one.
limitintegerNoHow many rows to return, 1 to 200.
activebooleanNoOnly watches that are on (true) or off (false). Leave out for all.

Example request

curl "https://peakanswer.com/api/v1/watches" \
  -H "Authorization: Bearer $PEAK_ANSWER_KEY"

The same call from an MCP client:

{
  "name": "watch_list",
  "arguments": {}
}

Example response

{
  "data": {
    "items": [
      {
        "id": "example.com",
        "brand_id": "example.com",
        "capability": "example.com",
        "label": "example.com",
        "input": {},
        "frequency": "example.com",
        "active": true,
        "last_run_at": "example.com",
        "next_run_at": "example.com",
        "last_status": "example.com",
        "created_at": "example.com"
      }
    ],
    "count": 1,
    "limit": 1
  },
  "next_cursor": null,
  "meta": {
    "as_of": "2026-11-23T00:00:00.000Z",
    "source": "peakanswer",
    "credits_used": 0,
    "credits_left": 1450
  }
}

Change a watched item watch_update

Turn a watch on or off, change how often it runs (daily or weekly), or remove it. Every scheduled run costs the same credits as the call it repeats, and a watch is skipped when the account has no credits.

Free (0 credits). Needs a key that can make changes. PATCH /api/v1/watches/{id}

ParameterTypeRequiredWhat it does
idstringYesThe watch's id, from watch.list.
activebooleanNotrue to turn it on, false to turn it off.
frequency"daily" | "weekly"Nodaily or weekly.
deletebooleanNotrue to remove the watch. Past results stay stored.

Example request

curl -X PATCH "https://peakanswer.com/api/v1/watches/example.com" \
  -H "Authorization: Bearer $PEAK_ANSWER_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'

The same call from an MCP client:

{
  "name": "watch_update",
  "arguments": {
    "id": "example.com"
  }
}

Example response

{
  "data": {
    "id": "example.com",
    "deleted": true,
    "watch": {
      "id": "example.com",
      "brand_id": "example.com",
      "capability": "example.com",
      "label": "example.com",
      "input": {},
      "frequency": "example.com",
      "active": true,
      "last_run_at": "example.com",
      "next_run_at": "example.com",
      "last_status": "example.com",
      "created_at": "example.com"
    }
  },
  "next_cursor": null,
  "meta": {
    "as_of": "2026-11-23T00:00:00.000Z",
    "source": "peakanswer",
    "credits_used": 0,
    "credits_left": 1450
  }
}

AI answers

Ask an AI engine answers_run

Asks one AI engine a question right now. Returns the answer, the brands it names with their place in its list, the sources it cites with links, and whether it showed products. A follow_up question runs a second turn that carries the first answer along, and returns both turns. The run is stored with its date, and watch reruns it on a schedule. Costs 1 credit on ChatGPT, Gemini and Google AI Mode, 3 on Perplexity and 30 on Claude. A follow_up costs the same again.

1 credit per run on ChatGPT, Gemini and Google AI Mode, 3 on Perplexity, 30 on Claude. A follow up turn costs the same again. Works with a read only key. POST /api/v1/answers/run

ParameterTypeRequiredWhat it does
questionstringYesThe question to ask, written the way a buyer would type it.
engine"chatgpt" | "gemini" | "google_ai_mode" | "perplexity" | "claude"NoWhich engine to ask: chatgpt, gemini, google_ai_mode, perplexity, claude.
follow_upstringNoA second question asked after the first answer.
countrystringNoTwo letter country code the search or question is asked from. Default us.
domainstringNoA website address such as example.com. When given, the response says whether it is named or listed.
detail"compact" | "full"Nocompact is short and ready to chain into the next call. full returns the raw detail.
watchbooleanNoSet true to run this again on a schedule and keep every run. Each rerun costs the same credits.
watch_frequency"daily" | "weekly"NoHow often a watched call reruns. Used only when watch is true.
brandstringNoSite id or domain. Needed with a key that covers every site.

Example request

curl -X POST "https://peakanswer.com/api/v1/answers/run" \
  -H "Authorization: Bearer $PEAK_ANSWER_KEY" \
  -H "Content-Type: application/json" \
  -d '{"question":"example.com"}'

The same call from an MCP client:

{
  "name": "answers_run",
  "arguments": {
    "question": "example.com"
  }
}

Example response

{
  "data": {
    "id": "example.com",
    "question": "example.com",
    "engine": "example.com",
    "engine_label": "example.com",
    "country": "example.com",
    "model": "example.com",
    "captured_at": "example.com",
    "answer": "example.com",
    "named": true,
    "brands": [
      {
        "brand": "example.com",
        "is_you": true,
        "rank": 1,
        "sentiment": "example.com",
        "linked": true
      }
    ],
    "citations": [
      {
        "url": "example.com",
        "domain": "example.com",
        "title": "example.com",
        "kind": "cited"
      }
    ],
    "shopping": {
      "shown": true,
      "advertisers": [
        "example.com"
      ]
    },
    "search_ran": true,
    "follow_up": {
      "question": "example.com",
      "answer": "example.com",
      "brands": [
        {
          "brand": "example.com",
          "is_you": true,
          "rank": 1,
          "sentiment": "example.com",
          "linked": true
        }
      ],
      "citations": [
        {
          "url": "example.com",
          "domain": "example.com",
          "title": "example.com",
          "kind": "cited"
        }
      ]
    },
    "watch": {
      "id": "example.com",
      "frequency": "daily",
      "next_run_at": "example.com",
      "created": true
    }
  },
  "next_cursor": null,
  "meta": {
    "as_of": "2026-11-23T00:00:00.000Z",
    "source": "peakanswer",
    "credits_used": 0,
    "credits_left": 1450
  }
}

Ask many questions at once answers_batch

Asks up to 50 questions on one or more engines as a background job and returns a job id straight away. Call jobs_get with that id to collect the answers. Every run is stored. Costs 1 credit on ChatGPT, Gemini and Google AI Mode, 3 on Perplexity and 30 on Claude. The call costs the sum of every question on every engine, and a run that fails gives its credits back.

1 credit per run on ChatGPT, Gemini and Google AI Mode, 3 on Perplexity, 30 on Claude. A batch costs the sum of its runs. Works with a read only key. POST /api/v1/answers/batch

ParameterTypeRequiredWhat it does
questionslist of stringYesThe questions to ask, up to 50.
engineslist of "chatgpt" | "gemini" | "google_ai_mode" | "perplexity" | "claude"NoEngines to ask each question on, from chatgpt, gemini, google_ai_mode, perplexity, claude.
countrystringNoTwo letter country code the search or question is asked from. Default us.
domainstringNoA website address such as example.com. When given, the response says whether it is named or listed.
detail"compact" | "full"Nocompact is short and ready to chain into the next call. full returns the raw detail.
brandstringNoSite id or domain. Needed with a key that covers every site.

Example request

curl -X POST "https://peakanswer.com/api/v1/answers/batch" \
  -H "Authorization: Bearer $PEAK_ANSWER_KEY" \
  -H "Content-Type: application/json" \
  -d '{"questions":["example.com"]}'

The same call from an MCP client:

{
  "name": "answers_batch",
  "arguments": {
    "questions": [
      "example.com"
    ]
  }
}

Example response

{
  "data": {
    "job_id": "example.com",
    "status": "running",
    "total_runs": 1
  },
  "next_cursor": null,
  "meta": {
    "as_of": "2026-11-23T00:00:00.000Z",
    "source": "peakanswer",
    "credits_used": 0,
    "credits_left": 1450
  }
}

Stored runs and what moved answers_history

Every stored run for one question, or for everything this account has run, newest first, with what changed between the last two runs of each: brands gained and lost, and sources gained and lost. Costs 0 credits.

Free (0 credits). Works with a read only key. GET /api/v1/answers/history

ParameterTypeRequiredWhat it does
questionstringNoA stored question or enough of its words to find it. Leave empty for every question.
enginestringNoOnly runs on this engine.
daysintegerNoHow far back to look, in days.
domainstringNoA website address such as example.com. When given, the response says whether it is named or listed.
limitintegerNoHow many rows to return, 1 to 200.

Example request

curl "https://peakanswer.com/api/v1/answers/history" \
  -H "Authorization: Bearer $PEAK_ANSWER_KEY"

The same call from an MCP client:

{
  "name": "answers_history",
  "arguments": {}
}

Example response

{
  "data": {
    "question": "example.com",
    "exact": true,
    "runs_found": 1,
    "you_named_share": 1,
    "runs": [
      {
        "id": "example.com",
        "question": "example.com",
        "engine": "example.com",
        "captured_at": "example.com",
        "you_named": true,
        "brands": [
          "example.com"
        ],
        "citations": 1,
        "follow_up": true
      }
    ],
    "changes": [
      {
        "question": "example.com",
        "engine": "example.com",
        "from": "example.com",
        "to": "example.com",
        "you_named": {
          "before": true,
          "after": true
        },
        "brands_gained": [
          "example.com"
        ],
        "brands_lost": [
          "example.com"
        ],
        "citations_gained": [
          "example.com"
        ],
        "citations_lost": [
          "example.com"
        ]
      }
    ]
  },
  "next_cursor": null,
  "meta": {
    "as_of": "2026-11-23T00:00:00.000Z",
    "source": "peakanswer",
    "credits_used": 0,
    "credits_left": 1450
  }
}

Jobs

Collect a background job jobs_get

Shows how far a background job has got and returns its results when it is done. Use it with the job id from answers_batch. Costs 0 credits.

Free (0 credits). Works with a read only key. GET /api/v1/jobs/{id}

ParameterTypeRequiredWhat it does
idstringYesThe job id.
detail"compact" | "full"Nocompact is short and ready to chain into the next call. full returns the raw detail.

Example request

curl "https://peakanswer.com/api/v1/jobs/example.com" \
  -H "Authorization: Bearer $PEAK_ANSWER_KEY"

The same call from an MCP client:

{
  "name": "jobs_get",
  "arguments": {
    "id": "example.com"
  }
}

Example response

{
  "data": {
    "id": "example.com",
    "kind": "example.com",
    "status": "running",
    "done": 1,
    "total": 1,
    "failed": 1,
    "results": [
      {
        "question": "example.com",
        "engine": "example.com",
        "status": "done",
        "error": "example.com",
        "run_id": "example.com",
        "named": true,
        "answer": "example.com",
        "brands": [
          {
            "brand": "example.com",
            "is_you": true,
            "rank": 1
          }
        ],
        "citations": [
          {
            "url": "example.com",
            "domain": "example.com",
            "kind": "cited"
          }
        ]
      }
    ],
    "error": "example.com",
    "created_at": "example.com",
    "finished_at": "example.com"
  },
  "next_cursor": null,
  "meta": {
    "as_of": "2026-11-23T00:00:00.000Z",
    "source": "peakanswer",
    "credits_used": 0,
    "credits_left": 1450
  }
}

What changed

What changed changes_summary

What changed across everything this account has run or watched in a date range: for each question and engine, whether the brand is named now, and the brands and sources gained and lost between the first and last run. Defaults to the last 7 days. Costs 0 credits.

Free (0 credits). Works with a read only key. GET /api/v1/changes/summary

ParameterTypeRequiredWhat it does
sincestringNoStart date as YYYY-MM-DD. Default 7 days ago.
untilstringNoEnd date as YYYY-MM-DD. Default today.
limitintegerNoHow many rows to return, 1 to 200.

Example request

curl "https://peakanswer.com/api/v1/changes/summary" \
  -H "Authorization: Bearer $PEAK_ANSWER_KEY"

The same call from an MCP client:

{
  "name": "changes_summary",
  "arguments": {}
}

Example response

{
  "data": {
    "from": "example.com",
    "to": "example.com",
    "runs": 1,
    "questions": 1,
    "watched": 1,
    "changed": 1,
    "unchanged": 1,
    "changes": [
      {
        "question": "example.com",
        "engine": "example.com",
        "from": "example.com",
        "to": "example.com",
        "you_named": {
          "before": true,
          "after": true
        },
        "brands_gained": [
          "example.com"
        ],
        "brands_lost": [
          "example.com"
        ],
        "citations_gained": [
          "example.com"
        ],
        "citations_lost": [
          "example.com"
        ]
      }
    ]
  },
  "next_cursor": null,
  "meta": {
    "as_of": "2026-11-23T00:00:00.000Z",
    "source": "peakanswer",
    "credits_used": 0,
    "credits_left": 1450
  }
}

Google results

Google results serp_google

Runs one Google search and returns the organic results with their positions, whether Google showed an AI Overview and the pages it cited, and the People Also Ask questions. Pass domain to see where that site stands. The search is stored with its date. Costs 1 credit a search.

1 credits per search. Works with a read only key. POST /api/v1/serp/google

ParameterTypeRequiredWhat it does
querystringYesWhat to search for.
countrystringNoTwo letter country code the search or question is asked from. Default us.
domainstringNoA website address such as example.com. When given, the response says whether it is named or listed.
detail"compact" | "full"Nocompact is short and ready to chain into the next call. full returns the raw detail.
watchbooleanNoSet true to run this again on a schedule and keep every run. Each rerun costs the same credits.
watch_frequency"daily" | "weekly"NoHow often a watched call reruns. Used only when watch is true.
brandstringNoSite id or domain. Needed with a key that covers every site.

Example request

curl -X POST "https://peakanswer.com/api/v1/serp/google" \
  -H "Authorization: Bearer $PEAK_ANSWER_KEY" \
  -H "Content-Type: application/json" \
  -d '{"query":"example.com"}'

The same call from an MCP client:

{
  "name": "serp_google",
  "arguments": {
    "query": "example.com"
  }
}

Example response

{
  "data": {
    "run_id": "example.com",
    "query": "example.com",
    "country": "example.com",
    "organic": [
      {
        "position": 1,
        "url": "example.com",
        "domain": "example.com",
        "title": "example.com",
        "snippet": "example.com"
      }
    ],
    "ai_overview": {
      "shown": true,
      "excerpt": "example.com",
      "cited": [
        {
          "url": "example.com",
          "domain": "example.com",
          "title": "example.com"
        }
      ]
    },
    "people_also_ask": [
      "example.com"
    ],
    "you": {
      "domain": "example.com",
      "position": 1,
      "cited_in_overview": true
    },
    "watch": {
      "id": "example.com",
      "frequency": "daily",
      "next_run_at": "example.com",
      "created": true
    }
  },
  "next_cursor": null,
  "meta": {
    "as_of": "2026-11-23T00:00:00.000Z",
    "source": "peakanswer",
    "credits_used": 0,
    "credits_left": 1450
  }
}

Phrases

Phrase numbers keywords_lookup

Looks up up to 100 phrases on Google: monthly searches, how hard it is to rank, cost per click, what the searcher wants, and the monthly trend. A phrase with no data comes back with empty numbers. Costs 10 credits a call.

10 credits per call, up to 100 keywords. Works with a read only key. POST /api/v1/keywords/lookup

ParameterTypeRequiredWhat it does
phraseslist of stringYesThe phrases to look up, up to 100.
countrystringNoTwo letter country code the search or question is asked from. Default us.
languagestringNoLanguage code such as en or de. Defaults to the main language of the country.
detail"compact" | "full"Nocompact is short and ready to chain into the next call. full returns the raw detail.
watchbooleanNoSet true to run this again on a schedule and keep every run. Each rerun costs the same credits.
watch_frequency"daily" | "weekly"NoHow often a watched call reruns. Used only when watch is true.

Example request

curl -X POST "https://peakanswer.com/api/v1/keywords/lookup" \
  -H "Authorization: Bearer $PEAK_ANSWER_KEY" \
  -H "Content-Type: application/json" \
  -d '{"phrases":["example.com"]}'

The same call from an MCP client:

{
  "name": "keywords_lookup",
  "arguments": {
    "phrases": [
      "example.com"
    ]
  }
}

Example response

{
  "data": {
    "country": "example.com",
    "from_cache": true,
    "items": [
      {
        "phrase": "example.com",
        "monthly_searches": 1,
        "difficulty": 1,
        "cpc": 1,
        "intent": "example.com",
        "trend": [
          {
            "month": "example.com",
            "monthly_searches": 1
          }
        ]
      }
    ],
    "watch": {
      "id": "example.com",
      "frequency": "daily",
      "next_run_at": "example.com",
      "created": true
    }
  },
  "next_cursor": null,
  "meta": {
    "as_of": "2026-11-23T00:00:00.000Z",
    "source": "peakanswer",
    "credits_used": 0,
    "credits_left": 1450
  }
}

Phrase ideas keywords_ideas

Finds related phrases and the questions people ask for a starting phrase, with monthly searches for each. Costs 10 credits a call.

10 credits per call. Works with a read only key. POST /api/v1/keywords/ideas

ParameterTypeRequiredWhat it does
seedstringYesThe phrase to start from.
countrystringNoTwo letter country code the search or question is asked from. Default us.
languagestringNoLanguage code such as en or de. Defaults to the main language of the country.
limitintegerNoHow many ideas to return, 1 to 100.
watchbooleanNoSet true to run this again on a schedule and keep every run. Each rerun costs the same credits.
watch_frequency"daily" | "weekly"NoHow often a watched call reruns. Used only when watch is true.

Example request

curl -X POST "https://peakanswer.com/api/v1/keywords/ideas" \
  -H "Authorization: Bearer $PEAK_ANSWER_KEY" \
  -H "Content-Type: application/json" \
  -d '{"seed":"example.com"}'

The same call from an MCP client:

{
  "name": "keywords_ideas",
  "arguments": {
    "seed": "example.com"
  }
}

Example response

{
  "data": {
    "seed": "example.com",
    "country": "example.com",
    "from_cache": true,
    "ideas": [
      {
        "phrase": "example.com",
        "monthly_searches": 1,
        "intent": "example.com"
      }
    ],
    "questions": [
      {
        "phrase": "example.com",
        "monthly_searches": 1,
        "intent": "example.com"
      }
    ],
    "watch": {
      "id": "example.com",
      "frequency": "daily",
      "next_run_at": "example.com",
      "created": true
    }
  },
  "next_cursor": null,
  "meta": {
    "as_of": "2026-11-23T00:00:00.000Z",
    "source": "peakanswer",
    "credits_used": 0,
    "credits_left": 1450
  }
}

Domains

What a site ranks for domain_ranked_keywords

Lists the phrases a site ranks for in Google, best position first, with the page that ranks and the monthly searches for each. Costs 20 credits a call.

20 credits per call. Works with a read only key. POST /api/v1/domain/ranked-keywords

ParameterTypeRequiredWhat it does
domainstringYesA website address such as example.com.
countrystringNoTwo letter country code the search or question is asked from. Default us.
languagestringNoLanguage code such as en or de. Defaults to the main language of the country.
limitintegerNoHow many phrases to return, 1 to 100.
watchbooleanNoSet true to run this again on a schedule and keep every run. Each rerun costs the same credits.
watch_frequency"daily" | "weekly"NoHow often a watched call reruns. Used only when watch is true.

Example request

curl -X POST "https://peakanswer.com/api/v1/domain/ranked-keywords" \
  -H "Authorization: Bearer $PEAK_ANSWER_KEY" \
  -H "Content-Type: application/json" \
  -d '{"domain":"example.com"}'

The same call from an MCP client:

{
  "name": "domain_ranked_keywords",
  "arguments": {
    "domain": "example.com"
  }
}

Example response

{
  "data": {
    "domain": "example.com",
    "country": "example.com",
    "from_cache": true,
    "total": 1,
    "items": [
      {
        "phrase": "example.com",
        "position": 1,
        "url": "example.com",
        "monthly_searches": 1
      }
    ],
    "watch": {
      "id": "example.com",
      "frequency": "daily",
      "next_run_at": "example.com",
      "created": true
    }
  },
  "next_cursor": null,
  "meta": {
    "as_of": "2026-11-23T00:00:00.000Z",
    "source": "peakanswer",
    "credits_used": 0,
    "credits_left": 1450
  }
}

How strong a site is domain_strength

Gives a site's authority score from 0 to 100, how many links point at it and from how many different sites, its spam score, and the Ahrefs Domain Rating when it is available. Costs 20 credits a call.

20 credits per call. Works with a read only key. POST /api/v1/domain/strength

ParameterTypeRequiredWhat it does
domainstringYesA website address such as example.com.
watchbooleanNoSet true to run this again on a schedule and keep every run. Each rerun costs the same credits.
watch_frequency"daily" | "weekly"NoHow often a watched call reruns. Used only when watch is true.

Example request

curl -X POST "https://peakanswer.com/api/v1/domain/strength" \
  -H "Authorization: Bearer $PEAK_ANSWER_KEY" \
  -H "Content-Type: application/json" \
  -d '{"domain":"example.com"}'

The same call from an MCP client:

{
  "name": "domain_strength",
  "arguments": {
    "domain": "example.com"
  }
}

Example response

{
  "data": {
    "domain": "example.com",
    "authority": 1,
    "backlinks": 1,
    "referring_domains": 1,
    "spam_score": 1,
    "ahrefs_domain_rating": 1,
    "from_cache": true,
    "checked_at": "example.com",
    "watch": {
      "id": "example.com",
      "frequency": "daily",
      "next_run_at": "example.com",
      "created": true
    }
  },
  "next_cursor": null,
  "meta": {
    "as_of": "2026-11-23T00:00:00.000Z",
    "source": "peakanswer",
    "credits_used": 0,
    "credits_left": 1450
  }
}

Backlinks

Citations

Which sites the engines cite citations_sources

Shows which sites and pages AI engines cite for a topic, and whether yours is one of them. It asks ChatGPT, Gemini and Google AI Mode the topic and any extra questions, and adds what this account stored in the last 30 days. The result is held for a week and shared across accounts by topic and country. Costs 10 credits a call. Costs 2 when the answer is already held from earlier searches.

10 credits per call, 2 when answered from the shared cache. Works with a read only key. POST /api/v1/citations/sources

ParameterTypeRequiredWhat it does
topicstringYesThe topic, written as a question a buyer would ask.
questionslist of stringNoUp to 4 more questions on the same topic.
countrystringNoTwo letter country code the search or question is asked from. Default us.
domainstringNoA website address such as example.com. When given, the response says whether it is named or listed.
detail"compact" | "full"Nocompact is short and ready to chain into the next call. full returns the raw detail.
watchbooleanNoSet true to run this again on a schedule and keep every run. Each rerun costs the same credits.
watch_frequency"daily" | "weekly"NoHow often a watched call reruns. Used only when watch is true.
brandstringNoSite id or domain. Needed with a key that covers every site.

Example request

curl -X POST "https://peakanswer.com/api/v1/citations/sources" \
  -H "Authorization: Bearer $PEAK_ANSWER_KEY" \
  -H "Content-Type: application/json" \
  -d '{"topic":"example.com"}'

The same call from an MCP client:

{
  "name": "citations_sources",
  "arguments": {
    "topic": "example.com"
  }
}

Example response

{
  "data": {
    "topic": "example.com",
    "country": "example.com",
    "from_cache": true,
    "runs": 1,
    "engines": [
      "example.com"
    ],
    "domains": [
      {
        "domain": "example.com",
        "citations": 1,
        "engines": [
          "example.com"
        ]
      }
    ],
    "pages": [
      {
        "url": "example.com",
        "domain": "example.com",
        "title": "example.com",
        "citations": 1
      }
    ],
    "you": {
      "domain": "example.com",
      "cited": true,
      "pages": [
        "example.com"
      ]
    },
    "watch": {
      "id": "example.com",
      "frequency": "daily",
      "next_run_at": "example.com",
      "created": true
    }
  },
  "next_cursor": null,
  "meta": {
    "as_of": "2026-11-23T00:00:00.000Z",
    "source": "peakanswer",
    "credits_used": 0,
    "credits_left": 1450
  }
}

Threads

Facts

What engines say about a brand facts_check

Asks each engine what it says about the brand and compares the answer with the facts. It flags a wrong price, minimum, founding year, team size, location, a feature that is not out yet and a word the brand avoids, with the exact wording. Facts come from what you pass, or the brand's confirmed facts, or the brand's own site. Costs 10 credits an engine.

10 credits per engine. Works with a read only key. POST /api/v1/facts/check

ParameterTypeRequiredWhat it does
factsobjectNoThe facts to check against. Leave out to use the brand's own.
engineslist of "chatgpt" | "gemini" | "google_ai_mode" | "perplexity" | "claude"NoEngines to ask, from chatgpt, gemini, google_ai_mode, perplexity, claude.
countrystringNoTwo letter country code the search or question is asked from. Default us.
domainstringNoA website address such as example.com. When given, the response says whether it is named or listed.
detail"compact" | "full"Nocompact is short and ready to chain into the next call. full returns the raw detail.
watchbooleanNoSet true to run this again on a schedule and keep every run. Each rerun costs the same credits.
watch_frequency"daily" | "weekly"NoHow often a watched call reruns. Used only when watch is true.
brandstringNoSite id or domain. Needed with a key that covers every site.

Example request

curl -X POST "https://peakanswer.com/api/v1/facts/check" \
  -H "Authorization: Bearer $PEAK_ANSWER_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'

The same call from an MCP client:

{
  "name": "facts_check",
  "arguments": {}
}

Example response

{
  "data": {
    "facts_from": "given",
    "facts_checked": [
      "example.com"
    ],
    "engines": [
      {
        "engine": "example.com",
        "engine_label": "example.com",
        "answer": "example.com",
        "run_id": "example.com",
        "mismatches": [
          {
            "fact": "example.com",
            "found": "example.com",
            "expected": "example.com",
            "line": "example.com"
          }
        ]
      }
    ],
    "mismatches": 1,
    "watch": {
      "id": "example.com",
      "frequency": "daily",
      "next_run_at": "example.com",
      "created": true
    }
  },
  "next_cursor": null,
  "meta": {
    "as_of": "2026-11-23T00:00:00.000Z",
    "source": "peakanswer",
    "credits_used": 0,
    "credits_left": 1450
  }
}

Page checks

Check one page page_audit

Checks one page for Google and AI readiness: whether it loads, title, description, headings, canonical, schema, images and thin content, plus whether it answers up front and has question headings. Each problem comes with the fix. Costs 20 credits a page.

20 credits per page. Works with a read only key. POST /api/v1/audit/page

ParameterTypeRequiredWhat it does
urlstringYesThe page address, such as https://example.com/pricing.
watchbooleanNoSet true to run this again on a schedule and keep every run. Each rerun costs the same credits.
watch_frequency"daily" | "weekly"NoHow often a watched call reruns. Used only when watch is true.

Example request

curl -X POST "https://peakanswer.com/api/v1/audit/page" \
  -H "Authorization: Bearer $PEAK_ANSWER_KEY" \
  -H "Content-Type: application/json" \
  -d '{"url":"example.com"}'

The same call from an MCP client:

{
  "name": "page_audit",
  "arguments": {
    "url": "example.com"
  }
}

Example response

{
  "data": {
    "url": "example.com",
    "reachable": true,
    "score": 1,
    "issues": [
      {
        "code": "example.com",
        "severity": "example.com",
        "title": "example.com",
        "fix": "example.com"
      }
    ],
    "answer_readiness": {
      "verdict": "example.com",
      "headline": "example.com",
      "checks": [
        {
          "label": "example.com",
          "status": "example.com",
          "detail": "example.com"
        }
      ]
    },
    "watch": {
      "id": "example.com",
      "frequency": "daily",
      "next_run_at": "example.com",
      "created": true
    }
  },
  "next_cursor": null,
  "meta": {
    "as_of": "2026-11-23T00:00:00.000Z",
    "source": "peakanswer",
    "credits_used": 0,
    "credits_left": 1450
  }
}

Site checks

Audit a site site_audit

The full technical and answer-readiness audit for one site in a single call: AI crawler access, robots.txt, sitemap, structured data, headings, meta description, readability and the entities the page states. Returns in seconds. Costs 20 credits a site.

20 credits per site. Works with a read only key. POST /api/v1/audit/site

ParameterTypeRequiredWhat it does
urlstringYesThe page or domain to audit.
extra_checkslist of "redirect-chain-checker" | "broken-link-checker" | "page-speed-checker"NoSlower checks to add: redirect-chain-checker, broken-link-checker, page-speed-checker. Each adds 10 to 30 seconds.
watchbooleanNoSet true to run this again on a schedule and keep every run. Each rerun costs the same credits.
watch_frequency"daily" | "weekly"NoHow often a watched call reruns. Used only when watch is true.

Example request

curl -X POST "https://peakanswer.com/api/v1/audit/site" \
  -H "Authorization: Bearer $PEAK_ANSWER_KEY" \
  -H "Content-Type: application/json" \
  -d '{"url":"example.com"}'

The same call from an MCP client:

{
  "name": "site_audit",
  "arguments": {
    "url": "example.com"
  }
}

Example response

{
  "data": {
    "url": "example.com",
    "report": "example.com",
    "watch": {
      "id": "example.com",
      "frequency": "daily",
      "next_run_at": "example.com",
      "created": true
    }
  },
  "next_cursor": null,
  "meta": {
    "as_of": "2026-11-23T00:00:00.000Z",
    "source": "peakanswer",
    "credits_used": 0,
    "credits_left": 1450
  }
}

Coverage

What the top pages cover coverage_map

Reads the pages that rank for a search and lists what they say: the claims most of them make, the common ones and the rare ones, so a page can cover what the top results cover. The map is shared and held for 60 days. Costs 10 credits a map.

10 credits per map. Works with a read only key. POST /api/v1/coverage/map

ParameterTypeRequiredWhat it does
querystringYesThe search or question to map.
detail"compact" | "full"Nocompact is short and ready to chain into the next call. full returns the raw detail.
watchbooleanNoSet true to run this again on a schedule and keep every run. Each rerun costs the same credits.
watch_frequency"daily" | "weekly"NoHow often a watched call reruns. Used only when watch is true.
brandstringNoSite id or domain. Needed with a key that covers every site.

Example request

curl -X POST "https://peakanswer.com/api/v1/coverage/map" \
  -H "Authorization: Bearer $PEAK_ANSWER_KEY" \
  -H "Content-Type: application/json" \
  -d '{"query":"example.com"}'

The same call from an MCP client:

{
  "name": "coverage_map",
  "arguments": {
    "query": "example.com"
  }
}

Example response

{
  "data": {
    "query": "example.com",
    "built_at": "example.com",
    "pages_read": 1,
    "pages_unreachable": 1,
    "table_stakes": [
      {
        "claim": "example.com",
        "pages": 1
      }
    ],
    "common": [
      {
        "claim": "example.com",
        "pages": 1
      }
    ],
    "optional": [
      {
        "claim": "example.com",
        "pages": 1
      }
    ],
    "watch": {
      "id": "example.com",
      "frequency": "daily",
      "next_run_at": "example.com",
      "created": true
    }
  },
  "next_cursor": null,
  "meta": {
    "as_of": "2026-11-23T00:00:00.000Z",
    "source": "peakanswer",
    "credits_used": 0,
    "credits_left": 1450
  }
}

AI crawlers

Can AI crawlers reach a site crawler_check

Checks whether GPTBot, ClaudeBot, PerplexityBot, Google-Extended and the other AI crawlers are allowed in by the site's robots.txt, and flags rules that contradict each other. It is also a free tool on the website. Costs 0 credits.

Free (0 credits). Works with a read only key. POST /api/v1/crawlers/check

ParameterTypeRequiredWhat it does
urlstringYesThe site, such as example.com.
watchbooleanNoSet true to run this again on a schedule and keep every run. Each rerun costs the same credits.
watch_frequency"daily" | "weekly"NoHow often a watched call reruns. Used only when watch is true.

Example request

curl -X POST "https://peakanswer.com/api/v1/crawlers/check" \
  -H "Authorization: Bearer $PEAK_ANSWER_KEY" \
  -H "Content-Type: application/json" \
  -d '{"url":"example.com"}'

The same call from an MCP client:

{
  "name": "crawler_check",
  "arguments": {
    "url": "example.com"
  }
}

Example response

{
  "data": {
    "url": "example.com",
    "verdict": "example.com",
    "headline": "example.com",
    "summary": "example.com",
    "crawlers": [
      {
        "name": "example.com",
        "status": "allowed",
        "detail": "example.com"
      }
    ],
    "robots_found": true,
    "watch": {
      "id": "example.com",
      "frequency": "daily",
      "next_run_at": "example.com",
      "created": true
    }
  },
  "next_cursor": null,
  "meta": {
    "as_of": "2026-11-23T00:00:00.000Z",
    "source": "peakanswer",
    "credits_used": 0,
    "credits_left": 1450
  }
}

Your Search Console

Search Console data gsc_query

Reads the connected Search Console: clicks, impressions, click-through and position, grouped by date, query, page, country or device, with filters. With nothing given it lists the queries closest to page one. Connect Search Console from the account page first. Costs 0 credits.

Free (0 credits). Works with a read only key. POST /api/v1/gsc/query

ParameterTypeRequiredWhat it does
view"auto" | "performance" | "trend" | "striking_distance" | "ctr_outliers" | "cannibalised"NoWhich report. Leave out to let the other fields choose: dimensions, filters or dates give performance, days gives trend, nothing gives striking distance.
source"auto" | "stored" | "live"Nostored reads the copy Peak Answer keeps and updates each night. live asks Google now. Leave out for the usual one.
startDatestringNoYYYY-MM-DD. Default 28 days before endDate. Search Console keeps about 16 months.
endDatestringNoYYYY-MM-DD. Default 2 days ago, the newest day with complete data.
daysintegerNoWindow in days for the trend. Default 90, maximum 180.
dimensionslist of "date" | "hour" | "query" | "page" | "country" | "device" | "searchAppearance"NoWhat to group by, in order. Empty gives one total row. hour needs dataState hourly_all and a range of 10 days at most.
type"web" | "image" | "video" | "news" | "googleNews" | "discover"NoSearch type. Default web.
filterslist of objectNoFilters, all of which must match. Example: [{"dimension":"query","operator":"contains","expression":"pricing"}].
aggregationType"auto" | "byPage" | "byProperty"NoHow Google aggregates. byProperty is only valid when page is not a dimension.
dataState"final" | "all" | "hourly_all"Nofinal is complete data only (default). all includes the newest, still-changing days.
limitintegerNoRows to return. Default 1000 for performance, 30 for striking distance, 25 for the other reports. Maximum 5000.
rowLimitintegerNoSame as limit. Kept for older callers.
startRowintegerNoZero-based row to start from, for paging. Same as passing the cursor.
cursorstringNoPass next_cursor from the previous page to get the next one.
sitestringNoA property exactly as the properties call lists it, such as sc-domain:example.com or https://example.com/. Leave out for the property this brand is connected with.
cleanbooleanNoLeave out searches that are not real people: spike days, probe searches and AI assistant lookups. Default true. Pass false for the raw numbers. The reply says how much was left out.
brandstringNoSite id or domain. Needed with a key that covers every site.

Example request

curl -X POST "https://peakanswer.com/api/v1/gsc/query" \
  -H "Authorization: Bearer $PEAK_ANSWER_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'

The same call from an MCP client:

{
  "name": "gsc_query",
  "arguments": {}
}

Example response

{
  "data": {
    "view": "performance",
    "source": "stored",
    "property": "example.com",
    "start_date": "example.com",
    "end_date": "example.com",
    "search_type": "example.com",
    "dimensions": [
      "example.com"
    ],
    "filters": [
      "example.com"
    ],
    "aggregation": "example.com",
    "items": [
      {
        "key": "example.com"
      }
    ],
    "totals": {
      "clicks": 1,
      "impressions": 1,
      "ctr": 1,
      "position": 1
    },
    "start_row": 1,
    "next_start_row": 1,
    "note": "example.com",
    "window_days": 1,
    "cleaned": true,
    "removed": {
      "rows": 1,
      "clicks": 1,
      "impressions": 1,
      "line": "example.com"
    },
    "assistant_lookups": [
      {
        "key": "example.com"
      }
    ]
  },
  "next_cursor": null,
  "meta": {
    "as_of": "2026-11-23T00:00:00.000Z",
    "source": "peakanswer",
    "credits_used": 0,
    "credits_left": 1450
  }
}

Your Google Analytics

Google Analytics report ga4_report

Runs a report on the connected Google Analytics property: any metrics by any dimensions for any dates, with filters and sorting. Use it for sessions, channels, top pages, countries and events. Connect Google Analytics from the account page first. Costs 0 credits.

Free (0 credits). Works with a read only key. POST /api/v1/ga4/report

ParameterTypeRequiredWhat it does
dimensionslist of stringNoWhat to group by, as Google API names: date, country, city, deviceCategory, sessionDefaultChannelGroup, sessionSource, sessionMedium, sessionCampaignName, landingPage, pagePath, pageTitle, eventName, browser, newVsReturning, customEvent:your_parameter and more. Empty gives one total row. ga4_metadata lists every name.
metricslist of stringYesWhat to measure, as Google API names: sessions, totalUsers, activeUsers, newUsers, screenPageViews, engagedSessions, engagementRate, averageSessionDuration, bounceRate, eventCount, keyEvents, conversions, totalRevenue, transactions and more.
filterslist of objectNoDimension filters, all of which must match. Example: [{"field":"sessionSource","match":"CONTAINS","value":"chatgpt"}].
dimensionFilterobjectNoGoogle's own FilterExpression for what filters cannot say: OR groups, nested NOT, in-list, numeric. Combined with filters by AND.
metricFilterobjectNoGoogle's FilterExpression applied to metric values after grouping, like HAVING in SQL.
orderByslist of objectNoSort order, first entry first. Example: [{"field":"sessions","desc":true}].
propertystringNoA property exactly as ga4_properties lists it, such as properties/123456789. Leave out for the property this brand is connected with.
startDatestringNoYYYY-MM-DD, today, yesterday or NdaysAgo. Default 28daysAgo.
endDatestringNoYYYY-MM-DD, today, yesterday or NdaysAgo. Default yesterday.
dateRangeslist of objectNoReplaces startDate and endDate. Up to 4 ranges, for comparing periods. Example: [{"startDate":"28daysAgo","endDate":"yesterday"},{"startDate":"56daysAgo","endDate":"29daysAgo"}].
limitintegerNoRows to return. Default 100, maximum 10,000.
offsetintegerNoZero-based row to start from. Same as passing the cursor.
cursorstringNoPass next_cursor from the previous page to get the next one.
metricAggregationslist of "TOTAL" | "MAXIMUM" | "MINIMUM"NoAdd a TOTAL, MAXIMUM or MINIMUM row across all matching rows. Default TOTAL.
currencyCodestringNoISO 4217, such as USD, for revenue metrics.
keepEmptyRowsbooleanNoInclude rows where every metric is zero.
comparisonslist of objectNoGoogle's comparisons, for segment-style comparison columns.
brandstringNoSite id or domain. Needed with a key that covers every site.

Example request

curl -X POST "https://peakanswer.com/api/v1/ga4/report" \
  -H "Authorization: Bearer $PEAK_ANSWER_KEY" \
  -H "Content-Type: application/json" \
  -d '{"metrics":["example.com"]}'

The same call from an MCP client:

{
  "name": "ga4_report",
  "arguments": {
    "metrics": [
      "example.com"
    ]
  }
}

Example response

{
  "data": {
    "property": {
      "id": "example.com",
      "name": "example.com"
    },
    "columns": [
      "example.com"
    ],
    "metric_columns": [
      "example.com"
    ],
    "rows": [
      [
        "example.com"
      ]
    ],
    "totals": [
      "example.com"
    ],
    "row_count": 1,
    "notes": [
      "example.com"
    ],
    "ranges": "example.com",
    "offset": 1,
    "next_offset": 1,
    "currency": "example.com",
    "time_zone": "example.com",
    "quota_tokens_left": 1
  },
  "next_cursor": null,
  "meta": {
    "as_of": "2026-11-23T00:00:00.000Z",
    "source": "peakanswer",
    "credits_used": 0,
    "credits_left": 1450
  }
}

Your PostHog

PostHog query posthog_query

Runs one read-only SELECT on the connected PostHog project and returns the rows. Only a single SELECT is accepted, it returns up to 1,000 rows and stops after 20 seconds. Connect PostHog from the account page first. Costs 0 credits.

Free (0 credits). Works with a read only key. POST /api/v1/posthog/query

ParameterTypeRequiredWhat it does
hogqlstringYesOne HogQL SELECT, such as SELECT event, count() FROM events WHERE timestamp > now() - INTERVAL 7 DAY GROUP BY event ORDER BY count() DESC.
limitintegerNoMost rows to return. A LIMIT in the query above this is lowered to it.
brandstringNoSite id or domain. Needed with a key that covers every site.

Example request

curl -X POST "https://peakanswer.com/api/v1/posthog/query" \
  -H "Authorization: Bearer $PEAK_ANSWER_KEY" \
  -H "Content-Type: application/json" \
  -d '{"hogql":"example.com"}'

The same call from an MCP client:

{
  "name": "posthog_query",
  "arguments": {
    "hogql": "example.com"
  }
}

Example response

{
  "data": {
    "columns": [
      "example.com"
    ],
    "rows": [
      [
        {}
      ]
    ],
    "row_count": 1,
    "truncated": true,
    "limit": 1,
    "query": "example.com"
  },
  "next_cursor": null,
  "meta": {
    "as_of": "2026-11-23T00:00:00.000Z",
    "source": "peakanswer",
    "credits_used": 0,
    "credits_left": 1450
  }
}

Visits from AI

Visits from AI assistants my_ai_visits

Lists the visits that reached the site from an AI assistant such as ChatGPT, Claude or Perplexity, as the connected Google Analytics and PostHog count them. The two sources are never added together. Costs 0 credits.

Free (0 credits). Works with a read only key. GET /api/v1/ai-referrals

ParameterTypeRequiredWhat it does
sourcestringNo"ga4" (also "Google Analytics") or "posthog". Leave out for every connected source.
brandstringNoSite id or domain. Needed with a key that covers every site.

Example request

curl "https://peakanswer.com/api/v1/ai-referrals" \
  -H "Authorization: Bearer $PEAK_ANSWER_KEY"

The same call from an MCP client:

{
  "name": "my_ai_visits",
  "arguments": {}
}

Example response

{
  "data": {
    "items": [
      {
        "provider": "ga4",
        "label": "example.com",
        "days": 1,
        "total": 1,
        "previous": 1,
        "engaged": 1,
        "key_events": 1,
        "by_engine": [
          {
            "engine": "example.com",
            "label": "example.com",
            "sessions": 1
          }
        ],
        "series": [
          {
            "day": "example.com",
            "sessions": 1
          }
        ],
        "last_sync_at": "example.com",
        "sync_error": "example.com"
      }
    ]
  },
  "next_cursor": null,
  "meta": {
    "as_of": "2026-11-23T00:00:00.000Z",
    "source": "peakanswer",
    "credits_used": 0,
    "credits_left": 1450
  }
}

Watched items

Add watch: true to a data call, with watch_frequency set to daily or weekly, and it runs again on schedule. Each run costs the normal credits and is stored, so you can read the history and what changed for free. Turn a watch on or off with the watch tools.

Loading your watched items.

Errors and limits

A refused call answers with an error object holding code, message and fix_url, the page that fixes it.

CodeStatusWhat it means
plan_limit403The plan does not allow this, for example more watched items than it includes.
insufficient_credits402The account has fewer credits than the call needs. Nothing is charged for a refused call. The fix_url opens the Credits page.
missing_scope403The key can only read. Make a key that can also make changes.
not_found404No item with that id belongs to this account.
invalid_input400A field is missing or not valid. The message names it.
rate_limited429Too many requests. Wait the seconds in Retry-After.
unauthorized401The key is missing, wrong or revoked.
internal500The server could not finish. Nothing is charged. Try again shortly.

Requests a minute: Free 30, Starter 60, Pro 120, Agency 300. Responses carry RateLimit-Remaining, and a limited call carries Retry-After.