API Reference

    v1.0.0 ยท updated from bundled OpenAPI

    GET/desearch/facebook/hashtag/{tag}

    Retrieve Facebook Hashtag Posts

    Retrieve normalized public Meta Ad Library records for a keyword/hashtag. Organic Facebook hashtag search and Facebook trending are intentionally omitted until a reliable public surface exists. Billing metadata: successful billable responses include the `X-Desearch-Cost-Usd`, `X-Desearch-Usage-Count`, `X-Desearch-Service`, and `X-Desearch-Currency` headers. JSON object responses also include optional `cost_usd`, `usage_count`, `service`, and `currency` fields. For example, `usage_count=10` at `$0.015 / 1,000` resolves to `cost_usd=0.00015`. JSON arrays, text, and streaming responses keep their body shape and expose billing metadata only through headers.

    Base URL

    https://api.desearch.ai

    Implementation guidance

    Use Retrieve Facebook Hashtag Posts when your application needs search-grounded AI resultswithout maintaining its own crawler, social-data pipeline, or retrieval infrastructure. The endpoint returns structured data that can be consumed by agents, research tools, dashboards, and retrieval-augmented generation workflows. Keep the request focused on the minimum fields your workflow needs so responses remain fast and easy to validate.

    Send requests to GET /desearch/facebook/hashtag/{tag} with your Desearch API key in the authorization header. Treat the key as a server-side secret, validate all required parameters before sending the request, and handle non-2xx responses explicitly. Production integrations should use sensible timeouts, retry only transient failures with backoff, and record the response status and request identifier for troubleshooting.

    Test the example request below before integrating it into a larger workflow. Confirm that the returned fields, links, and timestamps meet your freshness requirements, then add schema validation at the application boundary. For agentic systems, preserve source URLs with the generated answer so users can inspect evidence and your application can avoid presenting unsupported claims.

    Query Parameters

    tagstringrequired

    Hashtag without #

    countinteger

    Number of posts to retrieve

    Default: 20

    cursorstring

    Pagination cursor

    Responses

    200A list of normalized Facebook posts.
    301Moved Permanently
    304Not Modified
    401Unauthorized
    422Validation Error
    429Too Many Requests
    500Internal Server Error
    Authorization

    Your API key is sent in the Authorization header.

    Request
    curl -X GET "https://api.desearch.ai/desearch/facebook/hashtag/{tag}?tag=bittensor" \
      -H "Authorization: YOUR_API_KEY" \
      -H "Content-Type: application/json"
    ResponseSchema
    [
      {
        "id": "1525856912919657",
        "url": "https://www.facebook.com/facebook/posts/1525856912919657",
        "text": "Post text",
        "createTime": "2026-05-01T10:00:00Z",
        "author": {
          "id": "123456789",
          "username": "facebook",
          "name": "Desearch AI",
          "url": "https://www.facebook.com/facebook",
          "avatar": "https://example.com/avatar.jpg",
          "verified": true,
          "bio": "Public search API",
          "category": "Software",
          "followers": 50000,
          "likes": 12000
        },
        "stats": {
          "reactionCount": 1200,
          "commentCount": 80,
          "shareCount": 24,
          "viewCount": 10000
        },
        "media": [
          {
            "type": "photo",
            "url": "https://example.com/photo.jpg",
            "thumbnail": "https://example.com/thumb.jpg",
            "width": 1200,
            "height": 630
          }
        ],
        "hashtags": [
          "string"
        ]
      }
    ]

    Possible status codes:

    200401422429500