example-data.com
Menu
Browse docs and collections

tags

tags

Browse 60 tags records. Explore sample records and fetch JSON over a free REST API for prototypes, tests, and learning.

Overview

Request

curl example

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

JavaScript example

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

TypeScript example

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

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

Python example

import requests

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

Response

{
  "data": [
    {
      "id": 1,
      "name": "tutorial",
      "slug": "tutorial",
      "color": "#d636ab",
      "useCount": 458
    },
    {
      "id": 2,
      "name": "discussion",
      "slug": "discussion",
      "color": "#dbd53d",
      "useCount": 446
    },
    {
      "id": 3,
      "name": "release",
      "slug": "release",
      "color": "#dac48f",
      "useCount": 96
    }
  ],
  "meta": {
    "page": 1,
    "limit": 25,
    "total": 60,
    "totalPages": 3
  },
  "links": {
    "self": "/api/v1/tags?page=1",
    "first": "/api/v1/tags?page=1",
    "last": "/api/v1/tags?page=3",
    "next": "/api/v1/tags?page=2",
    "prev": null
  }
}

View full response →