Social API reference

Social API · Hashtags

get/v1/communities/{community_id}/hashtagsAuth

List hashtags in this community. Default order is `first_used_at` desc; `order=trending` ranks by windowed post count (task 023) — pass `window=24h|7d`. `window_post_count` is populated only when trending.

Path parameters

community_id*string

Social community UUID. Must belong to the PAK's workspace.

Query parameters

orderenum (2)

`recent` (default) = newest tags first; `trending` = most posts in the window.

windowenum (2)

Trending window (only meaningful with `order=trending`).

limitinteger

Maximum number of items to return (1-200, default 50).

cursorstring

Opaque cursor from the previous page's `pagination.next_cursor`; omit for the first page.

Response · 200 Page of hashtags.

data*array

The hashtags on this page.

pagination*object
next_cursor*string

Opaque base64url cursor for the next page; `null` when no further pages.

Example: "eyJjcmVhdGVkX2F0IjoiMjAyNi0wNS0wMVQxMjowMDowMC4wMDBaIiwiaWQiOiJiYmJiIn0"

has_more*boolean

`true` when at least one more page exists. Mirrors `next_cursor !== null`; published as a separate field so SDKs can drive a `while` loop without parsing the cursor. A short or empty `data` array does NOT imply the end of the list when a lane post-filters — always page until this is `false`.

Example: true

Example

Request

GET https://social.productcraft.co/v1/communities/{community_id}/hashtags
Authorization: Bearer YOUR_TOKEN

Response

{
  "data": [
    {
      "community_id": "cccccccc-cccc-cccc-cccc-cccccccccccc",
      "tag": "storymode",
      "first_used_at": "2026-05-01T12:00:00.000Z",
      "window_post_count": null
    }
  ],
  "pagination": {
    "next_cursor": "eyJjcmVhdGVkX2F0IjoiMjAyNi0wNS0wMVQxMjowMDowMC4wMDBaIiwiaWQiOiJiYmJiIn0",
    "has_more": true
  }
}