Avito icon

Avito

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

Overview

This node integrates with the Avito API, a popular Russian online classifieds platform, to retrieve and manipulate data related to various resources such as listings (Объявление), promotions, ratings, and autoload features. Specifically, for the resource "Объявление" (Item), it supports operations including fetching service costs ("Стоимость Услуг"). This node is useful for automating workflows that involve managing classified ads on Avito, such as retrieving pricing information for additional services linked to specific ads.

Practical examples:

  • Automatically fetch the cost of promotional services available for a set of user listings.
  • Integrate Avito listing data into CRM or analytics platforms by pulling detailed item info and associated service prices.
  • Monitor and analyze service usage costs across multiple ads programmatically.

Properties

Name Meaning
ID Пользователя The numeric ID of the Avito user whose items or services are being queried.
ID Объявлений A comma-separated string listing one or more Avito item IDs for which service costs are requested.

Note: These properties apply when the resource is "Объявление" and the operation is "Стоимость Услуг".

Output

The node outputs an array of JSON objects, each corresponding to an input item processed. Each output JSON contains the result of the requested operation, such as the service cost details for the specified item IDs under the given user ID.

If an error occurs during processing an item, the output JSON for that item will contain an error field with the error message, provided the node is configured to continue on failure.

No binary data output is indicated in the source code.

Dependencies

  • Requires an API key credential for authenticating with the Avito API (configured via OAuth2).
  • The node depends on internal routing utilities (RouterUtils) to handle different resource-operation combinations.
  • No other external dependencies are explicitly required.

Troubleshooting

  • Common issues:

    • Invalid or missing user ID or item IDs can cause API errors.
    • Network or authentication failures due to incorrect or expired API credentials.
    • Unknown resource or operation names will throw errors.
  • Error messages:

    • "Unknown resource: <resource>": Indicates the resource parameter is not recognized; verify the resource name.
    • Errors returned from the Avito API will be passed through in the error field if "continue on fail" is enabled.
  • Resolutions:

    • Ensure all required parameters (userId, itemIds) are correctly set and valid.
    • Verify that the API credentials are properly configured and have necessary permissions.
    • Use the node's "continue on fail" option to handle partial failures gracefully.

Links and References

Discussion