Talking to Other Sites
with the WP HTTP API
13 July 2019
Why Talk To Other Sites?
A complete API for managing events.
CIA World Fact Book
Details about every country in the world.
The Movie Database API (TMDb)
All the data about every movie ever
To ask them questions. How many tickets are left for my favorite concert? What
movies are playing this week? How many people live in Sri Lanka?
To tell them things. Buy that ticket. Email me when a certain movie appears.
How is this done?
Always look at https://codex.wordpress.org/HTTP_API
• wp_remote_get() - Retrieves a URL using the GET HTTP method.
• wp_remote_post() - Retrieves a URL using the POST HTTP method.
• wp_remote_head() - Retrieves a URL using the HEAD HTTP method.
• wp_remote_request() - Retrieves a URL using either the default GET or a custom HTTP method (should be caps) that you
All people groups in a specific country
A people group in a specific country
All countries a specific people group lives in
Make WordPress Slack: @topher1kenobe