hashtags
hashtags
Page 2 of 5.
Overview
Request
curl example
curl -sS \ "https://example-data.com/api/v1/hashtags?limit=25"
JavaScript example
const res = await fetch(
"https://example-data.com/api/v1/hashtags?limit=25"
);
const { data, meta } = await res.json(); TypeScript example
// Download once: mkdir -p types && curl -o types/hashtags.d.ts https://example-data.com/types/hashtags.d.ts
import type { Hashtag, ListEnvelope } from "./types/hashtags";
const res = await fetch(
"https://example-data.com/api/v1/hashtags?limit=25"
);
const { data, meta } = (await res.json()) as ListEnvelope<Hashtag>; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/hashtags",
params={"limit": 25},
)
data = res.json() Response
{
"data": [
{
"id": 25,
"tag": "productivity",
"useCount": 4569
},
{
"id": 26,
"tag": "movies",
"useCount": 3221
},
{
"id": 27,
"tag": "books",
"useCount": 3551
}
],
"meta": {
"page": 2,
"limit": 24,
"total": 100,
"totalPages": 5
},
"links": {
"self": "/api/v1/hashtags?page=2&limit=24",
"first": "/api/v1/hashtags?page=1&limit=24",
"last": "/api/v1/hashtags?page=5&limit=24",
"next": "/api/v1/hashtags?page=3&limit=24",
"prev": "/api/v1/hashtags?page=1&limit=24"
}
}