Skip to main content
GET
/
api
/
dataframer
/
seed-datasets
/
{dataset_id}
/
files
/
{file_id}
Python
import os
from dataframer import Dataframer

client = Dataframer(
    api_key=os.environ.get("DATAFRAMER_API_KEY"),  # This is the default and can be omitted
)
response = client.dataframer.seed_files.download(
    file_id="182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
    dataset_id="182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
)
print(response.content_type)
{
  "download_url": "https://s3.amazonaws.com/bucket/path/to/file.csv?AWSAccessKeyId=...&Signature=...&Expires=...",
  "filename": "my_data.csv",
  "content_type": "text/csv"
}

Authorizations

Authorization
string
header
required

API Key authentication. Format: "Bearer YOUR_API_KEY"

Path Parameters

dataset_id
string<uuid>
required

UUID of the dataset

file_id
string<uuid>
required

UUID of the file

Response

Download URL generated successfully

download_url
string

Presigned URL to download the file (valid for 1 hour)

filename
string

Original filename

content_type
string

MIME type of the file