example-data.com
Menu

How to use this data

Use posts for the feed, comments for replies, users for author profiles, and followers for the follow graph. Follow the related-record links to inspect how the records connect.

Click into any collection to see its schema, sample records, and API reference.

Try it now

Fetch posts in the language of your choice.

curl example

curl -sS \
  "https://example-data.com/api/v1/posts?limit=25"

JavaScript example

const res = await fetch(
  "https://example-data.com/api/v1/posts?limit=25"
);
const { data, meta } = await res.json();

TypeScript example

// Download once: mkdir -p types && curl -o types/posts.d.ts https://example-data.com/types/posts.d.ts
import type { Post, ListEnvelope } from "./types/posts";

const res = await fetch(
  "https://example-data.com/api/v1/posts?limit=25"
);
const { data, meta } = (await res.json()) as ListEnvelope<Post>;

Python example

import requests

res = requests.get(
    "https://example-data.com/api/v1/posts",
    params={"limit": 25},
)
data = res.json()

Looking for a visual way to build a web or mobile app? You can use this data with Draftbit.