How to Find API Endpoint in WordPress
WordPress started as a software suite that helps users create and maintain blogs, and has since grown into a feature-rich content management platform including the ability to edit content remotely through the XML-RPC interface. You can write and edit posts from your mobile phone, have Flickr update your blog automatically and any other remote content editing ideas you can write code for. For services like Flickr and your mobile phone to use this feature, they need to know your WordPress site's API endpoint URL.
Instructions
-
Ensure That Your XML-RPC Interface Is Activated
-
1
Log into your WordPress Admin page. On the left side, look for the "Settings" tab and click "Writing."
-
2
On the "Writing" page, look under the "Remote Publishing" header for the "XML-RPC" setting.
-
-
3
The checkbox next to "XML-RPC" should be checked. If it is not checked, check it and then click "Save Changes." Once it is checked, your site will be ready to offer XML-RPC services.
Find Your API Endpoint URL
-
4
In your WordPress Admin page, look on the left for the "Settings" tab, and click on "General."
-
5
In the "General Settings" page, look for the "Site Address (URL)" setting. Copy the text in the box next to it and paste that text into a text file or other location where you want to record your API endpoint URL.
-
6
Add the text "/xmlrpc.php" to the end of the text that you pasted. This is your API endpoint URL.
-
7
Test your work by copying the API endpoint URL and pasting it into your browser's address bar. You should receive a simple error message stating "XML-RPC server accepts POST requests only." This means your API endpoint URL is correct and your XML-RPC service is working.
-
1
Tips & Warnings
Some services may be picky about how you enter your API endpoint URL. If a service like Flickr is unable to use the URL that you entered, try removing the "http://" from the beginning and enter it again.
References
- Photo Credit Brand X Pictures/Brand X Pictures/Getty Images