Create a job
Sendsource, operation, country, and queries to POST /api/v2/jobs:
-
The job runs asynchronously, so the response is
202 Accepted.Locationis the URL to poll, andRetry-Afterthe seconds to wait before the first poll. -
A job accepts 1–1,000
queries. -
Idealo
search-by-term,search-by-url, andshop-infoaccept exactly one query. - Creating the job charges one credit per query. See Credits and billing.
- The response headers report your remaining credits and limits. See Monitor usage.
Poll a job
PollGET /api/v2/jobs/{jobId} until status is completed or failed:
pending, the poll answers 202 Accepted with the same Location and Retry-After: 5 headers. Once the job is completed or failed, it answers 200. The body is the same job view either way. HTTP clients that follow 202 + Location poll on their own; in your own code, poll every 5 seconds.
Each entry in
results has its own status:
errorCode invalid_query means the query itself is invalid and fails again on retry. blocked, rate_limited, timeout, scrape_error, and internal_error are worth retrying in a new job.
For Idealo search jobs, add ?omit_partials=true to keep pending polls small. results stays empty until the job is terminal; progress fields still update.
Refunds happen on the poll
Error refunds are applied when you poll the job in a terminal status, as JSON or CSV. A job you never poll before its results expire keeps its full charge.Export results as CSV
GET /api/v2/jobs/{jobId}/csv returns the same job as CSV, with one row per offer:
- The export costs no additional credits and settles the job like a JSON poll.
- While the job is
pending, the export returns409. - Results without offers (
not_found,error) produce no rows. Use JSON to check their status. X-Offer-Rowsreports the number of data rows, so you can tell an empty export from a broken one.delimiteraccepts,(default),;, ortab.- Files are UTF-8 with a BOM and CRLF line endings.
List your jobs
GET /api/v2/jobs returns every job your account created, newest first, with what it was billed and refunded:
- The history keeps jobs after their results expire. It never contains the results themselves.
settledistrueonce the job was polled in a terminal status, or polled after its results expired.resultsisnullwhen the outcome is unknown: the job was never polled to completion, or only after its results expired.- Filter with
from,to(ISO 8601),source,operation,country, andsettled. - Page with
limit(1–200, default 50) andcursor, using the previousnext_cursor.