ShareYourGroupShareYourGroupFree Public APIs

JSONPlaceholder fake data

A free fake REST API for practice, for documentation and tutorials: posts, comments, albums, photos, todos and users with made-up content.

Address that will be called:

What it gives you

A free fake REST API for practice, for documentation and tutorials: posts, comments, albums, photos, todos and users with made-up content. Writing requests are accepted but nothing is saved.

Terms and limits

Described on its own site as a free online REST API that you can use whenever you need some fake data. Do not treat it as stable storage: the data is fixed and fake, and the service is run by volunteers and sponsors.

_Read on 14 November 2026 from jsonplaceholder.typicode.com._

Good habits

  1. Cache answers that do not change often.
  2. Handle errors: the service may be busy or down.
  3. Give credit where the terms ask for it.
  4. Do not put secret keys into a web page: this API needs none, but many others do.

The same request in code

curl

curl -L "https://jsonplaceholder.typicode.com/todos/1"

Python

import json, urllib.request

with urllib.request.urlopen("https://jsonplaceholder.typicode.com/todos/1") as r:
    data = json.load(r)
print(data['title'])

JavaScript (browser or Node.js)

const res = await fetch("https://jsonplaceholder.typicode.com/todos/1");
const data = await res.json();
console.log(data.title);

A real answer

This is what the example request above returned when we called it on 14 November 2026 with the default values (it took about 0.2 s from our computer). Values such as times and temperatures change.

{
  "userId": 1,
  "id": 1,
  "title": "delectus aut autem",
  "completed": false
}

This is an independent directory. It is not connected with any of the services listed. Each address was called on 14 November 2026 with curl, Python, Node.js and Chrome (from a page on another site), and the answer shown is a real one. APIs change: check the service's own page before you depend on it.