curl --request GET \
--url https://api.bigdata.com/contents/v1/documents/{content_id}/original \
--header 'X-API-KEY: <api-key>'import requests
url = "https://api.bigdata.com/contents/v1/documents/{content_id}/original"
headers = {"X-API-KEY": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-API-KEY': '<api-key>'}};
fetch('https://api.bigdata.com/contents/v1/documents/{content_id}/original', 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.bigdata.com/contents/v1/documents/{content_id}/original",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"X-API-KEY: <api-key>"
],
]);
$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.bigdata.com/contents/v1/documents/{content_id}/original"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-API-KEY", "<api-key>")
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.bigdata.com/contents/v1/documents/{content_id}/original")
.header("X-API-KEY", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.bigdata.com/contents/v1/documents/{content_id}/original")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-API-KEY"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"url": "https://content.bigdata.com/uploaded-documents/E0618D0E9D3A960C1731A620EDE56B5C?response-content-type=message%2Frfc822&response-content-disposition=attachment%3Bfilename%3DEconomic+events+this+week.eml&Expires=1770304294&Signature=abc123...&Key-Pair-Id=K34UQS1JQ2RLGM"
}Get original document
Returns a time-limited pre-signed URL to download the private document’s original file as uploaded (e.g. .eml, .pdf). When you GET the URL, the response is the raw file with appropriate Content-Type and Content-Disposition. Use this when you need the native format rather than the annotated JSON. The URL expires after 24 hours; request a new one if needed.
curl --request GET \
--url https://api.bigdata.com/contents/v1/documents/{content_id}/original \
--header 'X-API-KEY: <api-key>'import requests
url = "https://api.bigdata.com/contents/v1/documents/{content_id}/original"
headers = {"X-API-KEY": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-API-KEY': '<api-key>'}};
fetch('https://api.bigdata.com/contents/v1/documents/{content_id}/original', 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.bigdata.com/contents/v1/documents/{content_id}/original",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"X-API-KEY: <api-key>"
],
]);
$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.bigdata.com/contents/v1/documents/{content_id}/original"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-API-KEY", "<api-key>")
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.bigdata.com/contents/v1/documents/{content_id}/original")
.header("X-API-KEY", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.bigdata.com/contents/v1/documents/{content_id}/original")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-API-KEY"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"url": "https://content.bigdata.com/uploaded-documents/E0618D0E9D3A960C1731A620EDE56B5C?response-content-type=message%2Frfc822&response-content-disposition=attachment%3Bfilename%3DEconomic+events+this+week.eml&Expires=1770304294&Signature=abc123...&Key-Pair-Id=K34UQS1JQ2RLGM"
}Authorizations
Your API key. Include it in every request as the X-API-KEY header. Create and manage keys in the Developer Platform.
Path Parameters
Content ID of the document (32-character uppercase hex string).
^[A-F0-9]{32}$"E0618D0E9D3A960C1731A620EDE56B5C"
Response
Object containing a pre-signed url. GET the URL to download the original file; response headers include Content-Type and Content-Disposition for saving the file. The URL is valid for 24 hours.
Time-limited URL. GET this URL to download the original document; the response is the raw file with appropriate headers.
Was this page helpful?