# Search popular

Search popular Instagram content by keyword, including available post dates and engagement counts. No matches returns a failed, uncharged request.

- Platform: [Instagram](https://docs.upscrape.com/docs/platforms/instagram)
- Capability ID: `instagram.popular.search`
- Cost: 1 credit per request
- Maximum runtime: 120 seconds
- Execute endpoint: `POST https://data.upscrape.com/execute`

## Request

Use the exact public capability ID in the shared execute envelope.

```bash
curl --request POST \
  --url https://data.upscrape.com/execute \
  --header "Authorization: Bearer $UPSCRAPE_API_KEY" \
  --header "Content-Type: application/json" \
  --header "Prefer: wait=30" \
  --data '{
  "input": {
    "keyword": "india",
    "limit": 12
  },
  "capability": "instagram.popular.search"
}'
```

## Input


| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `cursor` | `string` | No | Opaque next_cursor from a previous response |
| `keyword` | `string` | Yes | Keyword, slug, or public Instagram /popular/ URL |
| `limit` | `integer` | No | Maximum deduplicated results From 1 to 120. Default: `24`. |
| `max_pages` | `integer` | No | Maximum upstream pages for this request From 1 to 10. Default: `2`. |

### Example input

```json
{
  "keyword": "india",
  "limit": 12
}
```

## Response

Successful output is returned in `results[0].data`.

Raw platform output is intentionally open-ended and may evolve with the upstream source.

### Illustrative sample output

This example shows one response. Values and optional fields vary with the data available.

```json
{
  "has_more": true,
  "keyword": "india",
  "next_cursor": "[redacted:token]",
  "pages": 1,
  "posts": [
    {
      "caption": "😂😂………#funnyvideos \n\n#trendingreels \n\n#fun \n\n#funny \n\n#india",
      "id": "3888589680528236349",
      "play_count": 32866563,
      "shortcode": "DX3C7Y5Ip89",
      "type": "Video",
      "url": "https://www.instagram.com/reel/DX3C7Y5Ip89/",
      "user": {
        "id": "17841478847635269",
        "is_verified": false,
        "username": "as_comedy_011"
      },
      "video_versions": [
        {
          "height": 0,
          "width": 0
        },
        {
          "height": 0,
          "width": 0
        },
        {
          "height": 0,
          "width": 0
        }
      ]
    },
    {
      "caption": "लिपटी की ताकत देख लो 🫢 \n'\n'\n'\n'\n'\n'\n#instagram #viral #india #video #shorts",
      "id": "3842562502781833416",
      "play_count": 194677838,
      "shortcode": "DVThjzNjBDI",
      "type": "Video",
      "url": "https://www.instagram.com/reel/DVThjzNjBDI/",
      "user": {
        "id": "17841470636756109",
        "is_verified": false,
        "username": "rajkumarvlogs777"
      },
      "video_versions": [
        {
          "height": 0,
          "width": 0
        },
        {
          "height": 0,
          "width": 0
        },
        {
          "height": 0,
          "width": 0
        }
      ]
    },
    {
      "caption": "Unique Dosa scrapper of India 🇮🇳 \n#reels #jamnagar #travel #reelsindia #india",
      "id": "3851740278919657586",
      "play_count": 136837498,
      "shortcode": "DV0IWBUEfhy",
      "type": "Video",
      "url": "https://www.instagram.com/reel/DV0IWBUEfhy/",
      "user": {
        "id": "17841406888803330",
        "is_verified": true,
        "username": "thisiskaran.09"
      },
      "video_versions": [
        {
          "height": 0,
          "width": 0
        },
        {
          "height": 0,
          "width": 0
        },
        {
          "height": 0,
          "width": 0
        }
      ]
    }
  ],
  "total_count": 12
}
```
### Illustrative output fields

Derived from the sample above for orientation only. These fields are not a fixed response schema.

| Path | Observed type | Example |
| --- | --- | --- |
| `has_more` | `boolean` | true |
| `keyword` | `string` | india |
| `next_cursor` | `string` | [redacted:token] |
| `pages` | `integer` | 1 |
| `posts` | `array` | 3 items |
| `posts` | `array` | 3 items |
| `total_count` | `integer` | 12 |

## Execution behavior

A `200` response completed inline. A `202` response was queued; poll `GET /jobs/{id}` until the job reaches `completed` or `failed`. Use an `Idempotency-Key` when retrying must not create a duplicate logical job.

## Related documentation

- [Authentication](https://docs.upscrape.com/docs/api/authentication)
- [Jobs and results](https://docs.upscrape.com/docs/api/jobs)
- [Errors and retries](https://docs.upscrape.com/docs/api/errors)
- [Idempotency](https://docs.upscrape.com/docs/api/idempotency)
