THREADS API

Search by Keyword

Retrieve search by keyword from Threads with a single API request.

GET/api/data/v1/threads/search
1credit base cost

Request parameters

Up to 1 credit

Keyword to search for

Start date to search for

End date to search for

Set to true for a trimmed down version of the response

Try in the console

Live requests use your prepaid balance. Cached responses cost zero where supported.

curl --request GET \
  --url 'https://fetchgoblin.com/api/data/v1/threads/search?query=basketball' \
  --header 'x-api-key: YOUR_FETCHGOBLIN_API_KEY'

Response

Example
{
  "success": true,
  "posts": [
    {
      "id": "3658605407757558624_71259204903",
      "pk": "3658605407757558624",
      "caption": {
        "text": "This woman selling mini umbrellas shows love to stray cats & dogs & introduces them. She may not have money but is richer than many.🥹🥹",
        "pk": "18077403781726333",
        "has_translation": null
      },
      "code": "DLF-jv2tmNg",
      "like_count": 5419,
      "taken_at": 1750359780,
      "user": {
        "pk": "71259204903",
        "friendship_status": null,
        "profile_pic_url": "https://scontent-dfw5-2.cdninstagram.com/v/t51.2885-19/501402907_17869607802372904_1939177145792832486_n.jpg?stp=dst-jpg_s150x150_tt6&_nc_ht=scontent-dfw5-2.cdninstagram.com&_nc_cat=1&_nc_oc=Q6cZ2QHQ6tqymzxxWWnD3Y69dUStiwPULqhvwrOx1_1jXHmGEOp8LBdxfOkihhVQW0v5NsY&_nc_ohc=FICE0ht7dSAQ7kNvwEXdDzp&_nc_gid=C_fAfqKQ2OEy746wTYa0sw&edm=APs17CUBAAAA&ccb=7-5&oh=00_AfPyuWIMTTIwpoiGW4059hDGkyKRW8eVZbUH1Zfzd2xxRw&oe=685AA184&_nc_sid=10d13b",
        "username": "mahtabuddinit",
        "id": "71259204903",
        "full_name": "Mahtab Uddin",
        "transparency_label": null,
        "transparency_product": null,
        "transparency_product_enabled": false,
        "is_verified": false,
        "text_post_app_is_private": false,
        "has_onboarded_to_text_post_app": true
      }
    }
  ],
  "credits_charged": 1,
  "credits_remaining": 1000,
  "request_id": "00000000-0000-4000-8000-000000000000"
}
Example data from the API specification. Run a request to retrieve current data.

Response shape

This schema describes the documented data shape. Some platform fields may be absent or null. The response also includes your FetchGoblin request ID and current credit balance.

View JSON Schema +
{
  "type": "object",
  "properties": {
    "success": {
      "type": "boolean"
    },
    "posts": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "pk": {
            "type": "string"
          },
          "caption": {
            "type": "object",
            "properties": {
              "text": {
                "type": "string"
              },
              "pk": {
                "type": "string"
              },
              "has_translation": {
                "type": [
                  "string",
                  "object",
                  "array",
                  "number",
                  "boolean",
                  "null"
                ]
              }
            }
          },
          "code": {
            "type": "string"
          },
          "like_count": {
            "type": "integer"
          },
          "taken_at": {
            "type": "integer"
          },
          "user": {
            "type": "object",
            "properties": {
              "pk": {
                "type": "string"
              },
              "friendship_status": {
                "type": [
                  "string",
                  "object",
                  "array",
                  "number",
                  "boolean",
                  "null"
                ]
              },
              "profile_pic_url": {
                "type": "string"
              },
              "username": {
                "type": "string"
              },
              "id": {
                "type": "string"
              },
              "full_name": {
                "type": "string"
              },
              "transparency_label": {
                "type": [
                  "string",
                  "object",
                  "array",
                  "number",
                  "boolean",
                  "null"
                ]
              },
              "transparency_product": {
                "type": [
                  "string",
                  "object",
                  "array",
                  "number",
                  "boolean",
                  "null"
                ]
              },
              "transparency_product_enabled": {
                "type": "boolean"
              },
              "is_verified": {
                "type": "boolean"
              },
              "text_post_app_is_private": {
                "type": "boolean"
              },
              "has_onboarded_to_text_post_app": {
                "type": "boolean"
              }
            }
          }
        }
      }
    },
    "credits_charged": {
      "type": "integer",
      "minimum": 0,
      "description": "FetchGoblin credits charged for this request."
    },
    "credits_remaining": {
      "type": "integer",
      "description": "Your FetchGoblin credit balance after this request."
    },
    "request_id": {
      "type": "string",
      "format": "uuid",
      "description": "FetchGoblin request identifier."
    }
  }
}