example-data.com
Menu
Browse docs and collections

hashtags

hashtags

Page 5 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": 97,
      "tag": "minima",
      "useCount": 4244
    },
    {
      "id": 98,
      "tag": "abutor",
      "useCount": 2991
    },
    {
      "id": 99,
      "tag": "voluptates",
      "useCount": 3107
    }
  ],
  "meta": {
    "page": 5,
    "limit": 24,
    "total": 100,
    "totalPages": 5
  },
  "links": {
    "self": "/api/v1/hashtags?page=5&limit=24",
    "first": "/api/v1/hashtags?page=1&limit=24",
    "last": "/api/v1/hashtags?page=5&limit=24",
    "next": null,
    "prev": "/api/v1/hashtags?page=4&limit=24"
  }
}