Need help with your APIs? I offer API discovery, governance & evangelism services. Explore services →
API Evangelist API Evangelist
Discovery
Learnings
Guidance
Toolbox
Alignment
API Evangelist LLC

JSONPlaceholder Posts API

100 sample blog posts owned by users

JSONPlaceholder Posts API is one of 6 APIs that JSONPlaceholder publishes on the APIs.io network, described by a machine-readable OpenAPI specification.

This API exposes 12 JSON Schema definitions.

Tagged areas include Posts. The published artifact set on APIs.io includes an OpenAPI specification, API documentation, a getting-started guide, a JSON-LD context, and 12 JSON Schemas.

This API exposes 8 operations across 4 paths, and defines 3 schemas. It is described by OpenAPI 3.0.3, at version 1.0.0.

Requests are made against a single base URL, https://jsonplaceholder.typicode.com.

8 operations 4 paths 3 schemas 1 DELETE4 GET1 PATCH1 POST1 PUT

Metadata

The identity and technical contract details declared by the specification.

Specification
OpenAPI 3.0.3
API Version
1.0.0
Base URL
https://jsonplaceholder.typicode.com
Contact
License
Resource Areas
1

Paths & Operations 8

Across 4 paths, the API surfaces 8 operations — 1 DELETE, 4 GET, 1 PATCH, 1 POST, 1 PUT. Each is listed below with its method, path, parameters, and response codes.

Posts 8

100 sample blog posts owned by users

GET
/posts
JSONPlaceholder List Posts
listPosts 2 params → 200
POST
/posts
JSONPlaceholder Create Post
createPost body → 201
GET
/posts/{id}
JSONPlaceholder Get Post
getPost 1 param → 200404
PUT
/posts/{id}
JSONPlaceholder Replace Post
replacePost 1 param body → 200
PATCH
/posts/{id}
JSONPlaceholder Update Post
updatePost 1 param body → 200
DELETE
/posts/{id}
JSONPlaceholder Delete Post
deletePost 1 param → 200
GET
/posts/{id}/comments
JSONPlaceholder List Post Comments
listPostComments 1 param → 200
GET
/users/{id}/posts
JSONPlaceholder List User Posts
listUserPosts 1 param → 200

Schemas 3

The contract defines 3 schemas that model the data the API accepts and returns. The most detailed are Comment (5 properties), Post (4 properties), PostInput (3 properties). Each schema is shown below with its type and property counts.

Post
object
A sample blog post owned by a user.
4 properties 4 required
PostInput
object
Payload for creating or partially updating a post.
3 properties
Comment
object
A sample comment attached to a post.
5 properties 5 required

Specification

The full machine-readable OpenAPI contract behind this narrative.

Source

jsonplaceholder-posts-api-openapi.yml Raw ↑

Other APIs JSONPlaceholder publishes across the network.

JSONPlaceholder Albums API
JSONPlaceholder Comments API
JSONPlaceholder Photos API
JSONPlaceholder Todos API
JSONPlaceholder Users API