Listing statistics
items_post_item_stats_shallowRetrieve shallow statistics for up to 200 listings over a period: unique views, contacts, and favorites, grouped by day, week, or month.
Instructions
Returns counters (shallow statistics) for a list of listings over a period (post_item_stats_shallow / itemStatsShallow): unique views, contacts, favorites added. Read-only analytics. Use it for metrics on specific item_ids grouped by day/week/month; for extended profile analytics with filters and sorting, use items_post_item_analytics, and for calls, use items_post_calls_stats. Limits: no more than 200 listings per request, depth no more than 270 days back.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| itemIds | Yes | List of listing IDs to get counters for (from 1 to 200 per request). | |
| dateFrom | Yes | Start of the period, inclusive (YYYY-MM-DD); no more than 270 days back. | |
| dateTo | Yes | End of the period, inclusive (YYYY-MM-DD). | |
| periodGrouping | No | Group counters by period: day, week (by the first day of the week), month (by the first day of the month). | |
| fields | No | Which metrics (counters) to return: uniqViews (unique views), uniqContacts (unique contacts), uniqFavorites (unique favorites added), calls. If unspecified, all available ones are returned. | |
| user_id | No | ID of the owner user. Defaults to Profile_id from .env. |