Introduction
The WordPress.tv REST API provides API endpoints for data types that allow developers to interact with WordPress.tv remotely by sending and receiving JSON (JavaScript Object Notation) objects. JSON is an open standard data format that is lightweight and human-readable.
The API makes it easy to use WordPress.tv data to e.g. create single page applications on top of your WordPress or create a plugin to provide new admin or front-end experiences. Your application could be written in PHP or in any other language and used on standard websites or for tablets or phones.
Examples
Events
All Events:
https://wordpress.tv/api/events.json
All videos from a specific event:
https://wordpress.tv/api/videos.json?event=wordcamp-europe-2018
Languages
All languages:
https://wordpress.tv/api/languages.json
All videos in a specific language, e.g. German:
https://wordpress.tv/api/videos.json?language=germandeutsch
Speakers
All speakers:
https://wordpress.tv/api/speakers.json
All videos from a specific speaker:
https://wordpress.tv/api/videos.json?speakers=matt-mullenweg
Tags
All tags:
https://wordpress.tv/api/tags.json
All videos with a specific tag:
https://wordpress.tv/api/videos.json?tag=gutenberg-block
Categories
All Categories:
https://wordpress.tv/api/categories.json
All videos in category 2018 (e.g. WordCamps that happened in 2018):
https://wordpress.tv/api/videos.json?category_name=2018
All videos in category Paris (e.g. all videos from all meetups and WordCamps in Paris)
https://wordpress.tv/api/videos.json?category_name=Paris
Parameters
Endpoint /api/videos.json accepts all WP_Query parameters, such as ‘posts_per_page’ and ‘paged’.
View more items per API call:
posts_per_page=100
View the 3rd page of the results:
paged=3
Endpoints /api/events.json, /api/speakers.json, /api/languages.json, /api/tags.json and /api/categories.json accept ‘paged’.
View the 2nd page of the results:
paged=2