example-data.com
Menu

Collections used

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

Try it now

Fetch users in the language of your choice.

curl example

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

JavaScript example

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

TypeScript example

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

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

Python example

          import requests

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