Get a record by externalId
const url = 'https://api.example.com/cms/data/matches/records/external/opta%3Am1?include=home.country%2Caway';const options = {method: 'GET', headers: {'API-Key': '<API-Key>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url 'https://api.example.com/cms/data/matches/records/external/opta%3Am1?include=home.country%2Caway' \ --header 'API-Key: <API-Key>'Frontends only get published records.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Collection key
Example
matchesThe record’s externalId (URL-encoded)
Example
opta:m1Query Parameters
Section titled “Query Parameters”Reference fields to expand, comma-separated; a dot goes one level further (two at most)
Example
home.country,awayResponses
Section titled “Responses”The record
object
A record of a structured data collection
object
Record ID
The connector’s own id for the record, unique in the collection
The collection’s key
Status. Frontends (API keys not linked to a CMS user) only see published records.
The value of the collection’s title field
The field values, by field key. A reference holds the id of what it points to; expand it with include=.
object
With include=: what the named reference fields point to, by field key (an object, a list for several values, or null when it is missing or not published)
object
Created
Last changed
First published
Example
{ "data": { "id": 27, "externalId": "opta:m1", "collection": "matches", "status": "draft", "title": "Arsenal v Chelsea", "data": { "label": "Arsenal v Chelsea", "home": 21, "away": 22, "kickoff": "2026-11-20T20:00:00+00:00" } }}No such collection or record