Social API reference

Social API · Hashtag-Posts

get/v1/communities/{community_id}/hashtags/{tag}/postsAuth

List posts using a hashtag. `order=chronological` (default) or `order=ranked` (task 023) — ranked reuses the discover recency+engagement scoring, paginated on a (score, id) cursor. Same wire shape as the regular post list.

Path parameters

community_id*string

Community UUID.

tag*string

Lowercase tag (without `#`).

Query parameters

orderenum (2)

`chronological` is newest first; `ranked` scores posts by engagement and recency.

limitinteger

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

cursorstring

Chronological pages on (created_at, id); ranked on (score, id). A cursor is not portable across orders.

Response · 200 Page of posts.

data*array

The posts carrying the hashtag, 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/{tag}/posts
Authorization: Bearer YOUR_TOKEN

Response

{
  "data": [
    {
      "id": "bbbbbbbb-bbbb-bbbb-bbbb-bbbbbbbbbbbb",
      "community_id": "cccccccc-cccc-cccc-cccc-cccccccccccc",
      "actor_id": "aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa",
      "kind": "text",
      "title": "Shipping Phase 8",
      "body": "Stories are live!",
      "url": "https://cdn.example.com/img.png",
      "attributes": {},
      "visibility": "public",
      "status": "published",
      "reaction_counts": {
        "like": 12,
        "fire": 3
      },
      "comment_count": 4,
      "source_post_id": null,
      "repost_count": 0,
      "quote_count": 0,
      "edited_at": null,
      "edit_count": 0,
      "view_count": 0,
      "expires_at": null,
      "pinned": false,
      "settings": {},
      "scheduled_for": null,
      "assets": [
        {
          "asset_id": "eeeeeeee-0000-0000-0000-000000000001",
          "alt_text": "A golden retriever on a beach"
        }
      ],
      "created_at": "2026-05-01T12:00:00.000Z",
      "updated_at": "2026-05-01T12:00:00.000Z"
    }
  ],
  "pagination": {
    "next_cursor": "eyJjcmVhdGVkX2F0IjoiMjAyNi0wNS0wMVQxMjowMDowMC4wMDBaIiwiaWQiOiJiYmJiIn0",
    "has_more": true
  }
}