Avito icon

Avito

Взаимодействие с API Авито для бизнеса

Actions79

CPA → Телефоны Из Целевых Чатов

AI-generated

Summary

Retrieve phone numbers from targeted chats via the Avito CPA API by specifying a start date/time, pagination limit, and offset, with required X-Source header for API identification.

Inputs

  • xSource (required) — The name of the service making the request; sent as mandatory X-Source header in the CPA API call (e.g., 'my-company-n8n').
  • dateTimeFrom (required) — The date and time from which to start searching, converted to RFC3339 UTC format before the request (e.g., 2021-01-02T15:04:05Z).
  • limit (required) — The maximum number of phone records to retrieve in this request; minimum value is 1, default is 100.
  • offset (required) — The offset for pagination of the selection; minimum value is 0, default 0. For performance, it is recommended to use the maximum timestamp from previous results as an offset.
  • enableCpaDelay — Optional boolean to enable delay between CPA API requests when processing multiple input items to respect API rate limits (default: false).
  • cpaRequestDelay — Delay in milliseconds before each CPA API request after the first input item; used only if enableCpaDelay is true (default 60000 ms, e.g., 60000 ms for 1 request/min rate limit).

Output shape

a list of phone records extracted from targeted chats within the specified time frame, supporting pagination according to 'limit' and 'offset' parameters

Uses Avito CPA API with OAuth Client Credentials; the X-Source header is mandatory. Recommended API rate limit for this operation is 5 requests/min. When handling multiple inputs, enable delay to avoid 429 errors. Responses may include paging headers; user must handle pagination via 'limit' and 'offset'.

Links

Discussion