As SRGSSR, we always try new technologies for providing state-of-the-art experience for both internal and external developers. With the Publication Data Platform (PDP), we collect and correlate publication relevant metadata from various systems like EPG, CMS, archives and online media channels (e.g. Play). We provide access to these vast amount of metadata through our new PDP API as a GraphQL interface. Although the API is in early stage, we want you to try it out as one of the very first and give feedback! For the Hackdays, we have included SRF and RTR archive data with the access point described below. The API will be released on the SRG Developer Portal in the near future.
Feel free to give me feedback on whether you want to see more of this approach to access data from SRGSSR and also on how to improve.
Romain Haenni, Product Owner, firstname.lastname@example.org
Credentials will be revoked soon after the SRG Hackdays:
Access with curl
Query for fetching items
Paginating with Cursors
Access with PDP python library
# replace url, username, password with real values
# to restrict fields to just title and cursor (for pagination):
# if you just want to see the schema, just remove the selector.
Set the user environment variables:
Then you can query the data like in the following code sample:
Or check the following jupyter example: ...