tags
tags
Page 3 of 3.
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": 49,
"name": "caput villa",
"slug": "caput-villa",
"color": "#dfeeb5",
"useCount": 90
},
{
"id": 50,
"name": "crudelis",
"slug": "crudelis",
"color": "#d6f95f",
"useCount": 62
},
{
"id": 51,
"name": "abbas commodi attonbitus",
"slug": "abbas-commodi-attonbitus",
"color": "#d44a2e",
"useCount": 5
}
],
"meta": {
"page": 3,
"limit": 24,
"total": 60,
"totalPages": 3
},
"links": {
"self": "/api/v1/tags?page=3&limit=24",
"first": "/api/v1/tags?page=1&limit=24",
"last": "/api/v1/tags?page=3&limit=24",
"next": null,
"prev": "/api/v1/tags?page=2&limit=24"
}
}