AI Visibility (GEO) - Beta
Beta. This endpoint is in beta. Request and response fields may still change before general availability.
Ask AI engines the questions your customers ask and find out whether the answers mention your brand, cite your site, and at which position, alongside your competitors. See the AI Visibility API overview for the product view.
Endpoints
POST /v1/geo/visibility
GET /v1/geo/jobs/{job_id}
Description
A GEO run drives a full AI engine: it searches the web, reads pages, and reasons before it answers. That takes from about 30 seconds to several minutes, so the API is asynchronous. POST /v1/geo/visibility validates the request, starts a job, and returns 202 with a job_id. Poll GET /v1/geo/jobs/{job_id} until status is done or failed.
One job runs every keyword on every selected engine. Each keyword/engine pair is one run and one entry in results.
Authentication
All requests require authentication using the X-Api-Key header. See the Authentication guide for more details.
Request Body
POST /v1/geo/visibility takes a JSON body (Content-Type: application/json).
keywords (required)
Type: string[] - 1 to 5 items
The prompts to ask, phrased as a customer would ask them.
Example: ["best serp api", "google search api for ai agents"]
url
Type: string
Your website. Citations of this domain (and its subdomains) count as citations of you.
Example: https://example.com
brand
Type: string
Your brand name, matched in the answer text alongside your domain.
Example: Example
competitors
Type: string[] - up to 5 items
Competitor domains (or names). Each is scored with the same signals as you.
Example: ["competitor-a.com", "competitor-b.com"]
provider
Type: string - default all
Which engine runs the prompt.
| Value | Engine |
|---|---|
all |
Every engine below |
tool |
Direct API: one model call with web search, no agent harness |
claude |
Claude Code, headless |
codex |
Codex CLI, headless |
gemini |
Gemini CLI, headless. Coming soon: answers 422 today |
search
Type: string - default native
| Value | Meaning |
|---|---|
native |
Each engine uses its own built-in web search, as its users see it |
serply |
Every engine searches and fetches pages through Serply, so engines are compared on the same index |
country
Type: string - two-letter country code
Country to run the searches from.
Example: us
Example Request
curl --request POST \
--url 'https://api.serply.io/v1/geo/visibility' \
--header 'X-Api-Key: YOUR_API_KEY' \
--header 'Content-Type: application/json' \
--data '{
"keywords": ["best serp api"],
"url": "https://example.com",
"brand": "Example",
"competitors": ["competitor-a.com"],
"provider": "all",
"search": "native",
"country": "us"
}'
Response: 202 Accepted
{
"job_id": "geo_01J...",
"status": "queued"
}
Polling the Job
curl --url 'https://api.serply.io/v1/geo/jobs/geo_01J...' \
--header 'X-Api-Key: YOUR_API_KEY'
Poll every 3-5 seconds. Runs take from about 30 seconds to several minutes, and a job with several keywords and provider: "all" takes as long as its slowest run.
Job Response
{
"job_id": "geo_01J...",
"status": "done",
"summary": { "visibility_score": 62.5 },
"results": [
{
"keyword": "best serp api",
"provider": "claude",
"search": "native",
"ok": true,
"answer": "For AI agents, Example (https://example.com/docs) ...",
"citations": [
{ "url": "https://example.com/docs", "domain": "example.com", "position": 1, "title": "Docs" },
{ "url": "https://www.reddit.com/r/SEO/...", "domain": "reddit.com", "position": 2 }
],
"queries": [{ "q": "best serp api 2026", "tool": "WebSearch" }],
"analysis": {
"visibility_score": 87.4,
"you": {
"mentioned": true,
"cited": true,
"citation_positions": [1],
"mention_count": 3,
"in_sources": 2
},
"competitors": {
"competitor-a.com": {
"mentioned": true,
"cited": false,
"citation_positions": [],
"mention_count": 1,
"in_sources": 0
}
}
},
"duration_ms": 48210
}
]
}
Values are illustrative.
Job Fields
| Field | Type | Description |
|---|---|---|
job_id |
string |
The job's ID |
status |
string |
queued, running, done, or failed |
summary.visibility_score |
number |
0-100, across the job's runs |
results |
array |
One entry per keyword per engine |
Result Fields
| Field | Type | Description |
|---|---|---|
keyword |
string |
The keyword this run answered |
provider |
string |
tool, claude, codex, or gemini |
search |
string |
native or serply |
ok |
boolean |
true when the engine returned an answer |
error |
string |
Present when the run failed |
answer |
string |
The engine's full answer |
citations |
array |
url, domain, position (1-based, in answer order), optional title |
queries |
array |
The searches the engine ran: q (query) and tool |
analysis.visibility_score |
number |
0-100 for this run |
analysis.you |
object |
mentioned, cited, citation_positions, mention_count, in_sources |
analysis.competitors |
object |
Keyed by competitor; the same fields as you |
duration_ms |
number |
How long the run took |
analysis is present when the request included url, brand, or competitors.
Visibility Score
Deterministic, from the answer and its citations: a mention of your brand or domain (more when it comes early in the answer), a citation of your domain (more for a higher position), and your site appearing among the sources the engine read. 0 means the answer neither mentioned nor cited you.
Errors
| Status | Meaning |
|---|---|
402 |
Not enough credits for the job |
404 |
Unknown job_id |
422 |
Validation failed, e.g. no keywords, more than 5 keywords or competitors, unknown provider or search |
A job can finish with status: "done" while individual runs have ok: false and an error; check each result. See the Errors guide for the common error format.
Billing
A GEO job costs 10 credits per provider selected, however many keywords it has (up to 5): one engine is 10 credits, provider: "all" (Direct API, Claude Code and Codex CLI) is 30. The credits are charged when the job is accepted, and polling GET /v1/geo/jobs/{job_id} is free. They are the same prepaid credits as the rest of the API.