# WordPress REST API

The WP REST API has been merged into WordPress core. Please do not create issues or send pull requests. Submit support requests to the forums or patches to Trac (see README below for links).

Repository: https://github.com/WP-API/WP-API
Canonical: https://ross.abutalabs.com/products/wordpress-rest-api
Homepage: https://developer.wordpress.org/rest-api/
Language: PHP
License: GPL-2.0
License Family: copyleft
Archived: true
Last push: 2017-08-31T06:06:00+00:00
Link (homepage): https://developer.wordpress.org/rest-api/
Link (site_page): https://wordpress.org/documentation
Link (site_page): https://wordpress.org/about
Link (site_page): https://developer.wordpress.org/rest-api/changelog
Link (site_page): https://wordpress.org/about/privacy

## Health v2 (maintenance only)
Score: 10/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 0, release rhythm 8, longevity 100
- inputs: {"age_days": 4841, "days_push": 3289, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: archived
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 3922, forks 638 (observed 2026-08-28T04:08:29.783830+00:00)

## What it is
The WordPress REST API, originally developed as the WP-API plugin and merged into WordPress core since version 4.7, exposes WordPress site data (posts, pages, users, taxonomies, media) as JSON over HTTP REST endpoints. This repository is the legacy development home; active development now happens in WordPress core, with node-wpapi providing a JavaScript client for the API.

## Use cases
- fetch wordpress posts as json over http
- build a headless wordpress frontend with a javascript framework
- create or update wordpress users and pages programmatically via rest
- query wordpress content by slug or search term from an external app
- extend wordpress with custom rest endpoints for a plugin
- manage wordpress site content from a mobile or desktop application

## When to choose
- you need programmatic JSON access to WordPress content from any language or client
- you are building a decoupled/headless WordPress site or custom admin interface
- you want to integrate WordPress data into external applications or services

## When to avoid
- you need to file bugs or contribute code - development happens in WordPress core Trac, not this repository
- you run WordPress older than 4.7 and need the standalone plugin instead
- you need GraphQL rather than REST - consider WPGraphQL

## Facets
- artifact type: library
- maturity: maintenance
- function: api-framework, http-server, auth, middleware
- domain: cms, web-development, apis, backend
- platform: php, self-hosted
- tags: wordpress, rest-api, json-api, headless-cms, wp-json, backbone-client, web-server, nodejs

## Member repositories
- WP-API/WP-API (main) score 10
- WP-API/node-wpapi (sdk) score 74

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:08:29.783830+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T18:24:45.753339+00:00, confidence not recorded.
  - readme: https://github.com/WP-API/WP-API (fetched 2026-08-28T04:08:29.783830+00:00, sha 039d424134fa)
  - homepage: https://developer.wordpress.org/rest-api/ (fetched 2026-08-29T09:19:17.419560+00:00, sha 157fa99d9c13)
  - site_page: https://wordpress.org/documentation (fetched 2026-08-29T09:19:17.429089+00:00, sha bd7786ab20ae)
  - site_page: https://wordpress.org/about (fetched 2026-08-29T09:19:17.431111+00:00, sha 7beb23faf433)
  - site_page: https://wordpress.org/about/privacy (fetched 2026-08-29T09:19:17.436384+00:00, sha ae4fa61fc31e)
  - site_page: https://developer.wordpress.org/rest-api/changelog (fetched 2026-08-29T09:19:17.434494+00:00, sha cba5ddbfaf0b)
- Data as of 2026-08-30T08:39:29.467469+00:00.
