APIHub
Back to Explore

JSONPlaceholder

JSONPlaceholder provides a free online REST API that serves static JSON data for six common resources—posts, comments, albums, photos, todos, and users—and supports all standard HTTP methods for testing and prototyping without requiring authentication.

Development
none
HTTPS
CORS: Yes
Description enriched
Visit official documentation

Latency

737ms p95

Uptime

100.0% 30d

Playground

Verified

live

Endpoints

REST · JSON
GET

/posts

Retrieve a list of posts.

GET

/posts/{id}

Retrieve a single post by its ID.

  • id (path, required) — ID of the post
GET

/posts/{id}/comments

Retrieve comments for a specific post.

  • id (path, required) — ID of the post
GET

/comments

Retrieve comments, optionally filtered by postId.

  • postId (query) — Filter comments by the ID of the related post
POST

/posts

Create a new post.

PUT

/posts/{id}

Replace an existing post by ID.

  • id (path, required) — ID of the post to replace
PATCH

/posts/{id}

Update part of a post by ID.

  • id (path, required) — ID of the post to update
DELETE

/posts/{id}

Delete a post by ID.

  • id (path, required) — ID of the post to delete

8 endpoints auto-detected

curl -X GET \
  "https://jsonplaceholder.typicode.com/posts"

jsonplaceholder.typicode.com · HTTPS only