> ## Documentation Index
> Fetch the complete documentation index at: https://getanyapi.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Catalog changes

> Poll one free endpoint to learn when an API or source is added or removed, a price changes or will rise, or a schema changes.

The catalog changes over time. APIs and sources are added and removed, prices move, and
input and output schemas change. `GET /catalog/changes` lists each of those changes,
oldest first. Reading it is free and needs no key.

## Do you need it?

If you leave `source` out of your requests, you do not need to watch this feed. Routing
picks a source for each request and fails over to another when one fails. A removed or
repriced source is handled for you.

If you name a source in `source`, poll this feed. A request that names a source is tied to
that source: when it is removed, those requests are refused, and when its price changes,
they cost the new price. See [Choose sources](https://getanyapi.com/docs/choose-sources.md) for how pinning works.

Most changes appear in the feed when they go live. A price increase can be announced
ahead instead: see [Announced price increases](#announced-price-increases).

## Poll the feed

Start with no `cursor`. You get the changes from the first one, up to 50 per response:

```bash theme={"dark"}
curl -s https://api.getanyapi.com/catalog/changes
```

```json theme={"dark"}
{
  "changes": [
    {
      "id": 41,
      "at": "2026-12-01T09:14:02Z",
      "kind": "source_price_changed",
      "api": "tiktok.profile",
      "source": "anonymous-flamingo",
      "before": {
        "source": { "id": "anonymous-flamingo", "name": "Flamingo", "kind": "anonymous", "artworkKey": "flamingo" },
        "offers": [{ "model": "flat", "unit": "request", "maxUsd": 0.00045, "maxPer1kUsd": 0.45 }]
      },
      "after": {
        "source": { "id": "anonymous-flamingo", "name": "Flamingo", "kind": "anonymous", "artworkKey": "flamingo" },
        "offers": [{ "model": "flat", "unit": "request", "maxUsd": 0.0005, "maxPer1kUsd": 0.5 }]
      }
    }
  ],
  "cursor": 41,
  "hasMore": false
}
```

Save `cursor`. On your next poll, send it back:

```bash theme={"dark"}
curl -s "https://api.getanyapi.com/catalog/changes?cursor=41"
```

You get only the changes after it. When nothing is new, `changes` is empty and `cursor` is
the one you sent. When `hasMore` is `true`, poll again right away with the new `cursor`.

`limit` asks for fewer changes per response. A value above the maximum is reduced to it.

## Change kinds

| `kind` | What changed | What to do if you pin `source` |
| - | - | - |
| `api_added` | A new API can be called | Nothing; read it with `GET /v1/apis/{sku}` if you want it |
| `api_removed` | The API can no longer be called | Stop calling it |
| `source_added` | A new source serves this API | Nothing; you may name it in `source` |
| `source_removed` | A call that names this source is now refused | Stop naming it, or leave `source` out |
| `source_price_changed` | The source's published price changed | Check the new price in `after` |
| `source_price_increase_scheduled` | The source's price will rise at `effectiveAt` | Decide before `effectiveAt` whether to keep naming it |
| `source_price_increase_cancelled` | A scheduled increase will not happen | Nothing; the source keeps its price |
| `input_schema_changed` | The API's input schema changed | Read the new schema from `GET /v1/apis/{sku}` |
| `output_schema_changed` | The API's output schema changed | Read the new schema from `GET /v1/apis/{sku}` |

`source` and `before` and `after` appear only on source changes. `before` is the source as it
was, on `source_removed` and `source_price_changed`, and its current price on
`source_price_increase_scheduled`. `after` is the source as it is now, on `source_added` and
`source_price_changed`, and the price it will charge on `source_price_increase_scheduled`. Each holds the source's identity and its `offers`,
priced in USD in the same shape as `lanes[].pricing` on `GET /catalog`. Most sources have one
offer.

## Announced price increases

A price increase can arrive in three steps, tied together by the same `changeId`:

1. `source_price_increase_scheduled` announces it. `before` holds the price the source charges
   now and `after` the price it will charge. `effectiveAt` is when the new price applies. Until
   then, requests that name the source keep paying the current price.
2. `source_price_changed` reports it applying, with the same `changeId` and `effectiveAt`.
3. Or `source_price_increase_cancelled` withdraws it, with the same `changeId` and a short
   `reason` code. The source keeps its price.

A `source_price_changed` with no `changeId` was not announced ahead; it went live when it
appears.

```json theme={"dark"}
{
  "id": 42,
  "at": "2026-12-02T10:00:00Z",
  "kind": "source_price_increase_scheduled",
  "api": "tiktok.profile",
  "source": "anonymous-flamingo",
  "changeId": "pc_118",
  "effectiveAt": "2026-12-04T12:00:00Z",
  "before": {
    "source": { "id": "anonymous-flamingo", "name": "Flamingo", "kind": "anonymous", "artworkKey": "flamingo" },
    "offers": [{ "model": "flat", "unit": "request", "maxUsd": 0.0005, "maxPer1kUsd": 0.5 }]
  },
  "after": {
    "source": { "id": "anonymous-flamingo", "name": "Flamingo", "kind": "anonymous", "artworkKey": "flamingo" },
    "offers": [{ "model": "flat", "unit": "request", "maxUsd": 0.0006, "maxPer1kUsd": 0.6 }]
  }
}
```

What you pay for a failed request that the upstream bills is the upstream's own charge for that
attempt. It is not a source's price, and the feed does not announce changes to it.

## Sources that pause

A source that has stopped serving for a while after failures is not a change, and does not
appear here. It stays listed on `GET /catalog` under `notServingSources` and returns on its own.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.