DATA QUALITY

Managing source and licence metadata in OpenFoot API responses

When building on the OpenFoot API, developers must handle the source and licence metadata that accompany each response. This article explains why that metadata exists, how to keep it attached when you store the data, and why any derived datasets should retain the original attribution.

What source and licence metadata convey

Every OpenFoot API response includes fields that name the upstream source of the data and the licence under which it is provided. These fields give downstream users the information needed to comply with the data provider's attribution requirements.

Beyond legal compliance, source metadata also helps developers trace data quality issues back to the original feed. When a competition appears in meta.unavailable with a reason, the metadata clarifies why the data could not be served.

How OpenFoot API includes source information

The API covers 120 competitions and returns canonical, stable team identifiers across all sources, while still resolving legacy identifiers. This consistency makes it easier to match data from different endpoints such as match, lineup, or Expected Goals calls.

Responses also contain a meta.scope.window when a /v1/matches query is made without explicit filters, indicating the date range (today ± three days) that the data covers. This window is part of the metadata that should travel with the stored record.

Storing attribution metadata with your own layer

When you ingest a response, store the source name and licence fields in the same table or document that holds the primary payload. Treat them as required columns rather than optional notes, so they cannot be omitted by downstream processes.

If you use a caching layer, ensure that a 429 response (quota exhausted) does not cause you to drop the metadata. The same applies to HTTP 403 responses that include the code plan_upgrade_required; those error details also carry attribution information that may be useful for audit logs.

Propagating licence data to derived datasets

Any dataset you generate—such as aggregated league xG, fair odds, or live event summaries—must retain a reference to the original OpenFoot source and licence. This can be a simple foreign‑key relationship or a repeated attribution field in the derived record.

Preserving the origin also supports reproducibility. If a downstream consumer questions a spike in expected goals, you can trace the figure back through the stored metadata to the exact upstream feed that supplied the raw numbers.

Best practices and compliance checklist

1. Capture source and licence fields on every successful response. 2. Store them as immutable attributes alongside the payload. 3. Include the same attributes in any transformed or aggregated record. 4. Monitor meta.unavailable entries to understand gaps in coverage.

Following these steps keeps your integration aligned with the OpenFoot API's licensing model and makes it easier to audit data usage across the full lifecycle of your application.

Frequently asked questions

Do I need to keep licence metadata when caching OpenFoot responses?

Yes. The licence information is part of the response contract and must travel with any cached copy, otherwise you risk violating the provider's attribution terms.

How can I identify the original feed for a team identifier?

Team identifiers are canonical and stable across sources, and legacy identifiers still resolve. The source field in the response tells you which upstream feed supplied the identifier.

What should I do if a competition appears in meta.unavailable?

Store the reason provided in meta.unavailable along with the request metadata. This preserves the context for why the data was not returned and satisfies attribution tracking.

Sources and further reading

    Product descriptions and examples were checked against the OpenFootAPI v1 contract on 1 December 2026.