example-data.com

tags / #28

api

Component variants

Medium

api

Small
api
curl -sS \
  "https://example-data.com/api/v1/tags/28" \
  -H "Accept: application/json"
const res = await fetch(
  "https://example-data.com/api/v1/tags/28"
);
const tag = await res.json();
import type { Tag } from "https://example-data.com/types/tags.d.ts";

const res = await fetch(
  "https://example-data.com/api/v1/tags/28"
);
const tag = (await res.json()) as Tag;
import requests

res = requests.get(
    "https://example-data.com/api/v1/tags/28"
)
tag = res.json()
{
  "id": 28,
  "name": "api",
  "slug": "api",
  "color": "#f578fc",
  "useCount": 218
}
Draftbit