example-data.com
Menu
Browse docs and collections

Overview

users / #193

Selina Flatley

Selina Flatley

@selina_flatley

technician advocate, photographer 🇦🇮

Phone
+1 202-555-0192 ext 2
Joined
8/16/2024

Component variants

Related

Request

curl example

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

JavaScript example

const res = await fetch(
  "https://example-data.com/api/v1/users/193"
);
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/193"
);
const user = (await res.json()) as User;

Python example

import requests

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

Response

{
  "id": 193,
  "firstName": "Selina",
  "lastName": "Flatley",
  "fullName": "Selina Flatley",
  "username": "selina_flatley",
  "email": "selina_flatley@example.com",
  "phone": "+1 202-555-0192 ext 2",
  "bio": "technician advocate, photographer 🇦🇮",
  "avatarUrl": "https://api.dicebear.com/9.x/avataaars/svg?seed=user-193",
  "thumbnailUrl": "https://api.dicebear.com/9.x/avataaars/svg?seed=user-193&size=128",
  "coverImageUrl": "https://picsum.photos/seed/user-cover-193/1200/400",
  "emailVerified": true,
  "isActive": true,
  "twitterHandle": null,
  "createdAt": "2024-08-16T22:13:21.049Z",
  "updatedAt": "2024-12-21T21:43:34.191Z"
}