Skip to main content
GET
/
v0
/
imports
cURL
curl --request GET \
  --url https://api.exa.ai/websets/v0/imports \
  --header 'x-api-key: <api-key>'
# pip install exa-py
from exa_py import Exa

exa = Exa("YOUR_EXA_API_KEY")

imports = exa.websets.imports.list(webset_id="webset_id")

print(f"Found {len(imports.data)} imports")
for import_job in imports.data:
print(f"- {import_job.id}: {import_job.status}")
// npm install exa-js
import Exa from "exa-js";
const exa = new Exa("YOUR_EXA_API_KEY");

const imports = await exa.websets.imports.list({
webset_id: "webset_id",
});

console.log(`Found ${imports.data.length} imports`);
imports.data.forEach((importJob) => {
console.log(`- ${importJob.id}: ${importJob.status}`);
});
{
  "data": [
    {
      "id": "<string>",
      "object": "import",
      "entity": {
        "type": "company"
      },
      "title": "<string>",
      "count": 123,
      "metadata": {},
      "failedAt": "2023-11-07T05:31:56Z",
      "failedMessage": "<string>",
      "createdAt": "2023-11-07T05:31:56Z",
      "updatedAt": "2023-11-07T05:31:56Z"
    }
  ],
  "hasMore": true,
  "nextCursor": "<string>"
}

Authorizations

x-api-key
string
header
required

Pass your Exa API key in the x-api-key header. You can also authenticate with Authorization: Bearer .

Query Parameters

cursor
string

The cursor to paginate through the results

Minimum string length: 1
limit
integer
default:25

The number of results to return

Required range: 1 <= x <= 200

Response

200 - application/json

List of imports

data
object[]
required

The list of imports

hasMore
boolean
required

Whether there are more results to paginate through

nextCursor
string | null
required

The cursor to paginate through the next set of results