How AI is applied across API Evangelist and APIs.io. Read my AI disclosure →
API Evangelist API Evangelist
Discovery
Learnings
Guidance
Toolbox
Alignment
API Evangelist LLC

WordPress Media API

Manage WordPress media library

WordPress Media API is one of 17 APIs that WordPress publishes on the APIs.io network, described by a machine-readable OpenAPI specification.

This API exposes 14 JSON Schema definitions.

Tagged areas include Media. The published artifact set on APIs.io includes an OpenAPI specification, API documentation, an API reference, authentication docs, a getting-started guide, and 14 JSON Schemas.

This API exposes 2 operations across 2 paths, and defines 3 schemas. It is described by OpenAPI 3.2.0, at version v2.

Requests are made against a single base URL, https://{site}/wp-json.

2 operations 2 paths 3 schemas 2 GET

Metadata

The identity and technical contract details declared by the specification.

Specification
OpenAPI 3.2.0
API Version
v2
Base URL
https://{site}/wp-json
Authentication
API Key, HTTP Basic, HTTP Basic
Resource Areas
1

Authentication & Security 3

WordPress Media API declares 3 security schemes for authenticating requests. An API key is passed in the cookie as wordpress_logged_in (cookieAuth). It accepts HTTP basic authentication (basicAuth). It accepts HTTP basic authentication (applicationPassword). By default, every request must be authenticated.

  • cookieAuth — WordPress cookie authentication with nonce (X-WP-Nonce header required)
  • basicAuth — HTTP Basic Authentication using Application Passwords (WordPress 5.6+)
  • applicationPassword — Application Passwords - generate per-application passwords from user profile in WordPress admin

Paths & Operations 2

Across 2 paths, the API surfaces 2 operations — 2 GET. Each is listed below with its method, path, parameters, and response codes.

Media 2

Manage WordPress media library

GET
/wp/v2/media
WordPress List Media
listMedia 4 params → 200
GET
/wp/v2/media/{id}
WordPress Get Media Item
getMedia 1 param → 200404

Schemas 3

The contract defines 3 schemas that model the data the API accepts and returns. The most detailed are MediaItem (10 properties), ErrorResponse (3 properties), RenderedContent (2 properties). Each schema is shown below with its type and property counts.

RenderedContent
object
A rendered content object containing raw and rendered versions
2 properties
ErrorResponse
object
A WordPress REST API error response
3 properties
MediaItem
object
A WordPress media attachment object
10 properties

Specification

The full machine-readable OpenAPI contract behind this narrative.

Source

wordpress-media-api-openapi.yml Raw ↑

Other APIs WordPress publishes across the network.

WordPress Block Editor API
WordPress AI API
WordPress Block Types API
WordPress Blocks API
WordPress Categories API
WordPress Comments API
WordPress Pages API
WordPress Plugins API
WordPress Post Types API
WordPress Posts API
WordPress Search API
Where this information came from

This is an independent, third-party profile of WordPress Media API, published by API Evangelist. We do not operate, host, resell, or support these APIs, and we are not affiliated with or endorsed by the company unless stated above. Everything here is built from publicly available information — the company's own site, developer portal, documentation, public repositories, and the specifications it publishes for public use. Nothing is obtained by breaching a system, defeating an access control, or using credentials.

The Kin Score and Agent Readiness rating are independently calculated assessments of a company's public API artifacts, scored against a published rubric. They are not certifications, endorsements, security assessments, or audits.

Corrections, re-scores, and removal are free — no partnership or purchase required, and you do not need to justify the request. A removed company is recorded as unrated, never scored zero for having asked. Acknowledgement within one business day; removal within two.

info@apievangelist.com · Read the full data-sourcing policy →
On a security or compliance team? Put security in the subject line and you will get a person, not a form — we will tell you exactly which public URLs this profile was built from.