Get Dataset Import Status
Returns the current status of a V4 dataset import job. Each import job represents one ingestion operation and transitions through the following statuses:
uninitialised— Presigned url requested, but not yet usedprocessing— Datapoints received for ingestion, work underwayqueued— Datapoints received for ingestion, awaiting a previous import job to complete before processing can commence
Terminal statuses:
complete— all records were accepted.accepted_countis populated.partial— some records were accepted and some rejected.accepted_count,rejected_count, anderrorsare populated. The accepted records are available for use.failed— extraction failed entirely (e.g. file could not be parsed).reasonis populated. No records were ingested.pending_schema— the dataset has no schema set; upload is paused until a schema is defined.
Continue polling while the status is uninitialised, queued, or processing.
Authentication
The Prolific API uses API token to authenticate requests. You can create an API token directly from your settings.
Your API token does not have an expiry date and carries full permission, so be sure to keep them secure.
If your token is leaked, delete it and create a new one directly in the app.
In your requests add Authorization header with the value Token <your token>.
Path parameters
The import job ID returned by GET /datasets/{dataset_id}/upload-url/{filename}
Response
The type of import. Currently always file_upload.
When the import job was created (ISO 8601, UTC).
When the import job was last updated (ISO 8601, UTC).
Number of records successfully ingested. Present when status is complete or partial.
Number of records rejected. Present when status is partial.
Record-level validation errors. Present when status is partial.
Human-readable reason for failure. Present when status is failed.