curl -sSL --compressed -o trader-dataset.csv \
-H "Authorization: Bearer $OXINSIDER_API_KEY" \
'https://api.0xinsider.com/api/v1/trader/{address}/export/download?job_id=123'import requests
url = "https://api.0xinsider.com/api/v1/trader/{address}/export/download"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.0xinsider.com/api/v1/trader/{address}/export/download', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.0xinsider.com/api/v1/trader/{address}/export/download",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.0xinsider.com/api/v1/trader/{address}/export/download"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.0xinsider.com/api/v1/trader/{address}/export/download")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.0xinsider.com/api/v1/trader/{address}/export/download")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_bodyDownload a trader export
Get a temporary download link for a completed trader export.
curl -sSL --compressed -o trader-dataset.csv \
-H "Authorization: Bearer $OXINSIDER_API_KEY" \
'https://api.0xinsider.com/api/v1/trader/{address}/export/download?job_id=123'import requests
url = "https://api.0xinsider.com/api/v1/trader/{address}/export/download"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.0xinsider.com/api/v1/trader/{address}/export/download', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.0xinsider.com/api/v1/trader/{address}/export/download",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.0xinsider.com/api/v1/trader/{address}/export/download"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.0xinsider.com/api/v1/trader/{address}/export/download")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.0xinsider.com/api/v1/trader/{address}/export/download")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_bodyready. This endpoint redirects you to a signed URL rather than returning the file itself.
A job that is not ready returns 400 with error.param set to job_id.
Parameters
| Parameter | Description |
|---|---|
job_id | Required. The integer the submit response returned. |
address | The wallet the job was submitted for. A trd_ id finds a job that was submitted under the bare wallet. |
export scope. A default API key needs no additional scope.
Key response fields
The response is a302 with an empty body and a Location header holding a signed URL. Follow that URL to get the file. The signed URL carries its own credentials, so do not send your Authorization header to it.
Download-link lifetime
The URL is valid for at most 1 hour and never past the job’sexpires_at. If a URL expires while the job is still retained, call this route again with the same job_id for a fresh URL.
If less than 1 whole second remains when the server signs the URL, this route returns 410 with error.reason: "export_expired". The same response applies after the retention window expires or the file is retired. Submit a new export; retrying this job cannot produce a download.
The file
These headers are on the file itself, not on the302.
| Header | Value |
|---|---|
Content-Encoding | gzip. Send Accept-Encoding: gzip so your client unpacks it, or you receive raw gzip bytes. |
Content-Type | application/json, application/x-ndjson, or text/csv, matching the job’s format. |
Content-Disposition | attachment; filename="<address>-dataset.<ext>", where <address> is the value you put in the path. |
Example
curl -L --compressed -o swisstony-dataset.ndjson \
-H "Authorization: Bearer $OXINSIDER_API_KEY" \
"https://api.0xinsider.com/api/v1/trader/swisstony/export/download?job_id=123"
-L follows the redirect and --compressed unpacks the body. Without --compressed, a plain curl -L -o file writes the gzip bytes as they arrive, and you have to run gunzip on the result.
What it does not return
- Serve the bytes itself. The
302has an empty body, and the file is at the URL inLocation. - Wait for the job. A
queuedorrunningjob returns400. Poll the status route first. - Keep the signed URL alive past 1 hour or the job’s
expires_at. Request a fresh URL while the job is retained, or submit a new export after expiry. - Find a job that belongs to another account or another wallet. Both answer
404.
Authorizations
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).
Headers
Opt into strict query-name validation. The default is compatible: unknown names are ignored and reported in X-Query-Ignored. With strict, an unknown name returns 400 bad_request with error.reason unknown_query_parameter before the handler runs, including when its percent escape is incomplete.
strict Path Parameters
Response
Redirect to the presigned download URL.
Was this page helpful?