Introduction
The WordPress.tv REST APIREST API The REST API is an acronym for the RESTful Application Program Interface (API) that uses HTTP requests to GET, PUT, POST and DELETE data. It is how the front end of an application (think “phone app” or “website”) can communicate with the data store (think “database” or “file system”) https://developer.wordpress.org/rest-api/. provides APIAPI An API or Application Programming Interface is a software intermediary that allows programs to interact with each other and share data in limited, clearly defined ways. endpoints for data types that allow developers to interact with WordPress.tv remotely by sending and receiving JSON (JavaScriptJavaScript JavaScript or JS is an object-oriented computer programming language commonly used to create interactive effects within web browsers. WordPress makes extensive use of JS for a better user experience. While PHP is executed on the server, JS executes within a user’s browser. https://www.javascript.com/. Object Notation) objects. JSONJSON JSON, or JavaScript Object Notation, is a minimal, readable format for structuring data. It is used primarily to transmit data between a server and web application, as an alternative to XML. 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 pluginPlugin A plugin is a piece of software containing a group of functions that can be added to a WordPress website. They can extend functionality or add new features to your WordPress websites. WordPress plugins are written in the PHP programming language and integrate seamlessly with WordPress. These can be free in the WordPress.org Plugin Directory https://wordpress.org/plugins/ or can be cost-based plugin from a third-party to provide new admin or front-end experiences. Your application could be written in PHPPHP PHP (recursive acronym for PHP: Hypertext Preprocessor) is a widely-used open source general-purpose scripting language that is especially suited for web development and can be embedded into HTML. https://www.php.net/manual/en/preface.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 categoryCategory The ‘category’ taxonomy lets you group posts / content together that share a common bond. Categories are pre-defined and broad ranging. 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