List direct site captures or insert a new observation.
HTTP: GET | POST /external-data/direct-sites
| Name | Type | Required | Description | Example |
|---|---|---|---|---|
| limit | integer | no | Maximum rows per page (default 200). | 100 |
| page | integer | no | 1-indexed page when limit is provided. | 1 |
| offset | integer | no | Explicit row offset. | 0 |
| search | string | no | Filter by substring across domain, action, and URL. | restock |
| domain | string | no | Filter records for a specific domain. | example-shop.cz |
| action | string | no | Filter by recorded action. | restock |
| dataid | integer | no | Filter by numeric direct site identifier. | 3456 |
| url | string | no | Filter by substring in the URL. | /stock/notification |
| sort | string | no | Sort column (datum, domain, action, dataid). | datum |
| direction | string | no | Sort direction asc or desc. | desc |
| datum | string | no | Timestamp of the event (defaults to now when omitted). | 2025-09-26 12:00:00 |
curl -H "Authorization: ApiKey YOUR_API_KEY" "https://admin.elpricing.com/api/external-data/direct-sites?limit=50&domain=example-shop.cz&action=restock"
Tasks are persisted to var/api_queue/tasks.json. Process them with:
php go.php cron:list\nphp go.php cron:go
Logs are written to var/api_queue/logs/{task_id}.log.