Skip to main content
POST
Create a job

Authorizations

X-API-Key
string
header
required

Body

scraper_type
enum<string>
required
  • instagram - instagram
  • instagram_profile - instagram_profile
  • instagram_posts - instagram_posts
  • instagram_comments - instagram_comments
  • youtube - youtube
  • tiktok - tiktok
  • tiktok_comments - tiktok_comments
  • facebook - facebook
  • facebook_posts - facebook_posts
  • facebook_profile - facebook_profile
  • google_serp - google_serp
  • tiktok_search - tiktok_search
  • tiktok_profile - tiktok_profile
Available options:
instagram,
instagram_profile,
instagram_posts,
instagram_comments,
youtube,
tiktok,
tiktok_comments,
facebook,
facebook_posts,
facebook_profile,
google_serp,
tiktok_search,
tiktok_profile
config
any
input
any
organization
string<uuid>
timeout
integer
default:28800

Job timeout in seconds (min 5 min, max 11 hours). Default 8 hours.

webhooks
object[]

Response

201 - application/json
id
string<uuid>
required
read-only
organization
string<uuid>
required
organization_name
string
required
read-only
environment
string<uuid>
required
read-only
environment_name
string
required
read-only
scraper_type
string
required
status
enum<string>
required
  • pending - Pending
  • running - Running
  • completed - Completed
  • failed - Failed
  • timed_out - Timed Out
  • cancelled - Cancelled
Available options:
pending,
running,
completed,
failed,
timed_out,
cancelled
is_terminal
boolean
required
read-only
will_auto_retry
boolean
required
read-only
items_scraped
integer
required
read-only
output_dataset_url
string<uri-reference>
required
read-only

The job's results endpoint, a relative path served with your API key. Empty until the job completes.

error_message
string
required
read-only
error_code
required

Why the job did not complete; null unless it failed, timed out or was cancelled.

  • CANCELLED - CANCELLED
  • TIMEOUT - TIMEOUT
  • PLATFORM_ERROR - PLATFORM_ERROR
  • PROFILE_EXCLUDED - PROFILE_EXCLUDED
  • INPUT_ERROR - INPUT_ERROR
  • INFRA_TERMINATED - INFRA_TERMINATED
  • RATE_LIMITED - RATE_LIMITED
  • BLOCKED - BLOCKED
  • UNKNOWN - UNKNOWN
Available options:
CANCELLED,
TIMEOUT,
PLATFORM_ERROR,
PROFILE_EXCLUDED,
INPUT_ERROR,
INFRA_TERMINATED,
RATE_LIMITED,
BLOCKED,
UNKNOWN
error_description
string
required
read-only

Why the job ended, in words for a person: what happened and what to do next. Empty when error_message is. Show this one; error_message is the scraper's own technical text.

attempt_history
object[]
required
read-only
started_at
string<date-time> | null
required
read-only
completed_at
string<date-time> | null
required
read-only
duration_seconds
integer | null
required
read-only
created_at
string<date-time>
required
read-only
updated_at
string<date-time>
required
read-only
retry_count
integer
required
read-only

Number of times this job has been retried

can_retry
boolean
required
read-only
partial_results_count
integer
required
read-only

Items stored so far while the job runs.

last_progress_at
string<date-time> | null
required
read-only

Last time progress was reported by the scraper

ad_hoc_webhooks
object[] | null
required
read-only

The per-run webhooks sent with the create request.

scraper_metadata
object | null
required
read-only

What the scraper reported about how complete the collection is, when it reported anything: for example coverage, restrictions, targets_failed and dataAsOf. The keys vary by scraper type.

started_from
string<date> | null
required
read-only

Scrape posts newer than this date. NULL = all-time / initial crawl.

is_initial_crawl
boolean
required
read-only

True if this is a deep historical scrape; False for date-bounded regular crawls.

price_per_1000_at_creation
string<decimal> | null
required
read-only

Price per 1,000 items at job creation (USD) - locked for historical reporting

Pattern: ^-?\d{0,6}(?:\.\d{0,4})?$
platform_prices_at_creation
any | null
required
read-only

Rates per 1,000 rows by platform, locked at creation, for scraper types billed per platform; null when the job bills at price_per_1000_at_creation.

minimum_charge_at_creation
boolean | null
required
read-only

Whether this job's scraper type has a minimum charge per job that returned results.

estimated_cost
string<decimal> | null
required
read-only

The estimate the credit check used when the job was created (USD): estimated items × the locked rate. Not a forecast; see actual_cost.

Pattern: ^-?\d{0,8}(?:\.\d{0,4})?$
actual_cost
string<decimal> | null
required
read-only

Actual cost based on items_scraped (USD) - set on completion

Pattern: ^-?\d{0,8}(?:\.\d{0,4})?$
credits_deducted
boolean
required
read-only

Whether credits have been deducted for this job

config
any

Scraper configuration/input parameters

max_retries
integer

Maximum number of retries allowed for this job

can_resume
boolean

Whether the job can resume from partial state