# Agent lookup (/kya/lookup)



After this page you can ask, for any request your server sees, whether it comes from a declared AI agent or crawler and whether that claim holds. No site or snippet is needed. The lookup can't say a request is from a person, and it never blocks anything.

```bash
curl https://api.finic.ai/v1/kya/lookup \
  -H "Authorization: Bearer $FINIC_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"ip": "192.0.2.10", "user_agent": "KYA-Test-Agent"}'
```

```json title="200"
{
  "status": "complete",
  "actor": "ai_agent",
  "operator": "Finic (test)",
  "product": "KYA-Test-Agent",
  "category": "user_triggered_agent",
  "verification": "network_verified",
  "impersonated": false,
  "network": { "type": "operator", "provider": "Finic (test)", "range": "192.0.2.0/24" },
  "flags": ["test"],
  "evidence": [
    { "source": "user_agent", "detail": "The user agent contains \"KYA-Test-Agent\", which Finic (test) documents for KYA-Test-Agent." },
    { "source": "kya-test-agent", "detail": "192.0.2.10 is in 192.0.2.0/24, which Finic (test) publishes for KYA-Test-Agent." }
  ],
  "test": true,
  "checked_at": "2026-12-01T17:04:11.482913Z",
  "model_version": "lookup-2026-12-01T12:10:36Z",
  "cost_usd": "0",
  "request_id": "req_01M4Z2M1T6W9E3R7Y5VA8PKGHB"
}
```

## Request [#request]

Send at least one of `ip`, `user_agent` and `headers`.

| Field           |                                                                                                                 |
| --------------- | --------------------------------------------------------------------------------------------------------------- |
| `ip`            | The visitor's IP address, not your proxy's. Without it, a claim can't be checked against the operator's ranges  |
| `user_agent`    | The request's user agent                                                                                        |
| `headers`       | To check a [signature](#signatures): the request's `Signature`, `Signature-Input` and `Signature-Agent` headers |
| `url`, `method` | With `headers`: the full URL the request was for, built from your site's own host name, and its method          |

Every field of the response is under [`lookup`](/kya/reference/lookup).

## Verification [#verification]

A lookup knows what operators publish about their own agents: the user agents they send, the IP ranges they come from and the keys they sign with. `verification` says how far the claim was checked: `signed`, `network_verified`, `claimed`, `impersonated` or `none` ([what each means](/kya/verdicts#verification)).

`impersonated` is the one answer that accuses, so it's given only when all of the operator's ranges are loaded and were fetched in the last two days. Operators add addresses, so it can be wrong for a short while after they do.

## Flags [#flags]

| `flags`                    | Meaning                                                                                                                  |
| -------------------------- | ------------------------------------------------------------------------------------------------------------------------ |
| `impersonation`            | The user agent names an agent whose operator doesn't publish this address                                                |
| `undeclared_user_agent`    | The address is an operator's, but the user agent names no agent                                                          |
| `range_of_another_product` | The address is the operator's, listed under another of its agents                                                        |
| `source_unavailable`       | The operator's ranges, or the agent's keys, aren't all loaded, so the claim couldn't be checked                          |
| `source_stale`             | The operator's ranges were last fetched more than two days ago, so an address outside them isn't called an impersonation |
| `no_ip`                    | No `ip` was sent                                                                                                         |
| `non_public_ip`            | The `ip` is private, loopback or otherwise not on the public internet: usually your proxy's, not the visitor's           |
| `data_center_ip`           | The address belongs to a listed cloud provider                                                                           |
| `automation_user_agent`    | The user agent names an HTTP library or automation tool, such as `python-requests` or `HeadlessChrome`                   |
| `signature_invalid`        | The request carried a signature that didn't verify. `signature.reason` says why                                          |
| `test`                     | The built-in test agent or test data center                                                                              |

New flags will be added: ignore the ones you don't know.

## Known agents [#known-agents]

| Operator     | Agents                                                                                                                                                         | Checked against                                   |
| ------------ | -------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------- |
| OpenAI       | GPTBot, OAI-SearchBot, OAI-AdsBot, ChatGPT-User, ChatGPT agent                                                                                                 | Published IP ranges. ChatGPT agent: its signature |
| Anthropic    | ClaudeBot, Claude-SearchBot, Claude-User, Claude-Agent                                                                                                         | Published IP ranges                               |
| Google       | Google-Agent, Googlebot, Google-CloudVertexBot, Google's user-triggered fetchers (such as Google-NotebookLM) and special-case crawlers (such as AdsBot-Google) | Published IP ranges                               |
| Perplexity   | PerplexityBot, Perplexity-User                                                                                                                                 | Published IP ranges                               |
| Amazon       | Amazonbot, Amzn-SearchBot, Amzn-User                                                                                                                           | Published IP ranges                               |
| Microsoft    | Bingbot                                                                                                                                                        | Published IP ranges                               |
| Apple        | Applebot                                                                                                                                                       | Published IP ranges                               |
| DuckDuckGo   | DuckDuckBot                                                                                                                                                    | Published IP ranges                               |
| Common Crawl | CCBot                                                                                                                                                          | Published IP ranges                               |
| Meta         | Meta-ExternalAgent, Meta-ExternalFetcher, Meta-WebIndexer, FacebookExternalHit                                                                                 | Nothing published: `claimed` at most              |
| ByteDance    | Bytespider                                                                                                                                                     | Nothing published: `claimed` at most              |
| Mistral AI   | MistralAI-User                                                                                                                                                 | Nothing published: `claimed` at most              |

Addresses of Amazon Web Services, Google Cloud, Oracle Cloud, DigitalOcean and Cloudflare are marked `data_center`. The ranges are fetched again every six hours. [`GET /v1/kya/lookup/sources`](/kya/reference/list-lookup-sources) returns the current list, with when each source was last fetched.

## Signatures [#signatures]

Some agents sign their requests with [Web Bot Auth](https://datatracker.ietf.org/doc/draft-ietf-webbotauth-httpsig-protocol/) (HTTP Message Signatures, RFC 9421): send the request's `Signature`, `Signature-Input` and `Signature-Agent` headers with its `url` and `method`, and a signature that verifies against the keys the agent publishes gives `signed`. Today that's ChatGPT agent (`https://chatgpt.com`); a signature that names any other agent gets the flag `signature_invalid`, and no signature is taken for more than a day.

```json title="A signed request, as you'd send it"
{
  "ip": "198.51.100.24",
  "user_agent": "Mozilla/5.0 …",
  "headers": {
    "Signature-Agent": "\"https://chatgpt.com\"",
    "Signature-Input": "sig1=(\"@authority\" \"signature-agent\");created=1796144651;expires=1796148251;keyid=\"…\";tag=\"web-bot-auth\"",
    "Signature": "sig1=:…:"
  },
  "url": "https://www.example.com/pricing",
  "method": "GET"
}
```

## Test values [#test-values]

Built in, never fetched. Their answers carry `test: true`.

| Send                                   | Get                                |
| -------------------------------------- | ---------------------------------- |
| `KYA-Test-Agent` from `192.0.2.0/24`   | `network_verified`                 |
| `KYA-Test-Agent` from `203.0.113.0/24` | `impersonated`, in a `data_center` |
| `KYA-Test-Agent` with no `ip`          | `claimed`, with `no_ip`            |
| Any user agent from `203.0.113.0/24`   | A `data_center` address            |
