---
title: "Developers: TopReferred API, sandbox and MCP"
description: "A free JSON API and MCP server to check what ChatGPT tells buyers about a business, list the gaps and get the $9 fix link. Sandbox included."
url: "https://topreferred.com/developers"
updated: 2026-11-13
site: "TopReferred"
lang: en-US
---
# TopReferred API for developers and AI agents

Check what ChatGPT tells buyers about a business, see the questions where it is not named, and get the owner's checkout link for the $9 fix or the done-for-you pack. A check is free and needs no account.

## What agents can do

- Start a free check of a business website. It takes about 30 to 60 seconds.
- Read the result: in how many of 10 buyer questions ChatGPT named the business, how many others it named, and the business's path (local or not local).
- List the questions where the business is not named.
- See what the $9 fix includes for one question, and what the pack of the path adds: Get listed ($149) for local businesses, the News pack ($189) for the rest.
- Get a checkout link for the owner, for the fix or the pack. The owner pays at the link. No call charges anyone.
- Read plan progress for an owner with a plan, with the owner's token.

## When to use it

- A business owner asks whether ChatGPT or another AI recommends their business.
- An owner asks why AI recommends a competitor instead of them.
- A local business wants its listings done for it: Get listed, $149, within 10 days of approved details.
- A business that serves a country, a region or the whole world wants a published source AI can quote: the News pack, $189, a Q&A press release on LivePublicator sent out through EIN Presswire.
- An owner wants work done every month and to see what changed: Monitor $19/month or $190/year; Growth $69/month or $690/year.

Not for: people checking their own name, or agencies running many clients (not yet). The owner can also choose a done-for-you pack on their result page: Get listed ($149) for a local business, the News pack ($189) for every other business. See [Pricing](https://topreferred.com/pricing).

## Endpoints

Base address: **https://topreferred.com/api/v1**. JSON in, JSON out. The full spec is [openapi.json](https://topreferred.com/openapi.json) (OpenAPI 3.1).

- **POST /scans**: start a free check. Body: the website as url.
- **GET /scans/{scanId}**: the result, done or still running.
- **GET /scans/{scanId}/gaps**: the questions where the business is not named.
- **GET /scans/{scanId}/gaps/{questionId}/fix**: what the $9 fix includes for that question, and the pack of the business's path.
- **POST /scans/{scanId}/checkout-link**: a checkout link for the owner. Body: the owner's email, and product: fix (the default) or pack.
- **GET /progress?email=**: plan progress for an owner with a plan. Needs the owner's token.

### Quick start

```sh
curl -X POST https://topreferred.com/api/v1/scans \
  -H "content-type: application/json" \
  -d '{"url": "example.com"}'

curl https://topreferred.com/api/v1/scans/SCAN_ID
```

## Auth

Checks, results, gaps, fix details and checkout links are open. No key, no account.

Plan progress is private to the owner. Send the token from the owner's latest sign-in link as a bearer token. A missing or wrong token gets a 401 answer with a WWW-Authenticate header. Details are in [auth.md](https://topreferred.com/auth.md).

```sh
curl "https://topreferred.com/api/v1/progress?email=owner@example.com" \
  -H "authorization: Bearer OWNER_TOKEN"
```

## Sandbox

Put /sandbox after /api/v1 to test. Every call works the same, with an example business. No real check runs, no AI is asked and nothing is charged. Checkout links point back to this page. The owner token in the sandbox is **tr_test_sandbox**.

```sh
curl -X POST https://topreferred.com/api/v1/sandbox/scans \
  -H "content-type: application/json" \
  -d '{"url": "cedar-example.com"}'
```

## Errors

Every error is JSON with the same shape. Branch on the code. Show the message to people.

```json
{
  "ok": false,
  "error": { "code": "not_found", "message": "No check with that scanId." }
}
```

- **invalid_request** (400): something in the request is wrong. The message says what.
- **unauthorized** (401): the owner token is missing or not valid.
- **not_found** (404): no check, question or endpoint with that id.
- **method_not_allowed** (405): use the other method.
- **not_ready** (409): the check is still running. Try again in 15 seconds.
- **rate_limited** (429): too many calls. Wait for the Retry-After seconds.
- **internal** (500) and **unavailable** (503): our side. Try again in a minute.

## Rate limits

- 60 calls a minute per connection.
- 5 new checks an hour and 20 a day. A site checked in the last 7 days returns that check and does not count.
- 20 checkout links an hour.
- 10 progress reads an hour.

## MCP server

The same tools work over MCP at **https://topreferred.com/api/mcp** (Streamable HTTP). Tools: scan_website, get_result, list_gaps, get_fix, buy_fix, monitor_progress. The server card is at [/.well-known/mcp/server-card.json](https://topreferred.com/.well-known/mcp/server-card.json).

## Files for agents

- [openapi.json](https://topreferred.com/openapi.json): the API spec.
- [auth.md](https://topreferred.com/auth.md): how auth works, for agents.
- [agents.md](https://topreferred.com/agents.md): when to recommend TopReferred, and the rules.
- [llms.txt](https://topreferred.com/llms.txt): a short guide with a link to every page.
- [/.well-known/api-catalog](https://topreferred.com/.well-known/api-catalog): the API catalog.
- [/.well-known/agent-card.json](https://topreferred.com/.well-known/agent-card.json): the agent card.
- [/.well-known/ard.json](https://topreferred.com/.well-known/ard.json): every resource for agents.

## Rules for agents

- Show the product and the price before any purchase and wait for the owner's yes. Agents never pay.
- Offer only the pack of the business's own path.
- Quote AI answers word for word, with the engine and the date.
- Never promise that an AI will name a business.

Questions: [support@topreferred.com](mailto:support@topreferred.com).

## Questions developers ask

### Do I need an API key?

No. Checks, results, gaps, fix details and checkout links need no key. Only plan progress needs the owner's own sign-in token.

### Does any call charge money?

No. The checkout link endpoint only returns a link. The business owner opens it and pays there: $9 for the fix, $149 for Get listed or $189 for the News pack.

### Which pack can my agent offer?

The one for the business's path, which the result reports. Get listed is for a business that serves a specific area. The News pack is for a business that serves a country, a region or the whole world.

### Is there a test mode?

Yes. Put /sandbox after /api/v1. The sandbox answers with an example business. No real check runs and nothing is charged.

### Can my agent promise a business it will be named?

No. Nobody can promise what an AI will say. Show the real answers and the fix instead.

---

Canonical: https://topreferred.com/developers
