Sample JSON / Posts
Sample Posts JSON
Forty blog-post records with titles, lorem bodies, author references, tags, like counts, and publication timestamps - for feeds, cards, and CMS-style prototypes.
https://jsonconsole.com/api/posts.json40 records17 KBCORS: *
Download posts.json·Free for any use, no attribution required (CC0). Endpoint is stable - safe to use in tutorials and READMEs.
Preview
[
{
"id": 1,
"title": "Thoughts about GraphQL",
"body": "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Lorem ipsum dolor sit amet, consectetur adipiscing elit. ",
"authorId": 4,
"tags": [
"frontend",
"api"
],
"likes": 359,
"publishedAt": "2024-02-16T13:41:00Z"
},
{
"id": 2,
"title": "Notes on JSON Schema",
"body": "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Lorem ipsum dolor sit amet, consectetur adipiscing elit. ",
"authorId": 15,
"tags": [
"json",
"backend"
],
"likes": 243,
"publishedAt": "2025-01-03T21:59:00Z"
},
{
"id": 3,
"title": "Notes on REST APIs",
"body": "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Lorem ipsum dolor sit amet, consectetur adipiscing elit. ",
"authorId": 60,
"tags": [
"tutorial",
"api"
],
"likes": 492,
"publishedAt": "2024-10-05T22:52:00Z"
}
]First 3 records shown - the full file has 40 records.
Fields
| Field | Type | Notes |
|---|---|---|
| id / title | number / string | Tech-flavored titles |
| body | string | Lorem ipsum paragraphs |
| authorId | number | Foreign key into /api/users.json |
| tags | string[] | 2 tags per post |
| likes | number | 0-500 |
| publishedAt | string (ISO 8601) | Publication timestamp |
Fetch it in code
JavaScript
const res = await fetch(
"https://jsonconsole.com/api/posts.json"
);
const data = await res.json();Python
import requests
data = requests.get(
"https://jsonconsole.com/api/posts.json"
).json()What this dataset is good for
- Feed/timeline UIs with realistic text lengths
- Tag filtering and popularity sorting
- Author joins (posts.authorId → users.id)
More sample data
You might also need
Free and in-browser, like everything on JSON Console. Browse all tools →
Mock JSON GeneratorPaste one sample record and generate up to 1,000 mock records with the same structureJSON to CSVPaste a JSON array of objects on the left and get a spreadsheet-ready CSV with headers on the rightJSON to SQLPaste a JSON array and get a CREATE TABLE statement with inferred column types plus one INSERT per rowJSON ViewerExplore documents as tree, table, or graph.JSON FormatterFormat and validate with code, tree, table, and graph views.JSON ComparePaste two JSON documents and see only real differencesJWT DecoderPaste a JWT and instantly see its decoded header and payload with expiry statusJSON to TypeScriptPaste an API response and get TypeScript interfacesJSON MinifyPaste formatted JSON and get the smallest valid version