SocialCrawl

discover

discover.completed

Sent when a background or scheduled Discover run settles as completed. Carries counts and credits, never row text.

When it is sent

A background or scheduled Discover run settles as completed.

Payload

A test send delivers this body. A real event has no test key and carries a cursor.

Webhook body
{
  "id": "bat_sample0000000000000",
  "type": "event.batch",
  "data": {
    "events": [
      {
        "id": "evt_testsample0000000000000",
        "type": "discover.completed",
        "test": true,
        "api_version": "2026-10-01",
        "created_at": "2026-10-24T10:15:01Z",
        "cursor": null,
        "subject": {
          "kind": "discover_run",
          "id": "run_sample0000000000000"
        },
        "data": {
          "run_id": "run_sample0000000000000",
          "status": "completed",
          "stopped_because": null,
          "counts": {
            "legs": {
              "planned": 12,
              "done": 11,
              "empty": 1,
              "failed": 0,
              "skipped": 0,
              "pending": 0
            },
            "rows_kept": 84
          },
          "credits": {
            "spent": 42
          },
          "version": 7,
          "schedule_id": null
        },
        "links": {
          "run": "https://www.socialcrawl.dev/v1/prism/discover/runs/run_sample0000000000000",
          "results": "https://www.socialcrawl.dev/v1/prism/discover/runs/run_sample0000000000000/results.jsonl",
          "changes": "https://www.socialcrawl.dev/v1/prism/discover/runs/run_sample0000000000000?changes_since=0"
        }
      }
    ]
  }
}

Fields

These are the keys of data on the event. The event also carries id, type, api_version, created_at, cursor, subject and links.

KeyTypeMeaning
run_idstringThe id of the Discover run the event is about.
statusstringThe status the run settled in.
stopped_becausestring or nullWhy the run stopped early, or null when it ran to the end.
countsobjectThe run's searches by state in legs (planned, done, empty, failed, skipped, pending) and rows_kept, the rows it kept.
creditsobjectspent is the credits the run has used so far.
versionnumberThe run's version when the event was written.
schedule_idstring or nullThe schedule that started the run, or null when no schedule did.
productstringSet to creators for a creator search and search for a universal search watch. Left out for every other run.

Delivery

Every delivery is signed, so verify the signature before you trust it. You can send this body to your endpoint with a test send, read the same event on the events feed, and see retries on webhooks and events.

On this page

시작할 준비가 됐습니까?

무료로 소셜 데이터를 받기 시작하고, 프로젝트가 커지면 그대로 확장합니다. 카드 등록은 필요 없습니다.