> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.prolific.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.prolific.com/_mcp/server.

# Get Dataset Import Status

GET https://api.prolific.com/api/v1/data-collection/datasets/{dataset_id}/imports/{import_id}

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 used
- `processing` — Datapoints received for ingestion, work underway
- `queued` — Datapoints received for ingestion, awaiting a previous import job to complete before processing can commence

**Terminal statuses:**
- `complete` — all records were accepted. `accepted_count` is populated.
- `partial` — some records were accepted and some rejected. `accepted_count`, `rejected_count`, and `errors` are populated. The accepted records are available for use.
- `failed` — extraction failed entirely (e.g. file could not be parsed). `reason` is 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`.

Reference: https://docs.prolific.com/api-reference/task-builder/get-dataset-import-status

## Authentication

- `Authorization` header (required) (prefixed with ` Token  `) — 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>`.

## Request

### Path parameters

- `dataset_id` (string, required) — The unique identifier of the dataset
- `import_id` (string, required) — The import job ID returned by `GET /datasets/{dataset_id}/upload-url/{filename}`

## Response

### 200

Import job status

- `dataset_id` (string, required) — The dataset this import job belongs to.
- `import_id` (string, required) — The unique identifier of the import job.
- `type` (enum, required) — The type of import. Currently always `file_upload`.
  - Allowed values: `file_upload`
- `created_at` (datetime, required) — When the import job was created (ISO 8601, UTC).
- `updated_at` (datetime, required) — When the import job was last updated (ISO 8601, UTC).
- `status` (enum, required) — Current status of the import job.
  - Allowed values: `uninitialised`, `queued`, `processing`, `complete`, `partial`, `failed`, `pending_schema`
- `filename` (string, optional, nullable) — The original filename supplied when the upload URL was requested.
- `accepted_count` (integer, optional) — Number of records successfully ingested. Present when status is `complete` or `partial`.
- `rejected_count` (integer, optional) — Number of records rejected. Present when status is `partial`.
- `errors` (list of ImportJobError, optional) — Record-level validation errors. Present when status is `partial`.
- `reason` (string, optional) — Human-readable reason for failure. Present when status is `failed`.

## Errors

### 404 Not Found Error

Import job not found

- `error` (ErrorDetail, required)

### 400 Client Request Error

Error

- `error` (ErrorDetail, required)

## Types

### ImportJobError

A record-level validation error from a partial import.

- `record_index` (integer, optional, nullable) — Zero-based index of the rejected record in the uploaded file.
- `field` (string, optional, nullable) — The schema field key that caused the rejection, or `null` if no specific field is implicated. The special value `_raw` indicates a whole-record parse failure (e.g. malformed JSON) rather than a field-level error.
- `reason` (string, optional, nullable) — Human-readable description of why the record was rejected.

### ErrorDetail

- `status` (integer, required) — Status code as in the http standards
- `error_code` (integer, required) — Internal error code
- `title` (string, required) — Error title
- `detail` (ErrorDetailDetail, required) — Error detail
- `additional_information` (string, optional) — Optional extra information
- `traceback` (string, optional) — Optional debug information
- `interactive` (boolean, optional)

### ErrorDetailDetail

Error detail

- string
- list of string
- ErrorDetailDetail2

### ErrorDetailDetail2

All fields with validation errors

- `any_field` (list of string, optional) — Name of the field with a validation error and as a value an array with the error descriptions

## Examples

**Response**

```json
{
  "dataset_id": "string",
  "import_id": "string",
  "type": "file_upload",
  "created_at": "2024-01-15T09:30:00Z",
  "updated_at": "2024-01-15T09:30:00Z",
  "status": "uninitialised",
  "filename": "string",
  "accepted_count": 1,
  "rejected_count": 1,
  "errors": [
    {
      "record_index": 1,
      "field": "string",
      "reason": "string"
    }
  ],
  "reason": "string"
}
```

**SDK Code**

```python
import requests

url = "https://api.prolific.com/api/v1/data-collection/datasets/dataset_id/imports/import_id"

headers = {"Authorization": "Token <token>"}

response = requests.get(url, headers=headers)

print(response.json())
```

```javascript
const url = 'https://api.prolific.com/api/v1/data-collection/datasets/dataset_id/imports/import_id';
const options = {method: 'GET', headers: {Authorization: 'Token <token>'}};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "https://api.prolific.com/api/v1/data-collection/datasets/dataset_id/imports/import_id"

	req, _ := http.NewRequest("GET", url, nil)

	req.Header.Add("Authorization", "Token <token>")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby
require 'uri'
require 'net/http'

url = URI("https://api.prolific.com/api/v1/data-collection/datasets/dataset_id/imports/import_id")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Token <token>'

response = http.request(request)
puts response.read_body
```

```java
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.get("https://api.prolific.com/api/v1/data-collection/datasets/dataset_id/imports/import_id")
  .header("Authorization", "Token <token>")
  .asString();
```

```php
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://api.prolific.com/api/v1/data-collection/datasets/dataset_id/imports/import_id', [
  'headers' => [
    'Authorization' => 'Token <token>',
  ],
]);

echo $response->getBody();
```

```csharp
using RestSharp;

var client = new RestClient("https://api.prolific.com/api/v1/data-collection/datasets/dataset_id/imports/import_id");
var request = new RestRequest(Method.GET);
request.AddHeader("Authorization", "Token <token>");
IRestResponse response = client.Execute(request);
```

```swift
import Foundation

let headers = ["Authorization": "Token <token>"]

let request = NSMutableURLRequest(url: NSURL(string: "https://api.prolific.com/api/v1/data-collection/datasets/dataset_id/imports/import_id")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```