> ## Documentation Index
> Fetch the complete documentation index at: https://docs.posttu.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Search by Keyword

> Searches Threads for posts matching a keyword, returning up to 10 results with caption text, like_count, reshare_count, direct_reply_count, user info, and image_versions2. Supports optional start_date and end_date filters plus a trim option. Only 10 results are returned per request due to public API limitations.

### Query Parameters

| Parameter | Type | Required | Description |
| :- | :- | :- | :- |
| `query` | `string` | Yes | Keyword to search for |
| `start_date` | `string` | No | Start date to search for |
| `end_date` | `string` | No | End date to search for |
| `trim` | `boolean` | No | Set to true for a trimmed down version of the response |

### Response Example

```json theme={null}
{
  "success": true,
  "data": {
  "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
      }
    }
  ]
}
}
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.