Skip to main content
GET
Download an immutable whale dataset
Call this endpoint when Dataset status reports next_action: "download". It redirects you to a signed URL for the completed gzip-compressed NDJSON file. You need active Pro or Max access. Integration keys and OAuth tokens need the export scope; a default API key needs no additional scope. Only the account that submitted the job can download it.

Parameters

Key response fields

The URL is valid for at most 1 hour and never beyond the artifact’s retention deadline, 24 hours after submission. If the URL expires while the artifact is still retained, request another URL here. Status and redirect responses are private and uncached.

Read and verify the file

Storage sends Content-Encoding: gzip. Decompress the response, then parse 1 trade object per line. Prices and USD sizes are exact decimal strings; preserve their precision when processing them. Use artifact.manifest from the status response to check the file: A dataset contains at most 1,000,000 rows and 256 MiB before compression. A job exceeding either limit fails and produces no partial file. Jobs can make up to 3 worker attempts, and a failed or cancelled job still counts against its submission quota.

Continue with deltas

Use the manifest’s generation.continuation.cursor with Event replay, keeping its normalized condition_id and min_size. Save every returned replay cursor. Replay intentionally overlaps some exported trades, and its events are not restricted to the export’s original time range. Deduplicate by the wt_ trade ID. Submit a whale dataset explains why this insertion feed can repeat rows and does not include updates or deletions.

Example

-L follows the redirect, and --compressed decompresses the response. Do not use --location-trusted, which would forward credentials to the storage host.

What it does not return

  • A file before the job is ready, or a partial file from a failed job.
  • Complete Polymarket trade history. The file covers detected large trades, with ingestion and retention gaps reported in its source coverage.
  • Current wallet grades, market enrichment, or a guessed outcome_index. An unproven outcome index stays null.
  • A permanent download URL. Keep the job and artifact IDs as the file’s identity, and renew its URL only while the artifact is retained.

Authorizations

Authorization
string
header
required

Legacy default or named integration API key, or OAuth 2.1 access token, in the Authorization header as Bearer oxi_sk_live_... or Bearer oxi_at_.... Default keys retain full access; integration keys are limited to their approved read, webhooks, export and usage scopes and expire within 90 days. All credentials share the owner's account limits. Data calls require an active Pro subscription and return live data. A 401 carries WWW-Authenticate: Bearer resource_metadata="https://api.0xinsider.com/.well-known/oauth-protected-resource" (RFC 6750 section 3, RFC 9728).

Path Parameters

job_id
integer<int64>
required

Dataset job ID returned by submit; another owner or a trader export returns 404.

Required range: x >= 1

Response

Private redirect to the immutable gzip NDJSON object. Fetch without API Authorization. Content-Encoding gzip: decompress before parsing; each line conforms to WhaleDatasetTrade. URL validity is min(1 hour, remaining artifact retention); get a fresh URL after expiry.