example-data.com
Menu
Browse docs and collections

Overview

users / #15

Component variants

Related

Request

curl example

curl -sS \
  "https://example-data.com/api/v1/users/15" \
  -H "Accept: application/json"

JavaScript example

const res = await fetch(
  "https://example-data.com/api/v1/users/15"
);
const user = 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 } from "./types/users";

const res = await fetch(
  "https://example-data.com/api/v1/users/15"
);
const user = (await res.json()) as User;

Python example

import requests

res = requests.get(
    "https://example-data.com/api/v1/users/15"
)
user = res.json()

Response

{
  "id": 15,
  "firstName": "Zachariah",
  "lastName": "Herzog",
  "fullName": "Zachariah Herzog",
  "username": "zachariah_herzog42",
  "email": "zachariah_herzog42@example.com",
  "phone": "+1 202-555-0114 ext 1",
  "bio": "artist",
  "avatarUrl": "https://api.dicebear.com/9.x/avataaars/svg?seed=user-15",
  "thumbnailUrl": "https://api.dicebear.com/9.x/avataaars/svg?seed=user-15&size=128",
  "coverImageUrl": "https://picsum.photos/seed/user-cover-15/1200/400",
  "emailVerified": false,
  "isActive": true,
  "twitterHandle": null,
  "createdAt": "2025-12-21T14:03:30.446Z",
  "updatedAt": "2026-05-03T03:57:37.054Z"
}