Half-Quadratic Quantization for LLMs without calibration data. Use when quantizing models to 4/3/2-bit precision without needing calibration datasets, for fast quantization workflows, or when deployin
avito-api
Integrate and troubleshoot Avito Business API: listings, Messenger, orders, delivery, jobs, Autoload, Autoteka, Promo and Ads. Look up bundled endpoint schemas, choose authentication and official Ads SDKs, and check migrations. Use for Avito API requests and integrations, not ordinary browsing of avito.ru.
What it says
---
name: avito-api
description: >-
Integrate and troubleshoot Avito Business API: listings, Messenger, orders,
delivery, jobs, Autoload, Autoteka, Promo and Ads. Look up bundled endpoint
schemas, choose authentication and official Ads SDKs, and check migrations.
Use for Avito API requests and integrations, not ordinary browsing of avito.ru.
---
# Avito Business API
Use the bundled OpenAPI snapshot to find Avito operations, then verify the relevant live section when freshness matters. It contains **248 paths / 256 operations / 27 sections**, fetched from the official catalog on **2026-10-03**.
Refresh attempted on **2026-10-18**: the catalog returned HTTP 429, and browser
access was blocked by the browser security policy. The bundled schema retains
its original date; current endpoint changes remain unverified. Official Ads SDK
revisions were rechecked on 2026-10-18 and are unchanged. See
[source verification](references/sources.md).
The developer portal moved to `www.avito.ru/developers`; each section guide in `references/sections/` ends with the official changelog (`## История изменений`) — check it for migrations. See [sources and refresh procedure](references/sources.md) for provenance and how to rebuild the snapshot with `scripts/build_spec.py`.
Run the commands below from this skill's directory, or use absolute script paths. The ~2 MB spec is intended for targeted lookup, not a full context load.
## Choose the product and client
- **Business API** (listings, Messenger, Autoload, etc.): use the endpoint lookup and an existing HTTP client in the project.
- **Авито Реклама / Ads**: first consider the official Python, Go, TypeScript or PHP SDK. Read [Ads SDK integration](references/ads-sdk.md) for selection, account credentials, environments and retry behavior.
- **Авито Promo** is the agency API (`avito-promo`); the Ads SDKs do not cover it. Autoteka also has its own product credentials and host conventions.
## Authentication — OAuth2 Client Credentials
Almost every endpoint requires a Bearer token. Cache it according to the token response's `expires_in` (commonly 86400 seconds for Business API; product-specific tokens can differ). For Business API, obtain `client_id` and `client_secret` through the account's API settings / [developer portal](https://www.avito.ru/developers); availability depends on the product and account permissions. For Ads, an administrator creates separate keys in the advertising cabinet's API tab, tied to a specific advertising account. See the matching section guide before requesting credentials.
**Get a token:**
```bash
AVITO_CLIENT_ID=... AVITO_CLIENT_SECRET=... \
python3 scripts/get_token.py
# prints just the access_token; add --json for the full response
```
Or directly:
```bash
curl -s -X POST https://api.avito.ru/token \
-H "Content-Type: application/x-www-form-urlencoded" \
--data-urlencode "grant_type=client_credentials" \
--data-urlencode "client_id=$AVITO_CLIENT_ID" \
--data-urlencode "client_secret=$AVITO_CLIENT_SECRET"
# {"access_token":"...","token_type":"Bearer","expires_in":86400}
```
**Use the token** in every API call as `Authorization: Bearer <token>`. On `401` — refresh and retry once. Don't re-fetch the token before every call; cache it for the session and refresh on expiry/401.
Use **Client Credentials** for your own account and **Authorization Code** with the declared scopes for another user's delegated access. `show` returns the operation's `security` and matching `securitySchemes`. Separate objects in the `security` array are alternatives: `[ {"AuthorizationCode": ["messenger:read"]}, {"ClientCredentials": []} ]` permits either scheme. The presence of `AuthorizationCode` alone does not mean Client Credentials is unavailable. For Authorization Code setup and refresh tokens, read [references/sections/auth.md](references/sections/auth.md).
## How to find the right endpoint — DO THIS FIRST
The OpenAPI spec is too big to read whole. The skill ships a CLI to navigate it:
```bash
# 1) See all categories with endpoint counts
python3 scripts/lookup_endpoint.py tags
# 2) Find endpoints by keyword (matches path, summary, tag — case-insensitive,
# auto-falls-back to a shorter stem so Russian inflections work)
python3 scripts/lookup_endpoint.py search чат
python3 scripts/lookup_endpoint.py search остатки # finds "Управление остатками" too
python3 scripts/lookup_endpoint.py search --tag Продвижение
python3 scripts/lookup_endpoint.py search /autoload/v2
# 3) Get the full operation details (parameters, request/response schemas, rate limit)
python3 scripts/lookup_endpoint.py show '/messenger/v2/accounts/{user_id}/chats'
python3 scripts/lookup_endpoint.py show /stock-management/1/info --method post
```
`show` resolves top-level `$ref` for readability but leaves nested refs alone — for a deeper schema, read `references/avito-api-openapi.json` directly with `jq`:
```bash
jq '.components.schemas.stocksInfoResult' references/avito-api-openapi.json
```
For a category overview, browse [references/index.md](references/index.md) — a flat per-section list of all paths and summaries.
**Per-section integration docs.** Every section also has a markdown doc in `references/sections/<slug>.md` — these are the official Avito integration guides (sandbox setup, examples, edge cases, scope details) and they're often more useful than the OpenAPI spec for non-trivial flows. Available slugs (load on demand):
`accounts-hierarchy`, `ads`, `auction`, `auth`, `autoload`, `autostrategy`, `autoteka`, `avito-promo`, `calltracking`, `cpa`, `cpxpromo`, `delivery-sandbox`, `digital-goods`, `item`, `job`, `messenger`, `order-management`, `promotion`, `ratings`, `sbc-gateway`, `stock-management`, `str`, `tariff`, `tariff-composition`, `trxpromo`, `user`.
(`realty-reports` is in the catalog/OpenAPI but the catalog publishes no guide for it, so there is no `sections/realty-reports.md`.)
**Why this matters:** the spec has many similar-looki
Also scanned in coding
Generate Click-based Python CLI applications with decorators, groups, context, and modern Python patterns. Creates complete scaffolded CLI with proper project structure.
Repo-local workflow skill for large coding tasks. Initializes .agent/tasks/TASK_ID artifacts, installs project-scoped Codex and Claude subagents, updates AGENTS.md plus the repo's Claude guide file wi
ROS 2 engineering: rclcpp/rclpy, colcon/ament, launch, QoS/DDS, tf2/URDF, ros2_control, Nav2, MoveIt 2, sensors, runtime/artifact provenance, and hardware safety. Use for development, review, debuggin