API documentation
Method list
Test your request
Changelog


getListingAgentRunsList
Returns Listing Agent runs from the last 14 days, newest first, including runs that failed to start. Agents listing to several sites have a separate run per site. Without listing_agent_id the date range is limited to 3 days.


Input parameters
listing_agent_idintReturn runs of one agent (also deleted in the last 14 days).
filter_marketplace_codevarchar(50)Return runs of agents of this marketplace. Marketplace code as used as keys in getInventoryIntegrations (the same values getSyncLogList accepts as source), e.g. allegro, ebay, amazon, kaufland.
date_fromintUnix timestamp. Runs finished at or after this time. Default: 14 days ago with listing_agent_id, 3 days ago without it.
date_tointUnix timestamp. Runs finished at or before this time. Default: now.
filter_problems_onlybooltrue – only runs that were stopped, failed to start or rejected products. Default false.
pageintResults page (100 runs per page, numbered from 1).



Output data
The method returns the data in JSON format.
statusvarchar(30)SUCCESS - request executed correctly
ERROR - an error occurred during an API request. Error details will be described in 2 additional returned fields: error_message and error_code
pageintThe one-based page number returned.
runsarrayRuns ordered by listing_agent_run_id descending.
| - listing_agent_run_idintRun identifier.
| - listing_agent_idintAgent identifier. The agent may have been deleted since.
| - listing_agent_namevarchar(100)Agent name at the time of the run.
| - marketplace_codevarchar(50)Marketplace code.
| - sitevarchar(10)Site of the run. Empty for marketplaces without sites or when unknown (run failed to start).
| - run_statusvarchar(20)completed – the run processed all matched products or reached max_items_per_run or the maximum run time (is_runtime_limit_reached); stopped – the run was stopped (see stop_reason_code); failed_to_start – the run stopped before processing products.
| - date_startedintUnix timestamp of the run start. 0 when the run failed to start.
| - date_finishedintUnix timestamp of the run end.
| - products_matchedintProducts matching the agent filters that have no offer and no queue row yet.
| - products_added_to_queueintProducts added to the listing queue. Being added to the queue does not mean that the offer was created – check getListingAgentRunItems or getListingAgentQueueItems.
| - products_with_errorsintProducts rejected before the queue because of validation, currency, product matching or unique field errors. AI errors are not counted – see getListingAgentRunItems.
| - products_skippedintProducts skipped because they already have an offer or a queue row.
| - products_skipped_unique_fieldintProducts skipped because another source already uses the same unique field value (e.g. EAN).
| - products_not_processedintMatched products not handled in this run because of limits or a stop: products_matched − products_added_to_queue − products_with_errors, at least 0.
| - is_runtime_limit_reachedboolWhether the run reached the maximum run time.
| - stop_reason_codevarchar(50)Reason code when run_status is stopped or failed_to_start (codes as in last_action_required of getListingAgentsList). Empty otherwise.
| - stop_reason_messagetextReason description in the account language. Empty when stop_reason_code is empty.
| - dispatch_statusvarchar(20)sent – queue rows were sent to the marketplace; error – sending failed; not_triggered – nothing to send.
| - has_itemsboolWhether per-product results are available (getListingAgentRunItems).



Sample
Input data:
Output data:
A sample request in PHP: