Getting Started
This guide will help you make your first request to JSONPlaceholder in just a few minutes.
No authentication, no API keys. Just simple and fast.
Base URL
All endpoints are accessed using the base URL below:
https://jsonplaceholder.typicode.com/
Quick Start
Let’s try fetching a list of posts.
Request
GET /posts
Example (cURL):
curl https://jsonplaceholder.typicode.com/posts
Response (Sample)
[
{
"userId": 1,
"id": 1,
"title": "sunt aut facere repellat provident occaecati excepturi optio reprehenderit",
"body": "quia et suscipit\nsuscipit..."
},
{
"userId": 1,
"id": 2,
"title": "qui est esse",
"body": "est rerum tempore vitae..."
}
]
Try It in Your Code
JavaScript (Fetch)
fetch("https://jsonplaceholder.typicode.com/posts")
.then(response => response.json())
.then(data => console.log(data));
Python (Requests)
import requests
response = requests.get("https://jsonplaceholder.typicode.com/posts")
print(response.json())
sucess Next Steps
-
Explore the available resources:
-
Learn how to create, update, and delete resources with fake data.
That’s it! You’re up and running with JSONPlaceholder.