Official SDK

Build against NFLMeta with a typed, official client layer instead of hand-rolling every request.

NFLMeta now has official SDKs for TypeScript/JavaScript and Python. This page is the high-level landing page. The actual SDK documentation lives under /api-docs/sdk.

TypeScript@nfldb/sdk
Pythonnfldb
RuntimesNode 18+ / Python 3.9+
Current FocusTypeScript + Python
Design RuleAuth stays simple

Pass an API key once and the SDK sends X-NFLMeta-Key automatically on protected requests.

Design RuleResponses stay honest

You still get the real API envelope: data, optional meta, response status, and parsed rate-limit headers.

Design RuleThe SDK does not trap you

Wrapped resource clients cover the main surfaces, but raw client.get(path, { query }) is still available for new routes.

Use the official package names consistently

This page stays intentionally high level. For client setup, examples, typed errors, and method usage, go straight to /api-docs/sdk.

Package Targets

@nfldb/sdk
nfldb

Current Source Of Truth

sdk/typescript
sdk/python

Documentation Path

/api-docs/sdk
/api-docs/identifiers
/api-docs/core-endpoints
/api-docs/reference-data

Pick the runtime first, then read the SDK docs

The SDKs are thin on purpose. They help with auth headers, typed errors, rate-limit parsing, and resource methods, but they do not replace the API contract.

TypeScript / JavaScriptPackage: @nfldb/sdk • Best for Node, Next.js, and JavaScript apps
PythonPackage: nfldb • Best for scripts, notebooks, ETL, and research tooling

The SDK is a client layer, not a second docs system

Keep endpoint behavior, identifiers, filters, and response contracts in the API docs. Use the SDK docs for package setup, method usage, typed errors, and raw escape-hatch examples.

/api-docs/sdk -> SDK setup and examples
/api-docs/identifiers -> canonical ids and keys
/api-docs/core-endpoints -> app-facing endpoint families
/api-docs/reference-data -> raw and historical exports