For the complete documentation index, see llms.txt. This page is also available as Markdown.

✅Consumption best practices

Recommendations for consuming the S3 Data Hub (JSONL files) efficiently.

Download only the subset you need

Files are segmented by prefix (platform×country and/or date — see Structure and files). Filter by prefix when listing/downloading so you don't pull the whole dataset:

# Only Netflix US from the current snapshot
aws s3 sync s3://<bucket>/SA/Stats/latest/ ./datos/ \
  --exclude "*" --include "us_netflix.jsonl"

# DigitalOcean Spaces: add the S3-compatible endpoint
aws s3 sync s3://<space>/SA/Stats/latest/ ./datos/ \
  --endpoint-url https://<region>.digitaloceanspaces.com \
  --exclude "*" --include "us_netflix.jsonl"

Read JSONL in streaming

Each line is an independent JSON object, so you can process it line by line without loading the whole file:

import json
with open("us_netflix.jsonl") as f:
    for line in f:
        rec = json.loads(line)
        ...

For repeated analysis, convert to columnar

JSONL is row-based: every query reads the full object. If you're going to query it a lot, convert it once to Parquet in your own lake/warehouse (CTAS in Athena, or df.write.parquet(...) in Spark) and query from there. It's much cheaper and faster.

Join datasets by UID

The UID is the key used to link presence, metadata, demand, and awards for the same title. After loading the JSONL files into tables, the join can be performed directly using that field.

Handling arrays and nested objects

Fields like genres, directors, cast, or deeplinks may come as arrays or nested JSON objects. When consuming:

  • In Athena with JSON SerDe, declare the field as array<string> or struct<...> as appropriate.

  • In Spark/pandas, normalize (explode / json_normalize) if you need one row per element.

Current presence vs. historical

  • Current: exit_date empty/null (the title is still in the catalog).

  • Historical / gaps: use entry_date and exit_date to reconstruct availability windows.

Data freshness

The Data Hub is updated in batches depending on the dataset (see Update frequency). The latest/ prefix always holds the latest snapshot; it's not a real-time feed.

What not to expect

  • It's not real time: latency depends on the batch (daily/weekly/monthly).

  • It doesn't include audience or individual user consumption (see Data coverage).


We hope you found this article helpful. If you have a question this article doesn't address, reach out on the Service Desk.

Last updated