APIGetting StartedJob lifecycle: submit → follow-up → result

Job lifecycle: submit → follow-up → result

Four idiomatic ways to consume async results: poll, long-poll, webhook callback, or push to Telegram/Slack/etc.

ReferenceConceptual page — applies to multiple endpoints.
Every scrape submit (single or bulk) returns a **job_id** and a set of **follow-up URLs** in the response — paste any one into a polling loop or a browser: ```json { "job_id": "f3a8c2…", "status": "pending", "status_url": "https://api.logposervices.com/api/v1/jobs/f3a8c2…", "result_url": "https://api.logposervices.com/api/v1/jobs/f3a8c2…/result", "raw_result_url": "https://api.logposervices.com/api/v1/jobs/f3a8c2…/result?raw=true", "wait_url": "https://api.logposervices.com/api/v1/jobs/f3a8c2…?wait=true&timeout=60", "cancel_url": "https://api.logposervices.com/api/v1/jobs/f3a8c2…/cancel" } ``` **Four patterns to choose from — mix and match freely; they all fire if configured:** 1. **Poll** — hit `result_url` every few seconds. Returns `202` while pending/running, `200` (with the result inline) on completion, `410` on failure. One round-trip per result, no path-building needed. 2. **Long-poll** — hit `wait_url` (or any `result_url?wait=true&timeout=N`). The server holds the request open until the job finishes or `timeout` expires (capped at 80s — Cloudflare's edge times out at 100s). Best for short scrapes — saves polling traffic and you get the data in one shot. 3. **Webhook callback** — submit with `?webhook_url=...&webhook_secret=...`. LogPose POSTs once to your URL when the job reaches a terminal status. Best for long jobs and serverless integrations. The body is HMAC-SHA256 signed in `X-Webhook-Signature` if `webhook_secret` is set. 4. **Notification push (no handler needed)** — pass the `x-logpose-notify-targets` header on the submit and LogPose delivers a formatted message directly to your Telegram, Slack, Discord, Email, Teams, or any ad-hoc webhook on terminal status. Set `include_results: true` to attach the scraped data to the message itself — you receive the result in the channel without writing or hosting any handler. See **Common parameters** for the exact JSON shape. Bulk submits return a `bulk_id`, `child_job_ids[]`, and a `bulk_status_url` for the aggregate. Each child job ID still has its own `status_url` / `result_url`. Notifications and webhooks fire per child job, not just on the bulk completion.

Response

placeholder inline shape — run scripts/dump_doc_samples.py on the server to populate real samples.
{
  "job_id": "f3a8c2…",
  "status": "pending",
  "tier": "fast",
  "estimated_credits": 0,
  "cost_breakdown": {
    "base": 0,
    "per_page": 0,
    "pages": 2,
    "total": 0
  },
  "status_url": "https://api.logposervices.com/api/v1/jobs/f3a8c2…",
  "result_url": "https://api.logposervices.com/api/v1/jobs/f3a8c2…/result",
  "raw_result_url": "https://api.logposervices.com/api/v1/jobs/f3a8c2…/result?raw=true",
  "wait_url": "https://api.logposervices.com/api/v1/jobs/f3a8c2…?wait=true&timeout=60",
  "cancel_url": "https://api.logposervices.com/api/v1/jobs/f3a8c2…/cancel"
}
API Key

Paste your full key once — cached in this browser for 7 days, then cleared.

This is a reference page.

Pick a specific endpoint from the sidebar to see code samples and send a test request.