# WordPress REST API

Category: [Blogs and publishing](https://free-web-services.com/web-services/web-development/blog/)  
Page: https://free-web-services.com/web-services/web-development/blog/wordpress-rest-api.html  
Documentation: https://developer.wordpress.org/rest-api/

Every WordPress site has a built-in REST API at /wp-json/ that gives posts, pages, categories, tags, comments, media and users as JSON. Read public content without authentication; create and edit content with application passwords or OAuth. Useful for headless front ends, apps and syncing content between sites. Free and part of WordPress.

- API key: Not needed
- Pricing: Free and part of WordPress.
- From the browser: Yes (CORS)
- Formats: JSON
- Interface: REST, HTTP-GET
- Provider: developer.wordpress.org
- Last checked: Working on November 16th, 2026

Example request:

```sh
curl 'https://wordpress.org/news/wp-json/wp/v2/posts?per_page=1&_fields=id,title,link'
```

The JavaScript works in a web page as well as in Node.js 18 or newer.

