JobConfig · Node.js
Shared input, output, schema and resource-limit configuration. Unknown keys are rejected.
In this guide
Purpose and lifecycle
Shared input, output, schema and resource-limit configuration. Unknown keys are rejected.
Definition and availability
Source snapshot: 1.0.0-alpha.3. Package export. Declared in source; this is not a runtime test result.
Signatures and source locations are generated from the SDK wrappers. Clean snapshots link to the recorded commit. Modified snapshots link to main, which may differ; file hashes identify the local inputs.
export interface JobConfig {
urls_file: string;
output_dir: string;
fields: JobField[];
row_selector?: string;
concurrency?: number;
checkpoint_pages?: number;
checkpoint_bytes?: number;
max_response_bytes?: number;
max_records_per_page?: number;
max_record_bytes?: number;
deduplicate?: boolean;
dedup_fields?: string[];
respect_robots?: boolean;
format?: 'jsonl' | 'csv';
}Members
| Member | Kind | Return / value type | Source status |
|---|---|---|---|
| urls_file | property | string | Present in source |
| output_dir | property | string | Present in source |
| fields | property | JobField[] | Present in source |
| row_selector | property | string | undefined | Present in source |
| concurrency | property | number | undefined | Present in source |
| checkpoint_pages | property | number | undefined | Present in source |
| checkpoint_bytes | property | number | undefined | Present in source |
| max_response_bytes | property | number | undefined | Present in source |
| max_records_per_page | property | number | undefined | Present in source |
| max_record_bytes | property | number | undefined | Present in source |
| deduplicate | property | boolean | undefined | Present in source |
| dedup_fields | property | string[] | undefined | Present in source |
| respect_robots | property | boolean | undefined | Present in source |
| format | property | "jsonl" | "csv" | undefined | Present in source |
urls_file
Required path to a UTF-8 URL-per-line input file.
Returns / value: string.
urls_file: string;output_dir
Required job-owned directory containing state, manifest and shards; only one active writer.
Returns / value: string.
output_dir: string;fields
At least one named field rule. Names must be unique and not use the reserved underscore prefix.
Returns / value: JobField[].
fields: JobField[];row_selector
Optional CSS container for one record. Omit for one row per page.
Returns / value: string | undefined.
row_selector?: string;concurrency
Maximum in-flight pages; default 16, accepted range 1–1024.
Returns / value: number | undefined.
concurrency?: number;checkpoint_pages
Maximum input lines per commit batch; default 256, accepted range 1–10000.
Returns / value: number | undefined.
checkpoint_pages?: number;checkpoint_bytes
Pending exact-dedup key/value byte budget; default 33554432.
Returns / value: number | undefined.
checkpoint_bytes?: number;max_response_bytes
Per-page body limit before parsing; default 2097152.
Returns / value: number | undefined.
max_response_bytes?: number;max_records_per_page
Maximum row containers extracted per page; default 1000.
Returns / value: number | undefined.
max_records_per_page?: number;max_record_bytes
Maximum serialized extracted fields per record; default 262144.
Returns / value: number | undefined.
max_record_bytes?: number;deduplicate
Exact record deduplication; default true.
Returns / value: boolean | undefined.
deduplicate?: boolean;dedup_fields
Declared field names defining identity; an empty list uses all extracted fields.
Returns / value: string[] | undefined.
dedup_fields?: string[];respect_robots
Respect robots rules and crawl delay; default true.
Returns / value: boolean | undefined.
respect_robots?: boolean;format
Bulk export format: jsonl (default) or csv.
Returns / value: "jsonl" | "csv" | undefined.
format?: 'jsonl' | 'csv';Errors and operational limits
See the consuming API for validation and failure behavior. Types and enum declarations do not perform network requests by themselves.
Source availability, package publication and runtime validation are separate facts. These pages describe the source snapshot, not a claim that all platforms or every API path have passed production acceptance.