Raw Marketplaces

📊 **GET**: Retrieve paginated marketplace records from pricestest.raw_js table. No mandatory fields - use optional query filters (domain, src, mark, dataid, search, sort, direction) to refine results. Returns competitive intelligence data for analysis and debugging. **POST**: Insert a new marketplace capture record. Requires 5 mandatory fields (domain, src, dataid, price, currency). All other fields are optional.

HTTP: GET | POST /external-data/marketplaces

Query parameters

NameTypeRequiredDescriptionExample
limitintegernoMaximum number of rows to return per page (default 200).100
pageintegerno1-indexed page when used together with limit.2
offsetintegernoExplicit row offset (overrides page).0
searchstringnoCase-insensitive search across domain, source, LP ID, URL, and mark.heureka
domainstringnoFilter rows captured for a specific domain.example-shop.cz
srcstringnoFilter by collection source (e.g. heureka, google).heureka
markstringnoFilter by integration mark or label.promo
dataidintegernoExact numeric identifier from the raw data row.123456
urlstringnoFilter rows whose URL contains the provided substring./product/123
sortstringnoSort column (datum, domain, src, price, shipping).datum
directionstringnoSort direction asc or desc.desc
datumstringnoTimestamp for POST/PUT payloads (defaults to current time when omitted).2025-09-26 10:30:00
lpidstringnoMarketplace LP identifier. Required when creating or updating a row.987654
exiturlstringnoLanding page the crawler exited to. Required for POST/PUT.https://example-shop.cz/cart
lpstringnoLogical landing page identifier (required for POST/PUT).default
titlestringnoCaptured product title (required for POST/PUT).Test Product 250 ml
pricenumbernoCaptured price including currency (required for POST/PUT).199.9
shippingnumbernoShipping fee that accompanied the offer (required for POST/PUT).0

Notes

Sample request

curl -H "Authorization: ApiKey YOUR_API_KEY" "https://admin.elpricing.com/api/external-data/marketplaces?limit=50&domain=example-shop.cz&src=heureka"

Interactive call

Queue workflow

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.