# API changelog

What changed in the API. New fields and methods are added to `v1` without a version change.

## 07.11.2026 — catalog ordering by indexes

- `ordering=-quality` and `ordering=-citation` in the channel catalog are closed to the free “API.Max Test” plan: the response is 403 `tariff_required`. They are available on API.Max plans from “Start” and with a “Premium” or “Business” subscription.
- The indexes in the channel card, the `quality_min` filter and the `-subscribers` and `-last_post_at` orderings are open to everyone, as before.

## 04.11.2026 — image copy on request

- Post images are no longer copied in advance. `preview` can be `null` even for a new post: requesting the post queues a copy, usually ready within a few minutes, so repeat the request.
- The limit is 240 new images per minute per organization, top posts of the page first; the rest are queued by requests in the following minutes. Queuing a copy costs no units, a repeated post request is charged as usual.
- In webhook events `preview` is often `null`; a copy appears once you request the post.

## 04.11.2026 — removed material flag

- Post attachments have a new `removed` field: `true` means the material was removed at the rights holder's request, and `preview` is `null`.

## 01.11.2026 — concurrent requests, schema and keys

- No more than 4 concurrent requests per organization: an extra one gets `429 throttled` with `Retry-After: 1`.
- Channel search by name (`q=`) is limited to 3 seconds: longer returns `503 timeout`.
- Non-existent addresses and server errors on api.datool.ru answer JSON `{"detail": …, "code": …}`, not an HTML page; the OpenAPI schema describes the 401, 404, 429 and 503 errors.
- Revoking a key and disabling a member take effect within 30 seconds (key checks are cached).
- The webhook address check doesn't wait for slow DNS longer than 2 seconds.
- Request packs can be paid for 1–12 months at once with a discount.

## 31.10.2026 — API in subscriptions, “Try requests”

- The API is included in MAX subscriptions: Premium — 5,000 requests per 30 days, 2 keys, 2 per second (methods as on Test); Business — 30,000 requests (was 10,000), 3 keys (was 2), 5 per second. If an organization has both a subscription and an API plan, the higher of the two applies to each limit. A request pack can also be bought on Premium.
- MCP: service messages (`initialize`, `ping`, `tools/list`) — no more than 120 per minute per organization, above that 429.
- The “Try requests” page: `https://api.datool.ru/v1/docs/try/` (requests with a key from the browser).

## 29.10.2026 — cursor

- A cursor longer than 512 characters now returns `400` immediately instead of an internal error. A method failure inside MCP returns the reserved part of the quota at once.

## 26.10.2026 — territories without cities, “Worldwide”

- The territory directory (`GET /v1/max/territories/`) no longer has the `city` level: a channel about a city belongs to its region, and a channel's `territory` is a region, district, country or `world`. City codes in `?territory=` and `?parent=` are no longer found — pass the region code.
- New level `world` (“Worldwide”, `slug` `world`) — channels about the whole world and international ones; it comes last in the territory list. The former “World” node of the `country` level became it, with the same code.

## 23.10.2026 — quota remaining and webhook update

- `X-Quota-Remaining` no longer decreases for responses that cost no units (500, 503, 401, 429): the header matches the remaining quota in `/v1/me/`.
- `PATCH /v1/max/webhooks/{id}/` with a `channels` list replaces it as a whole even under concurrent requests: exactly the last list remains, not their union.

## 20.10.2026 — 503 when the database is unavailable

- If the database is temporarily unavailable (failure or recovery), any method responds `503 unavailable` with a `Retry-After` header instead of 500. Such requests cost no units — retry later.

## 19.10.2026 — catalog filters as on the site

- `GET /v1/max/channels/`: `category` accepts several comma-separated categories (up to 10) — a channel matches if it has at least one of them.
- New catalog filters: `gov` — government channels, `posted_within_days` — the last post is no older than N days, `quality_min` — quality index at least.

## 18.10.2026 — fixes after review

- Posts of a channel deleted or unavailable in MAX are no longer returned (404) — as on the site; a repost source from such a channel comes without our number.
- A channel by @handle is the same one the site shows, even when old records share the handle.
- A broken cursor, edge dates (`9999-12-31`) and a reversed period in the post feed return 400 instead of 500 or an empty response.
- Addresses ending in `.json` and the `/v1/` root return 404; the `/v1/schema/` schema and OPTIONS requests cost no units.
- The “API.Max Profi” rate is 20 requests per second, as in the plan (the general 10 per second limit no longer cuts it).
- Webhooks: only the organization’s owner or an administrator can change them (`403 manager_required`); `test/` — once a minute, no retries; delivery retries stay within a day; a webhook disabled by staff is re-enabled by support (`409 conflict`); internationalized domain URLs.
- MCP: a channel by `@handle` in arguments is found; an invalid address value returns error `-32602`.

## 18.10.2026 — first v1 release

- Category and territory directories, the channel catalog with filters, a channel card by number or handle, finding a channel by link or MAX ID.
- Daily channel statistics and posts of public channels.
- `/v1/me/` — plan, limits and usage; the balance for the owner’s key.
- Plan limits: requests per period (30 days from payment) and per second, request packs.
- Webhooks about new posts (from the “API.Max Growth” plan) and the “read and write” key.
- An MCP server for AI assistants — `https://api.datool.ru/v1/mcp/`.
