---
title: "AI Search Visibility API reference: POST /v1/ai-search-visibility"
description: "Request fields, response fields, errors and code samples for the AI Search Visibility endpoint. 5 credits / prompt."
url: https://1lookup.dev/docs/api/ai-search-visibility
---

# AI Search Visibility

Ask ChatGPT, Google AI Mode or Perplexity a question and see whether your brand is named or cited.

POST /v1/ai-search-visibility

5 credits / prompt Bulk supported New Global

```
curl -X POST https://api.1lookup.dev/v1/ai-search-visibility \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"prompt":"best project management software for small teams","engine":"chatgpt"}'
```

```
{
  "success": true,
  "data": {
    "status": "completed"
  },
  "meta": {
    "credits_used": 5,
    "credits_remaining": 999,
    "cached": false,
    "request_id": "req_8f3a2c1e9b7d"
  }
}
```

## Authorization

`Authorization` string<bearer> required

Your API key as a Bearer token. Live keys start with `1lk_live_`. Test keys start with `1lk_test_` and return this endpoint's sample response without spending credits. See [authentication](https://1lookup.dev/docs/authentication).

## Body

Send the fields as a JSON object with `Content-Type: application/json`.

`prompt` string required

Question. Example: `best project management software for small teams`

`brand` string

Brand or domain. Example: `northwind.example`

`engine` enum<string> required

AI engine. One of: chatgpt, google\_ai\_mode, perplexity. Example: `chatgpt`

`country` string

Country. Two-letter code. Perplexity ignores it. Example: `US`

`fresh` boolean

Skip the 7-day cache and run a new lookup. Charged as a normal lookup.

`reference` string

Your own identifier, echoed back in meta and shown in lookup history.

## Response

A `200` response carries the result in `data` and the cost of the call in `meta`.

`success` boolean

true when the lookup ran.

`meta.credits_used` number

Credits charged for this call.

`meta.credits_remaining` number

Your balance after the call.

`meta.cached` boolean

true when the result came from the 7-day cache.

`meta.request_id` string

Quote this when you contact support.

## Errors

A failed request returns `success: false` with an `error` object, and is never charged. The full list is on the [errors](https://1lookup.dev/docs/errors) page.

| HTTP | Code                  | Meaning                                                            |
| ---- | --------------------- | ------------------------------------------------------------------ |
| 401  | unauthorized          | The key is missing, malformed or revoked.                          |
| 402  | insufficient\_credits | Your credits are used up and pay as you go is off or at its limit. |
| 422  | invalid\_input        | A field is missing or malformed. The field property names it.      |
| 429  | rate\_limited         | Too many requests for this key. Wait for the Retry-After interval. |
| 500  | internal\_error       | Something failed on our side. Safe to retry.                       |
| 503  | source\_unavailable   | An upstream source did not answer in time. Safe to retry.          |

## Billing

5 credits / prompt. Charged when the lookup runs and returns a result. Errors are never charged, and repeating the same input within 7 days is served from cache at no charge.

[Product overview and use cases ](https://1lookup.dev/products/ai-search-visibility)
