Zum Inhalt springen
ARD Eventhub
Esc
↑↓navigieren↵öffnen⌘Jvorschau

Distribute a next track

Deprecated. This HTTPS ingest endpoint stays available until publishers finish moving to Eventhub Connect (MQTT), then it is removed.

POST/events/de.ard.eventhub.v1.radio.track.nextveraltet
Autorisierung
AuthorizationBearer-Token (JWT) · headererforderlich
Request-Body
erforderlichapplication/json

New event to be distributed to subscribers.

The Eventhub format validation expects only a subset of these variables as minimum set. All other fields are technically optional, but highly encouraged to be included, so a best-possible metadata exchange is possible.

The subset is defined in the list of required fields of Schemas eventV1PostBody, resulting in this body:

{
  "type": "music",
  "start": "2020-01-19T06:00:00+01:00",
  "title": "Song name",
  "services": [ { ... } ],
  "playlistItemId": "swr3-5678"
}

Required fields not specified in the Schema, will cause your request to fail.

The id is inserted by Eventhub as string-formatted number, but might be a true string in the future, do not expect this string to remain numbers only!

eventstring

If set, it needs to match the URL event parameter

Erlaubt:de.ard.eventhub.v1.radio.track.playingde.ard.eventhub.v1.radio.track.next
typestringerforderlich

The type of the element that triggered this event. See additional file in docs for details.

Erlaubt:audiocommercialjinglelivemusicnewstrafficweather
startstringerforderlich

ISO8601 compliant timestamp

lengthnumbererforderlich

Estimated length of the element in seconds. Must be set to a positive number (not 0 or null). The end of the current element is defined by the start of the next element.

titlestringerforderlich

Representative title for external use

artiststring | null

Pre-formatted artist information

contributorscontributor[] | null

Full details about involved artists if available

Eigenschaften anzeigen
Array von contributor
namestringerforderlich
rolestringerforderlich
Erlaubt:artistauthorcomposerperformerconductorchoirleaderensembleorchestrasoloistproducerengineer
normDbobject | null

Reference to an entity in ARD's Norm-DB catalog

Eigenschaften anzeigen
typestringerforderlich
idstringerforderlich
isnistring | null

ISNI ID if available

urlstring | null

Can link to external reference

servicesservices[]erforderlich

The playing stations unique Service-IDs. Do not include the Service-Type suffix.

Eigenschaften anzeigen
Array von services
idstring

Preferred. Livestream URN. When absent, Eventhub creates it from type + externalId.

entspricht ^urn:ard:(permanent-livestream|event-livestream):[a-z0-9]+$
publisherIdstringerforderlich

Publisher Core ID or URN. Ingest normalizes this to urn:ard:publisher:{hash}.

institutionIdstring

Owning institution URN. Filled in by ingest from the resolved publisher.

entspricht ^urn:ard:institution:[a-z0-9]+$
typestringveraltet

Selects the livestream URN prefix when Eventhub creates id from externalId. Deprecated; ingest still sends it when provided.

Erlaubt:EventLivestreamPermanentLivestream
externalIdstringveraltet

CRID hashed into id when id is absent. Deprecated; ingest still sends it when provided.

referencesreference[] | null

related external entities

Eigenschaften anzeigen
Array von reference
typestringerforderlich
Erlaubt:EpisodeSectionPublicationBroadcastShowSeasonArticle
idstring
entspricht ^urn:ard:[a-z0-9-]+:[a-z0-9-]+$
externalIdstringerforderlich
entspricht ^(c|b)rid:\/\/.+$
titlestring
urlstring<uri>
alternateIdsstring[]
playlistItemIdstringerforderlich

Unique identifier (within a publisher) to connect next and playing items if needed

hfdbIdsstring[] | null

Can reference all available tracks in ARD HFDB instances. Should ideally at least include the common ZSK instance.

externalIdstring | null

Can reference the original ID in the publisher's system

isrcstring | null

Appropriate ISRC code if track is a music element

upcstring | null

Corresponding reference to an album where such ISRC was published

mpnstring | null

If available the reference to the original delivery from MPN

mediamediaItem[] | null

Can contain an array of media files like cover, artist, etc.

Eigenschaften anzeigen
Array von mediaItem
typestringerforderlich
Erlaubt:coverartistanchoraudiovideo
urlstringerforderlich
templateUrlstring | nullveraltet

Deprecated. Send a concrete url. A {width} / {height} template is still accepted.

descriptionstringerforderlich
attributionstring | null
isFallbackboolean

Optional flag to mark media as fallback data that subscribers can filter out

pluginseventPlugin[] | null

Highly optional field for future third-party metadata distribution or other connected services

Eigenschaften anzeigen
Array von eventPlugin
typestring
idstring

ID gets inserted by Eventhub as string-formatted number, but might be a true string in the future, do not expect this string to remain numbers only!

Antworten
201

Event created

Note: The first request of an event for an externalId that is not registered yet, will return the status failed: 1. This indicates that a new topic for the externalId has been created, and the request needs to be repeated:

"statuses": {
  "published": 0,
  "blocked": 0,
  "failed": 1
}

If the request returns the status blocked: 1, it indicates that you are not allowed to publish events under the given publisherId.

statusesobjecterforderlich
Eigenschaften anzeigen
publishedintegererforderlich
min. -9007199254740991 · max. 9007199254740991
blockedintegererforderlich
min. -9007199254740991 · max. 9007199254740991
failedintegererforderlich
min. -9007199254740991 · max. 9007199254740991
eventeventV1PostBodyerforderlich

Please also note the details in the POST /events/v1 endpoint above!

Eigenschaften anzeigen
eventstring

If set, it needs to match the URL event parameter

Erlaubt:de.ard.eventhub.v1.radio.track.playingde.ard.eventhub.v1.radio.track.next
typestringerforderlich

The type of the element that triggered this event. See additional file in docs for details.

Erlaubt:audiocommercialjinglelivemusicnewstrafficweather
startstringerforderlich

ISO8601 compliant timestamp

lengthnumbererforderlich

Estimated length of the element in seconds. Must be set to a positive number (not 0 or null). The end of the current element is defined by the start of the next element.

titlestringerforderlich

Representative title for external use

artiststring | null

Pre-formatted artist information

contributorscontributor[] | null

Full details about involved artists if available

Eigenschaften anzeigen
Array von contributor
namestringerforderlich
rolestringerforderlich
Erlaubt:artistauthorcomposerperformerconductorchoirleaderensembleorchestrasoloistproducerengineer
normDbobject | null

Reference to an entity in ARD's Norm-DB catalog

Eigenschaften anzeigen
typestringerforderlich
idstringerforderlich
isnistring | null

ISNI ID if available

urlstring | null

Can link to external reference

servicesservices[]erforderlich

The playing stations unique Service-IDs. Do not include the Service-Type suffix.

Eigenschaften anzeigen
Array von services
idstring

Preferred. Livestream URN. When absent, Eventhub creates it from type + externalId.

entspricht ^urn:ard:(permanent-livestream|event-livestream):[a-z0-9]+$
publisherIdstringerforderlich

Publisher Core ID or URN. Ingest normalizes this to urn:ard:publisher:{hash}.

institutionIdstring

Owning institution URN. Filled in by ingest from the resolved publisher.

entspricht ^urn:ard:institution:[a-z0-9]+$
typestringveraltet

Selects the livestream URN prefix when Eventhub creates id from externalId. Deprecated; ingest still sends it when provided.

Erlaubt:EventLivestreamPermanentLivestream
externalIdstringveraltet

CRID hashed into id when id is absent. Deprecated; ingest still sends it when provided.

referencesreference[] | null

related external entities

Eigenschaften anzeigen
Array von reference
typestringerforderlich
Erlaubt:EpisodeSectionPublicationBroadcastShowSeasonArticle
idstring
entspricht ^urn:ard:[a-z0-9-]+:[a-z0-9-]+$
externalIdstringerforderlich
entspricht ^(c|b)rid:\/\/.+$
titlestring
urlstring<uri>
alternateIdsstring[]
playlistItemIdstringerforderlich

Unique identifier (within a publisher) to connect next and playing items if needed

hfdbIdsstring[] | null

Can reference all available tracks in ARD HFDB instances. Should ideally at least include the common ZSK instance.

externalIdstring | null

Can reference the original ID in the publisher's system

isrcstring | null

Appropriate ISRC code if track is a music element

upcstring | null

Corresponding reference to an album where such ISRC was published

mpnstring | null

If available the reference to the original delivery from MPN

mediamediaItem[] | null

Can contain an array of media files like cover, artist, etc.

Eigenschaften anzeigen
Array von mediaItem
typestringerforderlich
Erlaubt:coverartistanchoraudiovideo
urlstringerforderlich
templateUrlstring | nullveraltet

Deprecated. Send a concrete url. A {width} / {height} template is still accepted.

descriptionstringerforderlich
attributionstring | null
isFallbackboolean

Optional flag to mark media as fallback data that subscribers can filter out

pluginseventPlugin[] | null

Highly optional field for future third-party metadata distribution or other connected services

Eigenschaften anzeigen
Array von eventPlugin
typestring
idstring

ID gets inserted by Eventhub as string-formatted number, but might be a true string in the future, do not expect this string to remain numbers only!

tracestring | nullerforderlichveraltet

Always null. Deprecated; may be removed in a future release.

400

Bad Request (invalid input)

messagestringerforderlich
errorsopenApiErrorItem[]erforderlich
min. 1 Elemente
Eigenschaften anzeigen
Array von openApiErrorItem
pathstringerforderlich
messagestringerforderlich
errorCodestringerforderlich
tracestring | nullerforderlichveraltet

Always null. Deprecated; may be removed in a future release.

401

Missing authentication

messagestringerforderlich
errorsopenApiErrorItem[]erforderlich
min. 1 Elemente
Eigenschaften anzeigen
Array von openApiErrorItem
pathstringerforderlich
messagestringerforderlich
errorCodestringerforderlich
tracestring | nullerforderlichveraltet

Always null. Deprecated; may be removed in a future release.

403

Invalid authorization

messagestringerforderlich
errorsopenApiErrorItem[]erforderlich
min. 1 Elemente
Eigenschaften anzeigen
Array von openApiErrorItem
pathstringerforderlich
messagestringerforderlich
errorCodestringerforderlich
tracestring | nullerforderlichveraltet

Always null. Deprecated; may be removed in a future release.

413

Payload Too Large (JSON body exceeds 400kb limit)

messagestringerforderlich
errorsopenApiErrorItem[]erforderlich
Eigenschaften anzeigen
Array von openApiErrorItem
pathstringerforderlich
messagestringerforderlich
errorCodestringerforderlich
tracestring | nullerforderlichveraltet

Always null. Deprecated; may be removed in a future release.

500

Internal server error

messagestringerforderlich
tracestring | nullerforderlichveraltet

Always null. Deprecated; may be removed in a future release.

Ausprobieren
Server
Autorisierung
Bodyapplication/json
Anfrage
curl -X POST '/events/de.ard.eventhub.v1.radio.track.next' \
  -H 'Authorization: Bearer YOUR_TOKEN' \
  -H 'Accept: application/json' \
  -H 'Content-Type: application/json' \
  -d '{
  "event": "de.ard.eventhub.v1.radio.track.playing",
  "type": "music",
  "start": "2020-01-19T06:00:00+01:00",
  "length": 240,
  "title": "Song name",
  "artist": "Sam Feldt feat. Someone Else",
  "contributors": [
    {
      "name": "Sam Feldt",
      "role": "artist",
      "normDb": {
        "type": "Person",
        "id": "1641010"
      },
      "isni": "string",
      "url": "string"
    }
  ],
  "services": [
    {
      "id": "urn:ard:permanent-livestream:49267f7d67be180d",
      "publisherId": "248000",
      "institutionId": "urn:ard:institution:a3004ff924ece1a2",
      "type": "PermanentLivestream",
      "externalId": "crid://swr.de/123450"
    }
  ],
  "references": [
    {
      "type": "Episode",
      "id": "urn:ard:show:49267f7d67be180d",
      "externalId": "crid://swr.de/123450",
      "title": "string",
      "url": "http://example.com",
      "alternateIds": [
        "https://normdb.ivz.cn.ard.de/sendereihe/427"
      ]
    }
  ],
  "playlistItemId": "swr3-5678",
  "hfdbIds": [
    "swrhfdb1.KONF.12345",
    "zskhfdb1.KONF.12345"
  ],
  "externalId": "M012345.001",
  "isrc": "DE012345678",
  "upc": "string",
  "mpn": "string",
  "media": [
    {
      "type": "cover",
      "url": "https://example.com/cover.jpg",
      "templateUrl": "https://example.com/cover.jpg?width={width}",
      "description": "Cover Demo Artist",
      "attribution": "Photographer XYZ",
      "isFallback": false
    }
  ],
  "plugins": [
    {
      "type": "postToThirdPartyPlatformXYZ",
      "property1": null,
      "property2": null
    }
  ],
  "id": "1234567890"
}'
Antwort
{
  "statuses": {
    "published": 1,
    "blocked": 0,
    "failed": 0
  },
  "event": {
    "event": "de.ard.eventhub.v1.radio.track.playing",
    "type": "music",
    "start": "2020-01-19T06:00:00+01:00",
    "length": 240,
    "title": "Song name",
    "artist": "Sam Feldt feat. Someone Else",
    "contributors": [
      {
        "name": "Sam Feldt",
        "role": "artist",
        "normDb": {
          "type": "Person",
          "id": "1641010"
        },
        "isni": "string",
        "url": "string"
      }
    ],
    "services": [
      {
        "id": "urn:ard:permanent-livestream:49267f7d67be180d",
        "publisherId": "248000",
        "institutionId": "urn:ard:institution:a3004ff924ece1a2",
        "type": "PermanentLivestream",
        "externalId": "crid://swr.de/123450"
      }
    ],
    "references": [
      {
        "type": "Episode",
        "id": "urn:ard:show:49267f7d67be180d",
        "externalId": "crid://swr.de/123450",
        "title": "string",
        "url": "http://example.com",
        "alternateIds": [
          "https://normdb.ivz.cn.ard.de/sendereihe/427"
        ]
      }
    ],
    "playlistItemId": "swr3-5678",
    "hfdbIds": [
      "swrhfdb1.KONF.12345",
      "zskhfdb1.KONF.12345"
    ],
    "externalId": "M012345.001",
    "isrc": "DE012345678",
    "upc": "string",
    "mpn": "string",
    "media": [
      {
        "type": "cover",
        "url": "https://example.com/cover.jpg",
        "templateUrl": "https://example.com/cover.jpg?width={width}",
        "description": "Cover Demo Artist",
        "attribution": "Photographer XYZ",
        "isFallback": false
      }
    ],
    "plugins": [
      {
        "type": "postToThirdPartyPlatformXYZ",
        "property1": null,
        "property2": null
      }
    ],
    "id": "1234567890"
  },
  "trace": null
}