> For the complete documentation index, see [llms.txt](https://docs.pullbay.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.pullbay.com/api-reference/instagram.md). Agents can also search and read this documentation through its [MCP server](https://docs.pullbay.com/~gitbook/mcp).

# Instagram

Instagram: users, followers, posts, reels, stories, comments, hashtags, locations, audio, and search.

## Get a user by handle

> Returns an Instagram user profile by handle (without \`@\`).\
> \
> \*\*Price:\*\* $0.0015 per item\
> \
> \*\*Minimum charge:\*\* $0.0015 per request (1 item)\
> \
> Your current plan discount applies to the total. The minimum applies once per request, even when fewer items are returned. maxItems limits requested results; it does not lower the minimum billable count.

```json
{"openapi":"3.0.3","info":{"title":"Pullbay API","version":"2.0.0"},"tags":[{"name":"instagram","description":"Instagram: users, followers, posts, reels, stories, comments, hashtags, locations, audio, and search."}],"servers":[{"url":"https://api.pullbay.com"}],"security":[{"BearerAuth":[]}],"components":{"securitySchemes":{"BearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"JWT"}},"schemas":{"InstagramUser":{"type":"object","description":"An Instagram user profile.","properties":{"type":{"type":"string"},"isAvailable":{"type":"boolean"},"id":{"type":"string"},"username":{"type":"string"},"fullName":{"type":"string"},"biography":{"type":"string"},"profilePicUrl":{"type":"string"},"website":{"type":"string"},"category":{"type":"string"},"cityName":{"type":"string","nullable":true},"isPrivate":{"type":"boolean"},"isVerified":{"type":"boolean"},"isBusiness":{"type":"boolean"},"hasVideos":{"type":"boolean"},"hasGuides":{"type":"boolean"},"postCount":{"type":"integer"},"followerCount":{"type":"integer"},"followingCount":{"type":"integer"},"totalReelsCount":{"type":"integer"},"bioLinks":{"type":"array","items":{"type":"object","additionalProperties":true}}}},"ErrorEnvelope":{"type":"object","properties":{"requestId":{"type":"string","format":"uuid"},"status":{"type":"integer"},"message":{"type":"string","description":"Human-readable summary. For `VALIDATION_ERROR`, the first entry's message in `error.details`, or `Invalid request.` when `details` is empty."},"success":{"type":"boolean"},"error":{"type":"object","properties":{"code":{"type":"string"},"details":{"type":"array","description":"Present on `VALIDATION_ERROR`. One entry per failed rule, so a parameter can appear more than once. Empty when the request could not be checked field by field.","items":{"$ref":"#/components/schemas/ValidationErrorDetail"}}}}}},"ValidationErrorDetail":{"type":"object","required":["field","message"],"properties":{"field":{"type":"string","nullable":true,"description":"The invalid parameter, or `null` when a rule covers several parameters (e.g. `cursor` with `maxItems`)."},"message":{"type":"string"},"minimum":{"type":"number","description":"Smallest allowed value. Present on a number range error when the parameter has a lower bound."},"maximum":{"type":"number","description":"Largest allowed value. Present on a number range error when the parameter has an upper bound."},"minLength":{"type":"integer","description":"Fewest allowed characters. Present on a string length error when the parameter has a minimum length."},"maxLength":{"type":"integer","description":"Most allowed characters. Present on a string length error when the parameter has a maximum length."}}},"InsufficientBalanceError":{"type":"object","description":"The available USD balance cannot cover this request. No partial charge is retained. Add funds or reduce the requested result count, subject to the endpoint minimum.","required":["status","success","error"],"properties":{"requestId":{"type":"string","format":"uuid"},"status":{"type":"integer","enum":[402]},"success":{"type":"boolean","enum":[false]},"message":{"type":"string"},"error":{"type":"object","required":["code"],"properties":{"code":{"type":"string","enum":["TEAM_INSUFFICIENT_BALANCE"]}}}}}}},"paths":{"/instagram/user/handle/{handle}":{"get":{"operationId":"getInstagramUserByHandle","summary":"Get a user by handle","description":"Returns an Instagram user profile by handle (without `@`).\n\n**Price:** $0.0015 per item\n\n**Minimum charge:** $0.0015 per request (1 item)\n\nYour current plan discount applies to the total. The minimum applies once per request, even when fewer items are returned. maxItems limits requested results; it does not lower the minimum billable count.","tags":["instagram"],"parameters":[{"name":"handle","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":100}}],"responses":{"200":{"description":"Successful request","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string","format":"uuid"},"status":{"type":"integer"},"message":{"type":"string"},"success":{"type":"boolean"},"data":{"type":"array","items":{"$ref":"#/components/schemas/InstagramUser"}},"pricing":{"type":"object","required":["currency","amountCharged","billableItems"],"properties":{"currency":{"type":"string","enum":["USD"]},"amountCharged":{"type":"string","pattern":"^\\d+\\.\\d{6}$","description":"Exact USD amount after the current plan discount, rounded once to a microdollar. This example uses the minimum count with no discount."},"billableItems":{"type":"integer","minimum":0}}}}}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"402":{"description":"Insufficient balance","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InsufficientBalanceError"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}}}}
```

## Resolve user ID from handle

> Returns whether the handle is available and, if it exists, the resolved Instagram user ID.\
> \
> \*\*Price:\*\* $0.0015 per item\
> \
> \*\*Minimum charge:\*\* $0.0015 per request (1 item)\
> \
> Your current plan discount applies to the total. The minimum applies once per request, even when fewer items are returned. maxItems limits requested results; it does not lower the minimum billable count.

```json
{"openapi":"3.0.3","info":{"title":"Pullbay API","version":"2.0.0"},"tags":[{"name":"instagram","description":"Instagram: users, followers, posts, reels, stories, comments, hashtags, locations, audio, and search."}],"servers":[{"url":"https://api.pullbay.com"}],"security":[{"BearerAuth":[]}],"components":{"securitySchemes":{"BearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"JWT"}},"schemas":{"InstagramUserIdLookup":{"type":"object","description":"Result of resolving an Instagram user ID from a handle.","properties":{"isAvailable":{"type":"boolean"},"handle":{"type":"string"},"id":{"type":"string","description":"Present only when `isAvailable` is true."}}},"ErrorEnvelope":{"type":"object","properties":{"requestId":{"type":"string","format":"uuid"},"status":{"type":"integer"},"message":{"type":"string","description":"Human-readable summary. For `VALIDATION_ERROR`, the first entry's message in `error.details`, or `Invalid request.` when `details` is empty."},"success":{"type":"boolean"},"error":{"type":"object","properties":{"code":{"type":"string"},"details":{"type":"array","description":"Present on `VALIDATION_ERROR`. One entry per failed rule, so a parameter can appear more than once. Empty when the request could not be checked field by field.","items":{"$ref":"#/components/schemas/ValidationErrorDetail"}}}}}},"ValidationErrorDetail":{"type":"object","required":["field","message"],"properties":{"field":{"type":"string","nullable":true,"description":"The invalid parameter, or `null` when a rule covers several parameters (e.g. `cursor` with `maxItems`)."},"message":{"type":"string"},"minimum":{"type":"number","description":"Smallest allowed value. Present on a number range error when the parameter has a lower bound."},"maximum":{"type":"number","description":"Largest allowed value. Present on a number range error when the parameter has an upper bound."},"minLength":{"type":"integer","description":"Fewest allowed characters. Present on a string length error when the parameter has a minimum length."},"maxLength":{"type":"integer","description":"Most allowed characters. Present on a string length error when the parameter has a maximum length."}}},"InsufficientBalanceError":{"type":"object","description":"The available USD balance cannot cover this request. No partial charge is retained. Add funds or reduce the requested result count, subject to the endpoint minimum.","required":["status","success","error"],"properties":{"requestId":{"type":"string","format":"uuid"},"status":{"type":"integer","enum":[402]},"success":{"type":"boolean","enum":[false]},"message":{"type":"string"},"error":{"type":"object","required":["code"],"properties":{"code":{"type":"string","enum":["TEAM_INSUFFICIENT_BALANCE"]}}}}}}},"paths":{"/instagram/userid/{handle}":{"get":{"operationId":"getInstagramUserIdByHandle","summary":"Resolve user ID from handle","description":"Returns whether the handle is available and, if it exists, the resolved Instagram user ID.\n\n**Price:** $0.0015 per item\n\n**Minimum charge:** $0.0015 per request (1 item)\n\nYour current plan discount applies to the total. The minimum applies once per request, even when fewer items are returned. maxItems limits requested results; it does not lower the minimum billable count.","tags":["instagram"],"parameters":[{"name":"handle","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":100}}],"responses":{"200":{"description":"Successful request","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string","format":"uuid"},"status":{"type":"integer"},"message":{"type":"string"},"success":{"type":"boolean"},"data":{"type":"array","items":{"$ref":"#/components/schemas/InstagramUserIdLookup"}},"pricing":{"type":"object","required":["currency","amountCharged","billableItems"],"properties":{"currency":{"type":"string","enum":["USD"]},"amountCharged":{"type":"string","pattern":"^\\d+\\.\\d{6}$","description":"Exact USD amount after the current plan discount, rounded once to a microdollar. This example uses the minimum count with no discount."},"billableItems":{"type":"integer","minimum":0}}}}}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"402":{"description":"Insufficient balance","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InsufficientBalanceError"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}}}}
```

## Get a user by ID

> Returns an Instagram user profile by numeric user ID.\
> \
> \*\*Price:\*\* $0.0015 per item\
> \
> \*\*Minimum charge:\*\* $0.0015 per request (1 item)\
> \
> Your current plan discount applies to the total. The minimum applies once per request, even when fewer items are returned. maxItems limits requested results; it does not lower the minimum billable count.

```json
{"openapi":"3.0.3","info":{"title":"Pullbay API","version":"2.0.0"},"tags":[{"name":"instagram","description":"Instagram: users, followers, posts, reels, stories, comments, hashtags, locations, audio, and search."}],"servers":[{"url":"https://api.pullbay.com"}],"security":[{"BearerAuth":[]}],"components":{"securitySchemes":{"BearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"JWT"}},"schemas":{"InstagramUser":{"type":"object","description":"An Instagram user profile.","properties":{"type":{"type":"string"},"isAvailable":{"type":"boolean"},"id":{"type":"string"},"username":{"type":"string"},"fullName":{"type":"string"},"biography":{"type":"string"},"profilePicUrl":{"type":"string"},"website":{"type":"string"},"category":{"type":"string"},"cityName":{"type":"string","nullable":true},"isPrivate":{"type":"boolean"},"isVerified":{"type":"boolean"},"isBusiness":{"type":"boolean"},"hasVideos":{"type":"boolean"},"hasGuides":{"type":"boolean"},"postCount":{"type":"integer"},"followerCount":{"type":"integer"},"followingCount":{"type":"integer"},"totalReelsCount":{"type":"integer"},"bioLinks":{"type":"array","items":{"type":"object","additionalProperties":true}}}},"ErrorEnvelope":{"type":"object","properties":{"requestId":{"type":"string","format":"uuid"},"status":{"type":"integer"},"message":{"type":"string","description":"Human-readable summary. For `VALIDATION_ERROR`, the first entry's message in `error.details`, or `Invalid request.` when `details` is empty."},"success":{"type":"boolean"},"error":{"type":"object","properties":{"code":{"type":"string"},"details":{"type":"array","description":"Present on `VALIDATION_ERROR`. One entry per failed rule, so a parameter can appear more than once. Empty when the request could not be checked field by field.","items":{"$ref":"#/components/schemas/ValidationErrorDetail"}}}}}},"ValidationErrorDetail":{"type":"object","required":["field","message"],"properties":{"field":{"type":"string","nullable":true,"description":"The invalid parameter, or `null` when a rule covers several parameters (e.g. `cursor` with `maxItems`)."},"message":{"type":"string"},"minimum":{"type":"number","description":"Smallest allowed value. Present on a number range error when the parameter has a lower bound."},"maximum":{"type":"number","description":"Largest allowed value. Present on a number range error when the parameter has an upper bound."},"minLength":{"type":"integer","description":"Fewest allowed characters. Present on a string length error when the parameter has a minimum length."},"maxLength":{"type":"integer","description":"Most allowed characters. Present on a string length error when the parameter has a maximum length."}}},"InsufficientBalanceError":{"type":"object","description":"The available USD balance cannot cover this request. No partial charge is retained. Add funds or reduce the requested result count, subject to the endpoint minimum.","required":["status","success","error"],"properties":{"requestId":{"type":"string","format":"uuid"},"status":{"type":"integer","enum":[402]},"success":{"type":"boolean","enum":[false]},"message":{"type":"string"},"error":{"type":"object","required":["code"],"properties":{"code":{"type":"string","enum":["TEAM_INSUFFICIENT_BALANCE"]}}}}}}},"paths":{"/instagram/user/{id}":{"get":{"operationId":"getInstagramUserById","summary":"Get a user by ID","description":"Returns an Instagram user profile by numeric user ID.\n\n**Price:** $0.0015 per item\n\n**Minimum charge:** $0.0015 per request (1 item)\n\nYour current plan discount applies to the total. The minimum applies once per request, even when fewer items are returned. maxItems limits requested results; it does not lower the minimum billable count.","tags":["instagram"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":100}}],"responses":{"200":{"description":"Successful request","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string","format":"uuid"},"status":{"type":"integer"},"message":{"type":"string"},"success":{"type":"boolean"},"data":{"type":"array","items":{"$ref":"#/components/schemas/InstagramUser"}},"pricing":{"type":"object","required":["currency","amountCharged","billableItems"],"properties":{"currency":{"type":"string","enum":["USD"]},"amountCharged":{"type":"string","pattern":"^\\d+\\.\\d{6}$","description":"Exact USD amount after the current plan discount, rounded once to a microdollar. This example uses the minimum count with no discount."},"billableItems":{"type":"integer","minimum":0}}}}}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"402":{"description":"Insufficient balance","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InsufficientBalanceError"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}}}}
```

## Get posts published by a user

> Returns posts published by an Instagram user. Use \`cursor\` to paginate or \`maxItems\` for a one-shot bulk pull (mutually exclusive).\
> \
> \*\*Price:\*\* $0.0003 per item\
> \
> \*\*Minimum charge:\*\* $0.003 per request (10 items)\
> \
> Your current plan discount applies to the total. The minimum applies once per request, even when fewer items are returned. maxItems limits requested results; it does not lower the minimum billable count.

```json
{"openapi":"3.0.3","info":{"title":"Pullbay API","version":"2.0.0"},"tags":[{"name":"instagram","description":"Instagram: users, followers, posts, reels, stories, comments, hashtags, locations, audio, and search."}],"servers":[{"url":"https://api.pullbay.com"}],"security":[{"BearerAuth":[]}],"components":{"securitySchemes":{"BearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"JWT"}},"schemas":{"InstagramPost":{"type":"object","description":"An Instagram post (image, video, carousel, or reel).","properties":{"type":{"type":"string","description":"Always `post`. Use `isVideo` and `isCarousel` for the kind of post."},"id":{"type":"string"},"code":{"type":"string"},"url":{"type":"string"},"caption":{"type":"string","nullable":true},"createdAt":{"type":"string","format":"date-time"},"likeCount":{"type":"integer","nullable":true},"commentCount":{"type":"integer","nullable":true},"isAvailable":{"type":"boolean"},"isCarousel":{"type":"boolean"},"isVideo":{"type":"boolean"},"isPinned":{"type":"boolean"},"isPaidPartnership":{"type":"boolean"},"isLikeAndViewCountsDisabled":{"type":"boolean"},"owner":{"$ref":"#/components/schemas/InstagramPostOwner"},"coowners":{"type":"array","nullable":true,"items":{"$ref":"#/components/schemas/InstagramPostOwner"}},"taggedUsers":{"type":"array","nullable":true,"description":"Users tagged in the post. Not every source returns it.","items":{"$ref":"#/components/schemas/InstagramPostOwner"}},"location":{"type":"object","nullable":true,"additionalProperties":true},"image":{"type":"object","nullable":true,"additionalProperties":true},"video":{"type":"object","nullable":true,"additionalProperties":true},"audio":{"type":"object","nullable":true,"additionalProperties":true},"carouselMedia":{"type":"array","items":{"type":"object","additionalProperties":true}}}},"InstagramPostOwner":{"type":"object","description":"Lightweight user reference embedded in posts and stories.","properties":{"id":{"type":"string"},"username":{"type":"string"},"fullName":{"type":"string","nullable":true},"profilePicUrl":{"type":"string"},"isVerified":{"type":"boolean"},"isPrivate":{"type":"boolean"}}},"Pagination":{"type":"object","properties":{"page":{"type":"integer","nullable":true},"hasNextPage":{"type":"boolean","nullable":true},"cursor":{"type":"string","nullable":true},"offset":{"type":"string","nullable":true,"description":"Numeric offset string for offset-paginated endpoints (e.g. Google Maps place search)."}}},"ErrorEnvelope":{"type":"object","properties":{"requestId":{"type":"string","format":"uuid"},"status":{"type":"integer"},"message":{"type":"string","description":"Human-readable summary. For `VALIDATION_ERROR`, the first entry's message in `error.details`, or `Invalid request.` when `details` is empty."},"success":{"type":"boolean"},"error":{"type":"object","properties":{"code":{"type":"string"},"details":{"type":"array","description":"Present on `VALIDATION_ERROR`. One entry per failed rule, so a parameter can appear more than once. Empty when the request could not be checked field by field.","items":{"$ref":"#/components/schemas/ValidationErrorDetail"}}}}}},"ValidationErrorDetail":{"type":"object","required":["field","message"],"properties":{"field":{"type":"string","nullable":true,"description":"The invalid parameter, or `null` when a rule covers several parameters (e.g. `cursor` with `maxItems`)."},"message":{"type":"string"},"minimum":{"type":"number","description":"Smallest allowed value. Present on a number range error when the parameter has a lower bound."},"maximum":{"type":"number","description":"Largest allowed value. Present on a number range error when the parameter has an upper bound."},"minLength":{"type":"integer","description":"Fewest allowed characters. Present on a string length error when the parameter has a minimum length."},"maxLength":{"type":"integer","description":"Most allowed characters. Present on a string length error when the parameter has a maximum length."}}},"InsufficientBalanceError":{"type":"object","description":"The available USD balance cannot cover this request. No partial charge is retained. Add funds or reduce the requested result count, subject to the endpoint minimum.","required":["status","success","error"],"properties":{"requestId":{"type":"string","format":"uuid"},"status":{"type":"integer","enum":[402]},"success":{"type":"boolean","enum":[false]},"message":{"type":"string"},"error":{"type":"object","required":["code"],"properties":{"code":{"type":"string","enum":["TEAM_INSUFFICIENT_BALANCE"]}}}}}}},"paths":{"/instagram/user/{id}/posts":{"get":{"operationId":"getInstagramUserPosts","summary":"Get posts published by a user","description":"Returns posts published by an Instagram user. Use `cursor` to paginate or `maxItems` for a one-shot bulk pull (mutually exclusive).\n\n**Price:** $0.0003 per item\n\n**Minimum charge:** $0.003 per request (10 items)\n\nYour current plan discount applies to the total. The minimum applies once per request, even when fewer items are returned. maxItems limits requested results; it does not lower the minimum billable count.","tags":["instagram"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":100}},{"name":"maxItems","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":200}},{"name":"cursor","in":"query","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful request","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string","format":"uuid"},"status":{"type":"integer"},"message":{"type":"string"},"success":{"type":"boolean"},"data":{"type":"array","items":{"$ref":"#/components/schemas/InstagramPost"}},"pagination":{"$ref":"#/components/schemas/Pagination"},"pricing":{"type":"object","required":["currency","amountCharged","billableItems"],"properties":{"currency":{"type":"string","enum":["USD"]},"amountCharged":{"type":"string","pattern":"^\\d+\\.\\d{6}$","description":"Exact USD amount after the current plan discount, rounded once to a microdollar. This example uses the minimum count with no discount."},"billableItems":{"type":"integer","minimum":0}}}}}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"402":{"description":"Insufficient balance","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InsufficientBalanceError"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}}}}
```

## Get posts a user is tagged in

> Returns posts where the Instagram user is tagged. Use \`cursor\` to paginate or \`maxItems\` for a one-shot bulk pull (mutually exclusive).\
> \
> \*\*Price:\*\* $0.0003 per item\
> \
> \*\*Minimum charge:\*\* $0.003 per request (10 items)\
> \
> Your current plan discount applies to the total. The minimum applies once per request, even when fewer items are returned. maxItems limits requested results; it does not lower the minimum billable count.

```json
{"openapi":"3.0.3","info":{"title":"Pullbay API","version":"2.0.0"},"tags":[{"name":"instagram","description":"Instagram: users, followers, posts, reels, stories, comments, hashtags, locations, audio, and search."}],"servers":[{"url":"https://api.pullbay.com"}],"security":[{"BearerAuth":[]}],"components":{"securitySchemes":{"BearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"JWT"}},"schemas":{"InstagramPost":{"type":"object","description":"An Instagram post (image, video, carousel, or reel).","properties":{"type":{"type":"string","description":"Always `post`. Use `isVideo` and `isCarousel` for the kind of post."},"id":{"type":"string"},"code":{"type":"string"},"url":{"type":"string"},"caption":{"type":"string","nullable":true},"createdAt":{"type":"string","format":"date-time"},"likeCount":{"type":"integer","nullable":true},"commentCount":{"type":"integer","nullable":true},"isAvailable":{"type":"boolean"},"isCarousel":{"type":"boolean"},"isVideo":{"type":"boolean"},"isPinned":{"type":"boolean"},"isPaidPartnership":{"type":"boolean"},"isLikeAndViewCountsDisabled":{"type":"boolean"},"owner":{"$ref":"#/components/schemas/InstagramPostOwner"},"coowners":{"type":"array","nullable":true,"items":{"$ref":"#/components/schemas/InstagramPostOwner"}},"taggedUsers":{"type":"array","nullable":true,"description":"Users tagged in the post. Not every source returns it.","items":{"$ref":"#/components/schemas/InstagramPostOwner"}},"location":{"type":"object","nullable":true,"additionalProperties":true},"image":{"type":"object","nullable":true,"additionalProperties":true},"video":{"type":"object","nullable":true,"additionalProperties":true},"audio":{"type":"object","nullable":true,"additionalProperties":true},"carouselMedia":{"type":"array","items":{"type":"object","additionalProperties":true}}}},"InstagramPostOwner":{"type":"object","description":"Lightweight user reference embedded in posts and stories.","properties":{"id":{"type":"string"},"username":{"type":"string"},"fullName":{"type":"string","nullable":true},"profilePicUrl":{"type":"string"},"isVerified":{"type":"boolean"},"isPrivate":{"type":"boolean"}}},"Pagination":{"type":"object","properties":{"page":{"type":"integer","nullable":true},"hasNextPage":{"type":"boolean","nullable":true},"cursor":{"type":"string","nullable":true},"offset":{"type":"string","nullable":true,"description":"Numeric offset string for offset-paginated endpoints (e.g. Google Maps place search)."}}},"ErrorEnvelope":{"type":"object","properties":{"requestId":{"type":"string","format":"uuid"},"status":{"type":"integer"},"message":{"type":"string","description":"Human-readable summary. For `VALIDATION_ERROR`, the first entry's message in `error.details`, or `Invalid request.` when `details` is empty."},"success":{"type":"boolean"},"error":{"type":"object","properties":{"code":{"type":"string"},"details":{"type":"array","description":"Present on `VALIDATION_ERROR`. One entry per failed rule, so a parameter can appear more than once. Empty when the request could not be checked field by field.","items":{"$ref":"#/components/schemas/ValidationErrorDetail"}}}}}},"ValidationErrorDetail":{"type":"object","required":["field","message"],"properties":{"field":{"type":"string","nullable":true,"description":"The invalid parameter, or `null` when a rule covers several parameters (e.g. `cursor` with `maxItems`)."},"message":{"type":"string"},"minimum":{"type":"number","description":"Smallest allowed value. Present on a number range error when the parameter has a lower bound."},"maximum":{"type":"number","description":"Largest allowed value. Present on a number range error when the parameter has an upper bound."},"minLength":{"type":"integer","description":"Fewest allowed characters. Present on a string length error when the parameter has a minimum length."},"maxLength":{"type":"integer","description":"Most allowed characters. Present on a string length error when the parameter has a maximum length."}}},"InsufficientBalanceError":{"type":"object","description":"The available USD balance cannot cover this request. No partial charge is retained. Add funds or reduce the requested result count, subject to the endpoint minimum.","required":["status","success","error"],"properties":{"requestId":{"type":"string","format":"uuid"},"status":{"type":"integer","enum":[402]},"success":{"type":"boolean","enum":[false]},"message":{"type":"string"},"error":{"type":"object","required":["code"],"properties":{"code":{"type":"string","enum":["TEAM_INSUFFICIENT_BALANCE"]}}}}}}},"paths":{"/instagram/user/{id}/posts/tagged":{"get":{"operationId":"getInstagramUserTaggedPosts","summary":"Get posts a user is tagged in","description":"Returns posts where the Instagram user is tagged. Use `cursor` to paginate or `maxItems` for a one-shot bulk pull (mutually exclusive).\n\n**Price:** $0.0003 per item\n\n**Minimum charge:** $0.003 per request (10 items)\n\nYour current plan discount applies to the total. The minimum applies once per request, even when fewer items are returned. maxItems limits requested results; it does not lower the minimum billable count.","tags":["instagram"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":100}},{"name":"maxItems","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":200}},{"name":"cursor","in":"query","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful request","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string","format":"uuid"},"status":{"type":"integer"},"message":{"type":"string"},"success":{"type":"boolean"},"data":{"type":"array","items":{"$ref":"#/components/schemas/InstagramPost"}},"pagination":{"$ref":"#/components/schemas/Pagination"},"pricing":{"type":"object","required":["currency","amountCharged","billableItems"],"properties":{"currency":{"type":"string","enum":["USD"]},"amountCharged":{"type":"string","pattern":"^\\d+\\.\\d{6}$","description":"Exact USD amount after the current plan discount, rounded once to a microdollar. This example uses the minimum count with no discount."},"billableItems":{"type":"integer","minimum":0}}}}}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"402":{"description":"Insufficient balance","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InsufficientBalanceError"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}}}}
```

## Get reels published by a user

> Returns reels published by an Instagram user. Use \`cursor\` to paginate or \`maxItems\` for a one-shot bulk pull (mutually exclusive).\
> \
> \*\*Price:\*\* $0.0003 per item\
> \
> \*\*Minimum charge:\*\* $0.003 per request (10 items)\
> \
> Your current plan discount applies to the total. The minimum applies once per request, even when fewer items are returned. maxItems limits requested results; it does not lower the minimum billable count.

```json
{"openapi":"3.0.3","info":{"title":"Pullbay API","version":"2.0.0"},"tags":[{"name":"instagram","description":"Instagram: users, followers, posts, reels, stories, comments, hashtags, locations, audio, and search."}],"servers":[{"url":"https://api.pullbay.com"}],"security":[{"BearerAuth":[]}],"components":{"securitySchemes":{"BearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"JWT"}},"schemas":{"InstagramPost":{"type":"object","description":"An Instagram post (image, video, carousel, or reel).","properties":{"type":{"type":"string","description":"Always `post`. Use `isVideo` and `isCarousel` for the kind of post."},"id":{"type":"string"},"code":{"type":"string"},"url":{"type":"string"},"caption":{"type":"string","nullable":true},"createdAt":{"type":"string","format":"date-time"},"likeCount":{"type":"integer","nullable":true},"commentCount":{"type":"integer","nullable":true},"isAvailable":{"type":"boolean"},"isCarousel":{"type":"boolean"},"isVideo":{"type":"boolean"},"isPinned":{"type":"boolean"},"isPaidPartnership":{"type":"boolean"},"isLikeAndViewCountsDisabled":{"type":"boolean"},"owner":{"$ref":"#/components/schemas/InstagramPostOwner"},"coowners":{"type":"array","nullable":true,"items":{"$ref":"#/components/schemas/InstagramPostOwner"}},"taggedUsers":{"type":"array","nullable":true,"description":"Users tagged in the post. Not every source returns it.","items":{"$ref":"#/components/schemas/InstagramPostOwner"}},"location":{"type":"object","nullable":true,"additionalProperties":true},"image":{"type":"object","nullable":true,"additionalProperties":true},"video":{"type":"object","nullable":true,"additionalProperties":true},"audio":{"type":"object","nullable":true,"additionalProperties":true},"carouselMedia":{"type":"array","items":{"type":"object","additionalProperties":true}}}},"InstagramPostOwner":{"type":"object","description":"Lightweight user reference embedded in posts and stories.","properties":{"id":{"type":"string"},"username":{"type":"string"},"fullName":{"type":"string","nullable":true},"profilePicUrl":{"type":"string"},"isVerified":{"type":"boolean"},"isPrivate":{"type":"boolean"}}},"Pagination":{"type":"object","properties":{"page":{"type":"integer","nullable":true},"hasNextPage":{"type":"boolean","nullable":true},"cursor":{"type":"string","nullable":true},"offset":{"type":"string","nullable":true,"description":"Numeric offset string for offset-paginated endpoints (e.g. Google Maps place search)."}}},"ErrorEnvelope":{"type":"object","properties":{"requestId":{"type":"string","format":"uuid"},"status":{"type":"integer"},"message":{"type":"string","description":"Human-readable summary. For `VALIDATION_ERROR`, the first entry's message in `error.details`, or `Invalid request.` when `details` is empty."},"success":{"type":"boolean"},"error":{"type":"object","properties":{"code":{"type":"string"},"details":{"type":"array","description":"Present on `VALIDATION_ERROR`. One entry per failed rule, so a parameter can appear more than once. Empty when the request could not be checked field by field.","items":{"$ref":"#/components/schemas/ValidationErrorDetail"}}}}}},"ValidationErrorDetail":{"type":"object","required":["field","message"],"properties":{"field":{"type":"string","nullable":true,"description":"The invalid parameter, or `null` when a rule covers several parameters (e.g. `cursor` with `maxItems`)."},"message":{"type":"string"},"minimum":{"type":"number","description":"Smallest allowed value. Present on a number range error when the parameter has a lower bound."},"maximum":{"type":"number","description":"Largest allowed value. Present on a number range error when the parameter has an upper bound."},"minLength":{"type":"integer","description":"Fewest allowed characters. Present on a string length error when the parameter has a minimum length."},"maxLength":{"type":"integer","description":"Most allowed characters. Present on a string length error when the parameter has a maximum length."}}},"InsufficientBalanceError":{"type":"object","description":"The available USD balance cannot cover this request. No partial charge is retained. Add funds or reduce the requested result count, subject to the endpoint minimum.","required":["status","success","error"],"properties":{"requestId":{"type":"string","format":"uuid"},"status":{"type":"integer","enum":[402]},"success":{"type":"boolean","enum":[false]},"message":{"type":"string"},"error":{"type":"object","required":["code"],"properties":{"code":{"type":"string","enum":["TEAM_INSUFFICIENT_BALANCE"]}}}}}}},"paths":{"/instagram/user/{id}/reels":{"get":{"operationId":"getInstagramUserReels","summary":"Get reels published by a user","description":"Returns reels published by an Instagram user. Use `cursor` to paginate or `maxItems` for a one-shot bulk pull (mutually exclusive).\n\n**Price:** $0.0003 per item\n\n**Minimum charge:** $0.003 per request (10 items)\n\nYour current plan discount applies to the total. The minimum applies once per request, even when fewer items are returned. maxItems limits requested results; it does not lower the minimum billable count.","tags":["instagram"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":100}},{"name":"maxItems","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":200}},{"name":"cursor","in":"query","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful request","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string","format":"uuid"},"status":{"type":"integer"},"message":{"type":"string"},"success":{"type":"boolean"},"data":{"type":"array","items":{"$ref":"#/components/schemas/InstagramPost"}},"pagination":{"$ref":"#/components/schemas/Pagination"},"pricing":{"type":"object","required":["currency","amountCharged","billableItems"],"properties":{"currency":{"type":"string","enum":["USD"]},"amountCharged":{"type":"string","pattern":"^\\d+\\.\\d{6}$","description":"Exact USD amount after the current plan discount, rounded once to a microdollar. This example uses the minimum count with no discount."},"billableItems":{"type":"integer","minimum":0}}}}}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"402":{"description":"Insufficient balance","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InsufficientBalanceError"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}}}}
```

## Get active stories for a user

> Returns the user's currently-active Instagram stories (non-paginated).\
> \
> \*\*Price:\*\* $0.0003 per item\
> \
> \*\*Minimum charge:\*\* $0.003 per request (10 items)\
> \
> Your current plan discount applies to the total. The minimum applies once per request, even when fewer items are returned. maxItems limits requested results; it does not lower the minimum billable count.

```json
{"openapi":"3.0.3","info":{"title":"Pullbay API","version":"2.0.0"},"tags":[{"name":"instagram","description":"Instagram: users, followers, posts, reels, stories, comments, hashtags, locations, audio, and search."}],"servers":[{"url":"https://api.pullbay.com"}],"security":[{"BearerAuth":[]}],"components":{"securitySchemes":{"BearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"JWT"}},"schemas":{"InstagramStory":{"type":"object","description":"A single Instagram story slide.","properties":{"type":{"type":"string","description":"Always `story`. Use `isVideo` for the kind of slide."},"id":{"type":"string"},"code":{"type":"string"},"createdAt":{"type":"string","format":"date-time"},"expiringAt":{"type":"string","format":"date-time"},"duration":{"type":"number"},"hasAudio":{"type":"boolean"},"hasTranslation":{"type":"boolean"},"canReshare":{"type":"boolean"},"canReply":{"type":"boolean"},"isVideo":{"type":"boolean"},"owner":{"$ref":"#/components/schemas/InstagramPostOwner"},"coowners":{"type":"array","nullable":true,"items":{"$ref":"#/components/schemas/InstagramPostOwner"}},"image":{"type":"object","nullable":true,"additionalProperties":true},"video":{"type":"object","nullable":true,"additionalProperties":true},"audio":{"type":"object","nullable":true,"additionalProperties":true},"link":{"type":"object","nullable":true,"additionalProperties":true},"comments":{"type":"array","nullable":true,"items":{"type":"object","additionalProperties":true}},"mentions":{"type":"array","nullable":true,"items":{"type":"object","additionalProperties":true}},"hashtags":{"type":"array","nullable":true,"items":{"type":"object","additionalProperties":true}}}},"InstagramPostOwner":{"type":"object","description":"Lightweight user reference embedded in posts and stories.","properties":{"id":{"type":"string"},"username":{"type":"string"},"fullName":{"type":"string","nullable":true},"profilePicUrl":{"type":"string"},"isVerified":{"type":"boolean"},"isPrivate":{"type":"boolean"}}},"ErrorEnvelope":{"type":"object","properties":{"requestId":{"type":"string","format":"uuid"},"status":{"type":"integer"},"message":{"type":"string","description":"Human-readable summary. For `VALIDATION_ERROR`, the first entry's message in `error.details`, or `Invalid request.` when `details` is empty."},"success":{"type":"boolean"},"error":{"type":"object","properties":{"code":{"type":"string"},"details":{"type":"array","description":"Present on `VALIDATION_ERROR`. One entry per failed rule, so a parameter can appear more than once. Empty when the request could not be checked field by field.","items":{"$ref":"#/components/schemas/ValidationErrorDetail"}}}}}},"ValidationErrorDetail":{"type":"object","required":["field","message"],"properties":{"field":{"type":"string","nullable":true,"description":"The invalid parameter, or `null` when a rule covers several parameters (e.g. `cursor` with `maxItems`)."},"message":{"type":"string"},"minimum":{"type":"number","description":"Smallest allowed value. Present on a number range error when the parameter has a lower bound."},"maximum":{"type":"number","description":"Largest allowed value. Present on a number range error when the parameter has an upper bound."},"minLength":{"type":"integer","description":"Fewest allowed characters. Present on a string length error when the parameter has a minimum length."},"maxLength":{"type":"integer","description":"Most allowed characters. Present on a string length error when the parameter has a maximum length."}}},"InsufficientBalanceError":{"type":"object","description":"The available USD balance cannot cover this request. No partial charge is retained. Add funds or reduce the requested result count, subject to the endpoint minimum.","required":["status","success","error"],"properties":{"requestId":{"type":"string","format":"uuid"},"status":{"type":"integer","enum":[402]},"success":{"type":"boolean","enum":[false]},"message":{"type":"string"},"error":{"type":"object","required":["code"],"properties":{"code":{"type":"string","enum":["TEAM_INSUFFICIENT_BALANCE"]}}}}}}},"paths":{"/instagram/user/{id}/stories":{"get":{"operationId":"getInstagramUserStories","summary":"Get active stories for a user","description":"Returns the user's currently-active Instagram stories (non-paginated).\n\n**Price:** $0.0003 per item\n\n**Minimum charge:** $0.003 per request (10 items)\n\nYour current plan discount applies to the total. The minimum applies once per request, even when fewer items are returned. maxItems limits requested results; it does not lower the minimum billable count.","tags":["instagram"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":100}}],"responses":{"200":{"description":"Successful request","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string","format":"uuid"},"status":{"type":"integer"},"message":{"type":"string"},"success":{"type":"boolean"},"data":{"type":"array","items":{"$ref":"#/components/schemas/InstagramStory"}},"pricing":{"type":"object","required":["currency","amountCharged","billableItems"],"properties":{"currency":{"type":"string","enum":["USD"]},"amountCharged":{"type":"string","pattern":"^\\d+\\.\\d{6}$","description":"Exact USD amount after the current plan discount, rounded once to a microdollar. This example uses the minimum count with no discount."},"billableItems":{"type":"integer","minimum":0}}}}}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"402":{"description":"Insufficient balance","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InsufficientBalanceError"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}}}}
```

## Get a post by shortcode

> Returns a single Instagram post by its shortcode (the segment after \`/p/\` in the URL).\
> \
> \*\*Price:\*\* $0.0015 per item\
> \
> \*\*Minimum charge:\*\* $0.0015 per request (1 item)\
> \
> Your current plan discount applies to the total. The minimum applies once per request, even when fewer items are returned. maxItems limits requested results; it does not lower the minimum billable count.

```json
{"openapi":"3.0.3","info":{"title":"Pullbay API","version":"2.0.0"},"tags":[{"name":"instagram","description":"Instagram: users, followers, posts, reels, stories, comments, hashtags, locations, audio, and search."}],"servers":[{"url":"https://api.pullbay.com"}],"security":[{"BearerAuth":[]}],"components":{"securitySchemes":{"BearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"JWT"}},"schemas":{"InstagramPost":{"type":"object","description":"An Instagram post (image, video, carousel, or reel).","properties":{"type":{"type":"string","description":"Always `post`. Use `isVideo` and `isCarousel` for the kind of post."},"id":{"type":"string"},"code":{"type":"string"},"url":{"type":"string"},"caption":{"type":"string","nullable":true},"createdAt":{"type":"string","format":"date-time"},"likeCount":{"type":"integer","nullable":true},"commentCount":{"type":"integer","nullable":true},"isAvailable":{"type":"boolean"},"isCarousel":{"type":"boolean"},"isVideo":{"type":"boolean"},"isPinned":{"type":"boolean"},"isPaidPartnership":{"type":"boolean"},"isLikeAndViewCountsDisabled":{"type":"boolean"},"owner":{"$ref":"#/components/schemas/InstagramPostOwner"},"coowners":{"type":"array","nullable":true,"items":{"$ref":"#/components/schemas/InstagramPostOwner"}},"taggedUsers":{"type":"array","nullable":true,"description":"Users tagged in the post. Not every source returns it.","items":{"$ref":"#/components/schemas/InstagramPostOwner"}},"location":{"type":"object","nullable":true,"additionalProperties":true},"image":{"type":"object","nullable":true,"additionalProperties":true},"video":{"type":"object","nullable":true,"additionalProperties":true},"audio":{"type":"object","nullable":true,"additionalProperties":true},"carouselMedia":{"type":"array","items":{"type":"object","additionalProperties":true}}}},"InstagramPostOwner":{"type":"object","description":"Lightweight user reference embedded in posts and stories.","properties":{"id":{"type":"string"},"username":{"type":"string"},"fullName":{"type":"string","nullable":true},"profilePicUrl":{"type":"string"},"isVerified":{"type":"boolean"},"isPrivate":{"type":"boolean"}}},"ErrorEnvelope":{"type":"object","properties":{"requestId":{"type":"string","format":"uuid"},"status":{"type":"integer"},"message":{"type":"string","description":"Human-readable summary. For `VALIDATION_ERROR`, the first entry's message in `error.details`, or `Invalid request.` when `details` is empty."},"success":{"type":"boolean"},"error":{"type":"object","properties":{"code":{"type":"string"},"details":{"type":"array","description":"Present on `VALIDATION_ERROR`. One entry per failed rule, so a parameter can appear more than once. Empty when the request could not be checked field by field.","items":{"$ref":"#/components/schemas/ValidationErrorDetail"}}}}}},"ValidationErrorDetail":{"type":"object","required":["field","message"],"properties":{"field":{"type":"string","nullable":true,"description":"The invalid parameter, or `null` when a rule covers several parameters (e.g. `cursor` with `maxItems`)."},"message":{"type":"string"},"minimum":{"type":"number","description":"Smallest allowed value. Present on a number range error when the parameter has a lower bound."},"maximum":{"type":"number","description":"Largest allowed value. Present on a number range error when the parameter has an upper bound."},"minLength":{"type":"integer","description":"Fewest allowed characters. Present on a string length error when the parameter has a minimum length."},"maxLength":{"type":"integer","description":"Most allowed characters. Present on a string length error when the parameter has a maximum length."}}},"InsufficientBalanceError":{"type":"object","description":"The available USD balance cannot cover this request. No partial charge is retained. Add funds or reduce the requested result count, subject to the endpoint minimum.","required":["status","success","error"],"properties":{"requestId":{"type":"string","format":"uuid"},"status":{"type":"integer","enum":[402]},"success":{"type":"boolean","enum":[false]},"message":{"type":"string"},"error":{"type":"object","required":["code"],"properties":{"code":{"type":"string","enum":["TEAM_INSUFFICIENT_BALANCE"]}}}}}}},"paths":{"/instagram/post/code/{code}":{"get":{"operationId":"getInstagramPostByCode","summary":"Get a post by shortcode","description":"Returns a single Instagram post by its shortcode (the segment after `/p/` in the URL).\n\n**Price:** $0.0015 per item\n\n**Minimum charge:** $0.0015 per request (1 item)\n\nYour current plan discount applies to the total. The minimum applies once per request, even when fewer items are returned. maxItems limits requested results; it does not lower the minimum billable count.","tags":["instagram"],"parameters":[{"name":"code","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":100}}],"responses":{"200":{"description":"Successful request","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string","format":"uuid"},"status":{"type":"integer"},"message":{"type":"string"},"success":{"type":"boolean"},"data":{"type":"array","items":{"$ref":"#/components/schemas/InstagramPost"}},"pricing":{"type":"object","required":["currency","amountCharged","billableItems"],"properties":{"currency":{"type":"string","enum":["USD"]},"amountCharged":{"type":"string","pattern":"^\\d+\\.\\d{6}$","description":"Exact USD amount after the current plan discount, rounded once to a microdollar. This example uses the minimum count with no discount."},"billableItems":{"type":"integer","minimum":0}}}}}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"402":{"description":"Insufficient balance","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InsufficientBalanceError"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}}}}
```

## Get comments on a post

> Returns comments on an Instagram post. Use \`cursor\` to paginate or \`maxItems\` for a one-shot bulk pull (mutually exclusive).\
> \
> \*\*Price:\*\* $0.0003 per item\
> \
> \*\*Minimum charge:\*\* $0.003 per request (10 items)\
> \
> Your current plan discount applies to the total. The minimum applies once per request, even when fewer items are returned. maxItems limits requested results; it does not lower the minimum billable count.

```json
{"openapi":"3.0.3","info":{"title":"Pullbay API","version":"2.0.0"},"tags":[{"name":"instagram","description":"Instagram: users, followers, posts, reels, stories, comments, hashtags, locations, audio, and search."}],"servers":[{"url":"https://api.pullbay.com"}],"security":[{"BearerAuth":[]}],"components":{"securitySchemes":{"BearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"JWT"}},"schemas":{"InstagramComment":{"type":"object","description":"A comment on an Instagram post, or a reply to a comment (`type` is `reply`).","properties":{"type":{"type":"string"},"id":{"type":"string"},"userId":{"type":"string"},"message":{"type":"string"},"media":{"type":"array","description":"The GIF attached to the comment. Empty when the comment has no GIF.","items":{"type":"object","properties":{"id":{"type":"string"},"title":{"type":"string","nullable":true},"username":{"type":"string","nullable":true},"isSticker":{"type":"boolean","nullable":true},"url":{"type":"string","description":"The GIF file."},"mp4":{"type":"string","nullable":true},"webp":{"type":"string","nullable":true}}}},"createdAt":{"type":"string","format":"date-time"},"likeCount":{"type":"integer"},"replyCount":{"type":"integer"},"hasReply":{"type":"boolean"},"isRanked":{"type":"boolean"},"user":{"type":"object","additionalProperties":true,"properties":{"id":{"type":"string"},"username":{"type":"string"},"fullName":{"type":"string"},"profilePicUrl":{"type":"string"},"isPrivate":{"type":"boolean"},"isVerified":{"type":"boolean"}}}}},"Pagination":{"type":"object","properties":{"page":{"type":"integer","nullable":true},"hasNextPage":{"type":"boolean","nullable":true},"cursor":{"type":"string","nullable":true},"offset":{"type":"string","nullable":true,"description":"Numeric offset string for offset-paginated endpoints (e.g. Google Maps place search)."}}},"ErrorEnvelope":{"type":"object","properties":{"requestId":{"type":"string","format":"uuid"},"status":{"type":"integer"},"message":{"type":"string","description":"Human-readable summary. For `VALIDATION_ERROR`, the first entry's message in `error.details`, or `Invalid request.` when `details` is empty."},"success":{"type":"boolean"},"error":{"type":"object","properties":{"code":{"type":"string"},"details":{"type":"array","description":"Present on `VALIDATION_ERROR`. One entry per failed rule, so a parameter can appear more than once. Empty when the request could not be checked field by field.","items":{"$ref":"#/components/schemas/ValidationErrorDetail"}}}}}},"ValidationErrorDetail":{"type":"object","required":["field","message"],"properties":{"field":{"type":"string","nullable":true,"description":"The invalid parameter, or `null` when a rule covers several parameters (e.g. `cursor` with `maxItems`)."},"message":{"type":"string"},"minimum":{"type":"number","description":"Smallest allowed value. Present on a number range error when the parameter has a lower bound."},"maximum":{"type":"number","description":"Largest allowed value. Present on a number range error when the parameter has an upper bound."},"minLength":{"type":"integer","description":"Fewest allowed characters. Present on a string length error when the parameter has a minimum length."},"maxLength":{"type":"integer","description":"Most allowed characters. Present on a string length error when the parameter has a maximum length."}}},"InsufficientBalanceError":{"type":"object","description":"The available USD balance cannot cover this request. No partial charge is retained. Add funds or reduce the requested result count, subject to the endpoint minimum.","required":["status","success","error"],"properties":{"requestId":{"type":"string","format":"uuid"},"status":{"type":"integer","enum":[402]},"success":{"type":"boolean","enum":[false]},"message":{"type":"string"},"error":{"type":"object","required":["code"],"properties":{"code":{"type":"string","enum":["TEAM_INSUFFICIENT_BALANCE"]}}}}}}},"paths":{"/instagram/post/{id}/comments":{"get":{"operationId":"getInstagramPostComments","summary":"Get comments on a post","description":"Returns comments on an Instagram post. Use `cursor` to paginate or `maxItems` for a one-shot bulk pull (mutually exclusive).\n\n**Price:** $0.0003 per item\n\n**Minimum charge:** $0.003 per request (10 items)\n\nYour current plan discount applies to the total. The minimum applies once per request, even when fewer items are returned. maxItems limits requested results; it does not lower the minimum billable count.","tags":["instagram"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":100}},{"name":"maxItems","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":500}},{"name":"cursor","in":"query","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful request","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string","format":"uuid"},"status":{"type":"integer"},"message":{"type":"string"},"success":{"type":"boolean"},"data":{"type":"array","items":{"$ref":"#/components/schemas/InstagramComment"}},"pagination":{"$ref":"#/components/schemas/Pagination"},"pricing":{"type":"object","required":["currency","amountCharged","billableItems"],"properties":{"currency":{"type":"string","enum":["USD"]},"amountCharged":{"type":"string","pattern":"^\\d+\\.\\d{6}$","description":"Exact USD amount after the current plan discount, rounded once to a microdollar. This example uses the minimum count with no discount."},"billableItems":{"type":"integer","minimum":0}}}}}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"402":{"description":"Insufficient balance","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InsufficientBalanceError"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}}}}
```

## Get replies to a comment

> Returns replies to a comment on an Instagram post. Each reply has \`type\` set to \`reply\`. Use \`cursor\` to paginate or \`maxItems\` for a one-shot bulk pull (mutually exclusive).\
> \
> \*\*Price:\*\* $0.0003 per item\
> \
> \*\*Minimum charge:\*\* $0.003 per request (10 items)\
> \
> Your current plan discount applies to the total. The minimum applies once per request, even when fewer items are returned. maxItems limits requested results; it does not lower the minimum billable count.

```json
{"openapi":"3.0.3","info":{"title":"Pullbay API","version":"2.0.0"},"tags":[{"name":"instagram","description":"Instagram: users, followers, posts, reels, stories, comments, hashtags, locations, audio, and search."}],"servers":[{"url":"https://api.pullbay.com"}],"security":[{"BearerAuth":[]}],"components":{"securitySchemes":{"BearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"JWT"}},"schemas":{"InstagramComment":{"type":"object","description":"A comment on an Instagram post, or a reply to a comment (`type` is `reply`).","properties":{"type":{"type":"string"},"id":{"type":"string"},"userId":{"type":"string"},"message":{"type":"string"},"media":{"type":"array","description":"The GIF attached to the comment. Empty when the comment has no GIF.","items":{"type":"object","properties":{"id":{"type":"string"},"title":{"type":"string","nullable":true},"username":{"type":"string","nullable":true},"isSticker":{"type":"boolean","nullable":true},"url":{"type":"string","description":"The GIF file."},"mp4":{"type":"string","nullable":true},"webp":{"type":"string","nullable":true}}}},"createdAt":{"type":"string","format":"date-time"},"likeCount":{"type":"integer"},"replyCount":{"type":"integer"},"hasReply":{"type":"boolean"},"isRanked":{"type":"boolean"},"user":{"type":"object","additionalProperties":true,"properties":{"id":{"type":"string"},"username":{"type":"string"},"fullName":{"type":"string"},"profilePicUrl":{"type":"string"},"isPrivate":{"type":"boolean"},"isVerified":{"type":"boolean"}}}}},"Pagination":{"type":"object","properties":{"page":{"type":"integer","nullable":true},"hasNextPage":{"type":"boolean","nullable":true},"cursor":{"type":"string","nullable":true},"offset":{"type":"string","nullable":true,"description":"Numeric offset string for offset-paginated endpoints (e.g. Google Maps place search)."}}},"ErrorEnvelope":{"type":"object","properties":{"requestId":{"type":"string","format":"uuid"},"status":{"type":"integer"},"message":{"type":"string","description":"Human-readable summary. For `VALIDATION_ERROR`, the first entry's message in `error.details`, or `Invalid request.` when `details` is empty."},"success":{"type":"boolean"},"error":{"type":"object","properties":{"code":{"type":"string"},"details":{"type":"array","description":"Present on `VALIDATION_ERROR`. One entry per failed rule, so a parameter can appear more than once. Empty when the request could not be checked field by field.","items":{"$ref":"#/components/schemas/ValidationErrorDetail"}}}}}},"ValidationErrorDetail":{"type":"object","required":["field","message"],"properties":{"field":{"type":"string","nullable":true,"description":"The invalid parameter, or `null` when a rule covers several parameters (e.g. `cursor` with `maxItems`)."},"message":{"type":"string"},"minimum":{"type":"number","description":"Smallest allowed value. Present on a number range error when the parameter has a lower bound."},"maximum":{"type":"number","description":"Largest allowed value. Present on a number range error when the parameter has an upper bound."},"minLength":{"type":"integer","description":"Fewest allowed characters. Present on a string length error when the parameter has a minimum length."},"maxLength":{"type":"integer","description":"Most allowed characters. Present on a string length error when the parameter has a maximum length."}}},"InsufficientBalanceError":{"type":"object","description":"The available USD balance cannot cover this request. No partial charge is retained. Add funds or reduce the requested result count, subject to the endpoint minimum.","required":["status","success","error"],"properties":{"requestId":{"type":"string","format":"uuid"},"status":{"type":"integer","enum":[402]},"success":{"type":"boolean","enum":[false]},"message":{"type":"string"},"error":{"type":"object","required":["code"],"properties":{"code":{"type":"string","enum":["TEAM_INSUFFICIENT_BALANCE"]}}}}}}},"paths":{"/instagram/post/{id}/comments/{commentId}/replies":{"get":{"operationId":"getInstagramCommentReplies","summary":"Get replies to a comment","description":"Returns replies to a comment on an Instagram post. Each reply has `type` set to `reply`. Use `cursor` to paginate or `maxItems` for a one-shot bulk pull (mutually exclusive).\n\n**Price:** $0.0003 per item\n\n**Minimum charge:** $0.003 per request (10 items)\n\nYour current plan discount applies to the total. The minimum applies once per request, even when fewer items are returned. maxItems limits requested results; it does not lower the minimum billable count.","tags":["instagram"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":100}},{"name":"commentId","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":100}},{"name":"maxItems","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":500}},{"name":"cursor","in":"query","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful request","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string","format":"uuid"},"status":{"type":"integer"},"message":{"type":"string"},"success":{"type":"boolean"},"data":{"type":"array","items":{"$ref":"#/components/schemas/InstagramComment"}},"pagination":{"$ref":"#/components/schemas/Pagination"},"pricing":{"type":"object","required":["currency","amountCharged","billableItems"],"properties":{"currency":{"type":"string","enum":["USD"]},"amountCharged":{"type":"string","pattern":"^\\d+\\.\\d{6}$","description":"Exact USD amount after the current plan discount, rounded once to a microdollar. This example uses the minimum count with no discount."},"billableItems":{"type":"integer","minimum":0}}}}}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"402":{"description":"Insufficient balance","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InsufficientBalanceError"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}}}}
```

## Get posts for a hashtag

> Returns posts tagged with an Instagram hashtag (without \`#\`). Use \`cursor\` to paginate or \`maxItems\` for a one-shot bulk pull (mutually exclusive). \`sort\` is \`recent\` (default) or \`top\`; send the same \`sort\` with each \`cursor\`.\
> \
> \*\*Price:\*\* $0.0003 per item\
> \
> \*\*Minimum charge:\*\* $0.003 per request (10 items)\
> \
> Your current plan discount applies to the total. The minimum applies once per request, even when fewer items are returned. maxItems limits requested results; it does not lower the minimum billable count.

```json
{"openapi":"3.0.3","info":{"title":"Pullbay API","version":"2.0.0"},"tags":[{"name":"instagram","description":"Instagram: users, followers, posts, reels, stories, comments, hashtags, locations, audio, and search."}],"servers":[{"url":"https://api.pullbay.com"}],"security":[{"BearerAuth":[]}],"components":{"securitySchemes":{"BearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"JWT"}},"schemas":{"InstagramPost":{"type":"object","description":"An Instagram post (image, video, carousel, or reel).","properties":{"type":{"type":"string","description":"Always `post`. Use `isVideo` and `isCarousel` for the kind of post."},"id":{"type":"string"},"code":{"type":"string"},"url":{"type":"string"},"caption":{"type":"string","nullable":true},"createdAt":{"type":"string","format":"date-time"},"likeCount":{"type":"integer","nullable":true},"commentCount":{"type":"integer","nullable":true},"isAvailable":{"type":"boolean"},"isCarousel":{"type":"boolean"},"isVideo":{"type":"boolean"},"isPinned":{"type":"boolean"},"isPaidPartnership":{"type":"boolean"},"isLikeAndViewCountsDisabled":{"type":"boolean"},"owner":{"$ref":"#/components/schemas/InstagramPostOwner"},"coowners":{"type":"array","nullable":true,"items":{"$ref":"#/components/schemas/InstagramPostOwner"}},"taggedUsers":{"type":"array","nullable":true,"description":"Users tagged in the post. Not every source returns it.","items":{"$ref":"#/components/schemas/InstagramPostOwner"}},"location":{"type":"object","nullable":true,"additionalProperties":true},"image":{"type":"object","nullable":true,"additionalProperties":true},"video":{"type":"object","nullable":true,"additionalProperties":true},"audio":{"type":"object","nullable":true,"additionalProperties":true},"carouselMedia":{"type":"array","items":{"type":"object","additionalProperties":true}}}},"InstagramPostOwner":{"type":"object","description":"Lightweight user reference embedded in posts and stories.","properties":{"id":{"type":"string"},"username":{"type":"string"},"fullName":{"type":"string","nullable":true},"profilePicUrl":{"type":"string"},"isVerified":{"type":"boolean"},"isPrivate":{"type":"boolean"}}},"Pagination":{"type":"object","properties":{"page":{"type":"integer","nullable":true},"hasNextPage":{"type":"boolean","nullable":true},"cursor":{"type":"string","nullable":true},"offset":{"type":"string","nullable":true,"description":"Numeric offset string for offset-paginated endpoints (e.g. Google Maps place search)."}}},"ErrorEnvelope":{"type":"object","properties":{"requestId":{"type":"string","format":"uuid"},"status":{"type":"integer"},"message":{"type":"string","description":"Human-readable summary. For `VALIDATION_ERROR`, the first entry's message in `error.details`, or `Invalid request.` when `details` is empty."},"success":{"type":"boolean"},"error":{"type":"object","properties":{"code":{"type":"string"},"details":{"type":"array","description":"Present on `VALIDATION_ERROR`. One entry per failed rule, so a parameter can appear more than once. Empty when the request could not be checked field by field.","items":{"$ref":"#/components/schemas/ValidationErrorDetail"}}}}}},"ValidationErrorDetail":{"type":"object","required":["field","message"],"properties":{"field":{"type":"string","nullable":true,"description":"The invalid parameter, or `null` when a rule covers several parameters (e.g. `cursor` with `maxItems`)."},"message":{"type":"string"},"minimum":{"type":"number","description":"Smallest allowed value. Present on a number range error when the parameter has a lower bound."},"maximum":{"type":"number","description":"Largest allowed value. Present on a number range error when the parameter has an upper bound."},"minLength":{"type":"integer","description":"Fewest allowed characters. Present on a string length error when the parameter has a minimum length."},"maxLength":{"type":"integer","description":"Most allowed characters. Present on a string length error when the parameter has a maximum length."}}},"InsufficientBalanceError":{"type":"object","description":"The available USD balance cannot cover this request. No partial charge is retained. Add funds or reduce the requested result count, subject to the endpoint minimum.","required":["status","success","error"],"properties":{"requestId":{"type":"string","format":"uuid"},"status":{"type":"integer","enum":[402]},"success":{"type":"boolean","enum":[false]},"message":{"type":"string"},"error":{"type":"object","required":["code"],"properties":{"code":{"type":"string","enum":["TEAM_INSUFFICIENT_BALANCE"]}}}}}}},"paths":{"/instagram/hashtag/{name}/posts":{"get":{"operationId":"getInstagramHashtagPosts","summary":"Get posts for a hashtag","description":"Returns posts tagged with an Instagram hashtag (without `#`). Use `cursor` to paginate or `maxItems` for a one-shot bulk pull (mutually exclusive). `sort` is `recent` (default) or `top`; send the same `sort` with each `cursor`.\n\n**Price:** $0.0003 per item\n\n**Minimum charge:** $0.003 per request (10 items)\n\nYour current plan discount applies to the total. The minimum applies once per request, even when fewer items are returned. maxItems limits requested results; it does not lower the minimum billable count.","tags":["instagram"],"parameters":[{"name":"name","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":100}},{"name":"sort","in":"query","required":false,"schema":{"type":"string","enum":["recent","top"]}},{"name":"maxItems","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":200}},{"name":"cursor","in":"query","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful request","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string","format":"uuid"},"status":{"type":"integer"},"message":{"type":"string"},"success":{"type":"boolean"},"data":{"type":"array","items":{"$ref":"#/components/schemas/InstagramPost"}},"pagination":{"$ref":"#/components/schemas/Pagination"},"pricing":{"type":"object","required":["currency","amountCharged","billableItems"],"properties":{"currency":{"type":"string","enum":["USD"]},"amountCharged":{"type":"string","pattern":"^\\d+\\.\\d{6}$","description":"Exact USD amount after the current plan discount, rounded once to a microdollar. This example uses the minimum count with no discount."},"billableItems":{"type":"integer","minimum":0}}}}}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"402":{"description":"Insufficient balance","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InsufficientBalanceError"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}}}}
```

## Get reels for a hashtag

> Returns reels tagged with an Instagram hashtag (without \`#\`). Use \`cursor\` to paginate or \`maxItems\` for a one-shot bulk pull (mutually exclusive). A page can occasionally be empty while \`hasNextPage\` is still \`true\`; keep paging to get more reels.\
> \
> \*\*Price:\*\* $0.0003 per item\
> \
> \*\*Minimum charge:\*\* $0.003 per request (10 items)\
> \
> Your current plan discount applies to the total. The minimum applies once per request, even when fewer items are returned. maxItems limits requested results; it does not lower the minimum billable count.

```json
{"openapi":"3.0.3","info":{"title":"Pullbay API","version":"2.0.0"},"tags":[{"name":"instagram","description":"Instagram: users, followers, posts, reels, stories, comments, hashtags, locations, audio, and search."}],"servers":[{"url":"https://api.pullbay.com"}],"security":[{"BearerAuth":[]}],"components":{"securitySchemes":{"BearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"JWT"}},"schemas":{"InstagramPost":{"type":"object","description":"An Instagram post (image, video, carousel, or reel).","properties":{"type":{"type":"string","description":"Always `post`. Use `isVideo` and `isCarousel` for the kind of post."},"id":{"type":"string"},"code":{"type":"string"},"url":{"type":"string"},"caption":{"type":"string","nullable":true},"createdAt":{"type":"string","format":"date-time"},"likeCount":{"type":"integer","nullable":true},"commentCount":{"type":"integer","nullable":true},"isAvailable":{"type":"boolean"},"isCarousel":{"type":"boolean"},"isVideo":{"type":"boolean"},"isPinned":{"type":"boolean"},"isPaidPartnership":{"type":"boolean"},"isLikeAndViewCountsDisabled":{"type":"boolean"},"owner":{"$ref":"#/components/schemas/InstagramPostOwner"},"coowners":{"type":"array","nullable":true,"items":{"$ref":"#/components/schemas/InstagramPostOwner"}},"taggedUsers":{"type":"array","nullable":true,"description":"Users tagged in the post. Not every source returns it.","items":{"$ref":"#/components/schemas/InstagramPostOwner"}},"location":{"type":"object","nullable":true,"additionalProperties":true},"image":{"type":"object","nullable":true,"additionalProperties":true},"video":{"type":"object","nullable":true,"additionalProperties":true},"audio":{"type":"object","nullable":true,"additionalProperties":true},"carouselMedia":{"type":"array","items":{"type":"object","additionalProperties":true}}}},"InstagramPostOwner":{"type":"object","description":"Lightweight user reference embedded in posts and stories.","properties":{"id":{"type":"string"},"username":{"type":"string"},"fullName":{"type":"string","nullable":true},"profilePicUrl":{"type":"string"},"isVerified":{"type":"boolean"},"isPrivate":{"type":"boolean"}}},"Pagination":{"type":"object","properties":{"page":{"type":"integer","nullable":true},"hasNextPage":{"type":"boolean","nullable":true},"cursor":{"type":"string","nullable":true},"offset":{"type":"string","nullable":true,"description":"Numeric offset string for offset-paginated endpoints (e.g. Google Maps place search)."}}},"ErrorEnvelope":{"type":"object","properties":{"requestId":{"type":"string","format":"uuid"},"status":{"type":"integer"},"message":{"type":"string","description":"Human-readable summary. For `VALIDATION_ERROR`, the first entry's message in `error.details`, or `Invalid request.` when `details` is empty."},"success":{"type":"boolean"},"error":{"type":"object","properties":{"code":{"type":"string"},"details":{"type":"array","description":"Present on `VALIDATION_ERROR`. One entry per failed rule, so a parameter can appear more than once. Empty when the request could not be checked field by field.","items":{"$ref":"#/components/schemas/ValidationErrorDetail"}}}}}},"ValidationErrorDetail":{"type":"object","required":["field","message"],"properties":{"field":{"type":"string","nullable":true,"description":"The invalid parameter, or `null` when a rule covers several parameters (e.g. `cursor` with `maxItems`)."},"message":{"type":"string"},"minimum":{"type":"number","description":"Smallest allowed value. Present on a number range error when the parameter has a lower bound."},"maximum":{"type":"number","description":"Largest allowed value. Present on a number range error when the parameter has an upper bound."},"minLength":{"type":"integer","description":"Fewest allowed characters. Present on a string length error when the parameter has a minimum length."},"maxLength":{"type":"integer","description":"Most allowed characters. Present on a string length error when the parameter has a maximum length."}}},"InsufficientBalanceError":{"type":"object","description":"The available USD balance cannot cover this request. No partial charge is retained. Add funds or reduce the requested result count, subject to the endpoint minimum.","required":["status","success","error"],"properties":{"requestId":{"type":"string","format":"uuid"},"status":{"type":"integer","enum":[402]},"success":{"type":"boolean","enum":[false]},"message":{"type":"string"},"error":{"type":"object","required":["code"],"properties":{"code":{"type":"string","enum":["TEAM_INSUFFICIENT_BALANCE"]}}}}}}},"paths":{"/instagram/hashtag/{name}/reels":{"get":{"operationId":"getInstagramHashtagReels","summary":"Get reels for a hashtag","description":"Returns reels tagged with an Instagram hashtag (without `#`). Use `cursor` to paginate or `maxItems` for a one-shot bulk pull (mutually exclusive). A page can occasionally be empty while `hasNextPage` is still `true`; keep paging to get more reels.\n\n**Price:** $0.0003 per item\n\n**Minimum charge:** $0.003 per request (10 items)\n\nYour current plan discount applies to the total. The minimum applies once per request, even when fewer items are returned. maxItems limits requested results; it does not lower the minimum billable count.","tags":["instagram"],"parameters":[{"name":"name","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":100}},{"name":"maxItems","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":200}},{"name":"cursor","in":"query","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful request","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string","format":"uuid"},"status":{"type":"integer"},"message":{"type":"string"},"success":{"type":"boolean"},"data":{"type":"array","items":{"$ref":"#/components/schemas/InstagramPost"}},"pagination":{"$ref":"#/components/schemas/Pagination"},"pricing":{"type":"object","required":["currency","amountCharged","billableItems"],"properties":{"currency":{"type":"string","enum":["USD"]},"amountCharged":{"type":"string","pattern":"^\\d+\\.\\d{6}$","description":"Exact USD amount after the current plan discount, rounded once to a microdollar. This example uses the minimum count with no discount."},"billableItems":{"type":"integer","minimum":0}}}}}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"402":{"description":"Insufficient balance","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InsufficientBalanceError"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}}}}
```

## Search users

> Returns Instagram users matching a name or username. Use \`cursor\` to paginate or \`maxItems\` for a one-shot bulk pull (mutually exclusive). Separate \`cursor\` pages can repeat accounts; \`maxItems\` drops repeats.\
> \
> \*\*Price:\*\* $0.0015 per item\
> \
> \*\*Minimum charge:\*\* $0.015 per request (10 items)\
> \
> Your current plan discount applies to the total. The minimum applies once per request, even when fewer items are returned. maxItems limits requested results; it does not lower the minimum billable count.

```json
{"openapi":"3.0.3","info":{"title":"Pullbay API","version":"2.0.0"},"tags":[{"name":"instagram","description":"Instagram: users, followers, posts, reels, stories, comments, hashtags, locations, audio, and search."}],"servers":[{"url":"https://api.pullbay.com"}],"security":[{"BearerAuth":[]}],"components":{"securitySchemes":{"BearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"JWT"}},"schemas":{"InstagramUserSummary":{"type":"object","description":"A short Instagram user profile, as returned by user search, followers and followings. Contact fields appear only when the account shares them.","properties":{"type":{"type":"string"},"isAvailable":{"type":"boolean"},"id":{"type":"string"},"username":{"type":"string"},"fullName":{"type":"string"},"profilePicUrl":{"type":"string"},"isPrivate":{"type":"boolean"},"isVerified":{"type":"boolean"},"biography":{"type":"string"},"website":{"type":"string"},"category":{"type":"string"},"cityName":{"type":"string"},"zip":{"type":"string"},"publicEmail":{"type":"string"},"contactPhoneNumber":{"type":"string"},"publicPhoneCountryCode":{"type":"string"},"publicPhoneNumber":{"type":"string"}}},"Pagination":{"type":"object","properties":{"page":{"type":"integer","nullable":true},"hasNextPage":{"type":"boolean","nullable":true},"cursor":{"type":"string","nullable":true},"offset":{"type":"string","nullable":true,"description":"Numeric offset string for offset-paginated endpoints (e.g. Google Maps place search)."}}},"ErrorEnvelope":{"type":"object","properties":{"requestId":{"type":"string","format":"uuid"},"status":{"type":"integer"},"message":{"type":"string","description":"Human-readable summary. For `VALIDATION_ERROR`, the first entry's message in `error.details`, or `Invalid request.` when `details` is empty."},"success":{"type":"boolean"},"error":{"type":"object","properties":{"code":{"type":"string"},"details":{"type":"array","description":"Present on `VALIDATION_ERROR`. One entry per failed rule, so a parameter can appear more than once. Empty when the request could not be checked field by field.","items":{"$ref":"#/components/schemas/ValidationErrorDetail"}}}}}},"ValidationErrorDetail":{"type":"object","required":["field","message"],"properties":{"field":{"type":"string","nullable":true,"description":"The invalid parameter, or `null` when a rule covers several parameters (e.g. `cursor` with `maxItems`)."},"message":{"type":"string"},"minimum":{"type":"number","description":"Smallest allowed value. Present on a number range error when the parameter has a lower bound."},"maximum":{"type":"number","description":"Largest allowed value. Present on a number range error when the parameter has an upper bound."},"minLength":{"type":"integer","description":"Fewest allowed characters. Present on a string length error when the parameter has a minimum length."},"maxLength":{"type":"integer","description":"Most allowed characters. Present on a string length error when the parameter has a maximum length."}}},"InsufficientBalanceError":{"type":"object","description":"The available USD balance cannot cover this request. No partial charge is retained. Add funds or reduce the requested result count, subject to the endpoint minimum.","required":["status","success","error"],"properties":{"requestId":{"type":"string","format":"uuid"},"status":{"type":"integer","enum":[402]},"success":{"type":"boolean","enum":[false]},"message":{"type":"string"},"error":{"type":"object","required":["code"],"properties":{"code":{"type":"string","enum":["TEAM_INSUFFICIENT_BALANCE"]}}}}}}},"paths":{"/instagram/user/search":{"get":{"operationId":"searchInstagramUsers","summary":"Search users","description":"Returns Instagram users matching a name or username. Use `cursor` to paginate or `maxItems` for a one-shot bulk pull (mutually exclusive). Separate `cursor` pages can repeat accounts; `maxItems` drops repeats.\n\n**Price:** $0.0015 per item\n\n**Minimum charge:** $0.015 per request (10 items)\n\nYour current plan discount applies to the total. The minimum applies once per request, even when fewer items are returned. maxItems limits requested results; it does not lower the minimum billable count.","tags":["instagram"],"parameters":[{"name":"query","in":"query","required":true,"schema":{"type":"string","minLength":1,"maxLength":100}},{"name":"maxItems","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":200}},{"name":"cursor","in":"query","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful request","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string","format":"uuid"},"status":{"type":"integer"},"message":{"type":"string"},"success":{"type":"boolean"},"data":{"type":"array","items":{"$ref":"#/components/schemas/InstagramUserSummary"}},"pagination":{"$ref":"#/components/schemas/Pagination"},"pricing":{"type":"object","required":["currency","amountCharged","billableItems"],"properties":{"currency":{"type":"string","enum":["USD"]},"amountCharged":{"type":"string","pattern":"^\\d+\\.\\d{6}$","description":"Exact USD amount after the current plan discount, rounded once to a microdollar. This example uses the minimum count with no discount."},"billableItems":{"type":"integer","minimum":0}}}}}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"402":{"description":"Insufficient balance","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InsufficientBalanceError"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}}}}
```

## Get followers of a user

> Returns accounts that follow an Instagram user. Use \`cursor\` to paginate or \`maxItems\` for a one-shot bulk pull (mutually exclusive). An unknown user returns \`\[{ "notFound": true }]\` and is charged the minimum.\
> \
> \*\*Price:\*\* $0.0005 per item\
> \
> \*\*Minimum charge:\*\* $0.005 per request (10 items)\
> \
> Your current plan discount applies to the total. The minimum applies once per request, even when fewer items are returned. maxItems limits requested results; it does not lower the minimum billable count.

```json
{"openapi":"3.0.3","info":{"title":"Pullbay API","version":"2.0.0"},"tags":[{"name":"instagram","description":"Instagram: users, followers, posts, reels, stories, comments, hashtags, locations, audio, and search."}],"servers":[{"url":"https://api.pullbay.com"}],"security":[{"BearerAuth":[]}],"components":{"securitySchemes":{"BearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"JWT"}},"schemas":{"InstagramUserSummary":{"type":"object","description":"A short Instagram user profile, as returned by user search, followers and followings. Contact fields appear only when the account shares them.","properties":{"type":{"type":"string"},"isAvailable":{"type":"boolean"},"id":{"type":"string"},"username":{"type":"string"},"fullName":{"type":"string"},"profilePicUrl":{"type":"string"},"isPrivate":{"type":"boolean"},"isVerified":{"type":"boolean"},"biography":{"type":"string"},"website":{"type":"string"},"category":{"type":"string"},"cityName":{"type":"string"},"zip":{"type":"string"},"publicEmail":{"type":"string"},"contactPhoneNumber":{"type":"string"},"publicPhoneCountryCode":{"type":"string"},"publicPhoneNumber":{"type":"string"}}},"NotFound":{"type":"object","description":"Returned as the only record in `data` when the requested user, post or other item does not exist. The request is still charged the minimum.","required":["notFound"],"properties":{"notFound":{"type":"boolean","enum":[true]}}},"Pagination":{"type":"object","properties":{"page":{"type":"integer","nullable":true},"hasNextPage":{"type":"boolean","nullable":true},"cursor":{"type":"string","nullable":true},"offset":{"type":"string","nullable":true,"description":"Numeric offset string for offset-paginated endpoints (e.g. Google Maps place search)."}}},"ErrorEnvelope":{"type":"object","properties":{"requestId":{"type":"string","format":"uuid"},"status":{"type":"integer"},"message":{"type":"string","description":"Human-readable summary. For `VALIDATION_ERROR`, the first entry's message in `error.details`, or `Invalid request.` when `details` is empty."},"success":{"type":"boolean"},"error":{"type":"object","properties":{"code":{"type":"string"},"details":{"type":"array","description":"Present on `VALIDATION_ERROR`. One entry per failed rule, so a parameter can appear more than once. Empty when the request could not be checked field by field.","items":{"$ref":"#/components/schemas/ValidationErrorDetail"}}}}}},"ValidationErrorDetail":{"type":"object","required":["field","message"],"properties":{"field":{"type":"string","nullable":true,"description":"The invalid parameter, or `null` when a rule covers several parameters (e.g. `cursor` with `maxItems`)."},"message":{"type":"string"},"minimum":{"type":"number","description":"Smallest allowed value. Present on a number range error when the parameter has a lower bound."},"maximum":{"type":"number","description":"Largest allowed value. Present on a number range error when the parameter has an upper bound."},"minLength":{"type":"integer","description":"Fewest allowed characters. Present on a string length error when the parameter has a minimum length."},"maxLength":{"type":"integer","description":"Most allowed characters. Present on a string length error when the parameter has a maximum length."}}},"InsufficientBalanceError":{"type":"object","description":"The available USD balance cannot cover this request. No partial charge is retained. Add funds or reduce the requested result count, subject to the endpoint minimum.","required":["status","success","error"],"properties":{"requestId":{"type":"string","format":"uuid"},"status":{"type":"integer","enum":[402]},"success":{"type":"boolean","enum":[false]},"message":{"type":"string"},"error":{"type":"object","required":["code"],"properties":{"code":{"type":"string","enum":["TEAM_INSUFFICIENT_BALANCE"]}}}}}}},"paths":{"/instagram/user/{id}/followers":{"get":{"operationId":"getInstagramUserFollowers","summary":"Get followers of a user","description":"Returns accounts that follow an Instagram user. Use `cursor` to paginate or `maxItems` for a one-shot bulk pull (mutually exclusive). An unknown user returns `[{ \"notFound\": true }]` and is charged the minimum.\n\n**Price:** $0.0005 per item\n\n**Minimum charge:** $0.005 per request (10 items)\n\nYour current plan discount applies to the total. The minimum applies once per request, even when fewer items are returned. maxItems limits requested results; it does not lower the minimum billable count.","tags":["instagram"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":100}},{"name":"maxItems","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":200}},{"name":"cursor","in":"query","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful request","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string","format":"uuid"},"status":{"type":"integer"},"message":{"type":"string"},"success":{"type":"boolean"},"data":{"type":"array","items":{"anyOf":[{"$ref":"#/components/schemas/InstagramUserSummary"},{"$ref":"#/components/schemas/NotFound"}]}},"pagination":{"$ref":"#/components/schemas/Pagination"},"pricing":{"type":"object","required":["currency","amountCharged","billableItems"],"properties":{"currency":{"type":"string","enum":["USD"]},"amountCharged":{"type":"string","pattern":"^\\d+\\.\\d{6}$","description":"Exact USD amount after the current plan discount, rounded once to a microdollar. This example uses the minimum count with no discount."},"billableItems":{"type":"integer","minimum":0}}}}}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"402":{"description":"Insufficient balance","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InsufficientBalanceError"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}}}}
```

## Get accounts a user follows

> Returns accounts an Instagram user follows. Use \`cursor\` to paginate or \`maxItems\` for a one-shot bulk pull (mutually exclusive). An unknown user returns \`\[{ "notFound": true }]\` and is charged the minimum.\
> \
> \*\*Price:\*\* $0.0005 per item\
> \
> \*\*Minimum charge:\*\* $0.005 per request (10 items)\
> \
> Your current plan discount applies to the total. The minimum applies once per request, even when fewer items are returned. maxItems limits requested results; it does not lower the minimum billable count.

```json
{"openapi":"3.0.3","info":{"title":"Pullbay API","version":"2.0.0"},"tags":[{"name":"instagram","description":"Instagram: users, followers, posts, reels, stories, comments, hashtags, locations, audio, and search."}],"servers":[{"url":"https://api.pullbay.com"}],"security":[{"BearerAuth":[]}],"components":{"securitySchemes":{"BearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"JWT"}},"schemas":{"InstagramUserSummary":{"type":"object","description":"A short Instagram user profile, as returned by user search, followers and followings. Contact fields appear only when the account shares them.","properties":{"type":{"type":"string"},"isAvailable":{"type":"boolean"},"id":{"type":"string"},"username":{"type":"string"},"fullName":{"type":"string"},"profilePicUrl":{"type":"string"},"isPrivate":{"type":"boolean"},"isVerified":{"type":"boolean"},"biography":{"type":"string"},"website":{"type":"string"},"category":{"type":"string"},"cityName":{"type":"string"},"zip":{"type":"string"},"publicEmail":{"type":"string"},"contactPhoneNumber":{"type":"string"},"publicPhoneCountryCode":{"type":"string"},"publicPhoneNumber":{"type":"string"}}},"NotFound":{"type":"object","description":"Returned as the only record in `data` when the requested user, post or other item does not exist. The request is still charged the minimum.","required":["notFound"],"properties":{"notFound":{"type":"boolean","enum":[true]}}},"Pagination":{"type":"object","properties":{"page":{"type":"integer","nullable":true},"hasNextPage":{"type":"boolean","nullable":true},"cursor":{"type":"string","nullable":true},"offset":{"type":"string","nullable":true,"description":"Numeric offset string for offset-paginated endpoints (e.g. Google Maps place search)."}}},"ErrorEnvelope":{"type":"object","properties":{"requestId":{"type":"string","format":"uuid"},"status":{"type":"integer"},"message":{"type":"string","description":"Human-readable summary. For `VALIDATION_ERROR`, the first entry's message in `error.details`, or `Invalid request.` when `details` is empty."},"success":{"type":"boolean"},"error":{"type":"object","properties":{"code":{"type":"string"},"details":{"type":"array","description":"Present on `VALIDATION_ERROR`. One entry per failed rule, so a parameter can appear more than once. Empty when the request could not be checked field by field.","items":{"$ref":"#/components/schemas/ValidationErrorDetail"}}}}}},"ValidationErrorDetail":{"type":"object","required":["field","message"],"properties":{"field":{"type":"string","nullable":true,"description":"The invalid parameter, or `null` when a rule covers several parameters (e.g. `cursor` with `maxItems`)."},"message":{"type":"string"},"minimum":{"type":"number","description":"Smallest allowed value. Present on a number range error when the parameter has a lower bound."},"maximum":{"type":"number","description":"Largest allowed value. Present on a number range error when the parameter has an upper bound."},"minLength":{"type":"integer","description":"Fewest allowed characters. Present on a string length error when the parameter has a minimum length."},"maxLength":{"type":"integer","description":"Most allowed characters. Present on a string length error when the parameter has a maximum length."}}},"InsufficientBalanceError":{"type":"object","description":"The available USD balance cannot cover this request. No partial charge is retained. Add funds or reduce the requested result count, subject to the endpoint minimum.","required":["status","success","error"],"properties":{"requestId":{"type":"string","format":"uuid"},"status":{"type":"integer","enum":[402]},"success":{"type":"boolean","enum":[false]},"message":{"type":"string"},"error":{"type":"object","required":["code"],"properties":{"code":{"type":"string","enum":["TEAM_INSUFFICIENT_BALANCE"]}}}}}}},"paths":{"/instagram/user/{id}/followings":{"get":{"operationId":"getInstagramUserFollowings","summary":"Get accounts a user follows","description":"Returns accounts an Instagram user follows. Use `cursor` to paginate or `maxItems` for a one-shot bulk pull (mutually exclusive). An unknown user returns `[{ \"notFound\": true }]` and is charged the minimum.\n\n**Price:** $0.0005 per item\n\n**Minimum charge:** $0.005 per request (10 items)\n\nYour current plan discount applies to the total. The minimum applies once per request, even when fewer items are returned. maxItems limits requested results; it does not lower the minimum billable count.","tags":["instagram"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":100}},{"name":"maxItems","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":200}},{"name":"cursor","in":"query","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful request","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string","format":"uuid"},"status":{"type":"integer"},"message":{"type":"string"},"success":{"type":"boolean"},"data":{"type":"array","items":{"anyOf":[{"$ref":"#/components/schemas/InstagramUserSummary"},{"$ref":"#/components/schemas/NotFound"}]}},"pagination":{"$ref":"#/components/schemas/Pagination"},"pricing":{"type":"object","required":["currency","amountCharged","billableItems"],"properties":{"currency":{"type":"string","enum":["USD"]},"amountCharged":{"type":"string","pattern":"^\\d+\\.\\d{6}$","description":"Exact USD amount after the current plan discount, rounded once to a microdollar. This example uses the minimum count with no discount."},"billableItems":{"type":"integer","minimum":0}}}}}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"402":{"description":"Insufficient balance","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InsufficientBalanceError"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}}}}
```

## Get posts for a location

> Returns posts tagged with an Instagram location, by location ID. Use \`cursor\` to paginate or \`maxItems\` for a one-shot bulk pull (mutually exclusive). \`sort\` is \`recent\` (default) or \`top\`; send the same \`sort\` with each \`cursor\`.\
> \
> \*\*Price:\*\* $0.0003 per item\
> \
> \*\*Minimum charge:\*\* $0.003 per request (10 items)\
> \
> Your current plan discount applies to the total. The minimum applies once per request, even when fewer items are returned. maxItems limits requested results; it does not lower the minimum billable count.

```json
{"openapi":"3.0.3","info":{"title":"Pullbay API","version":"2.0.0"},"tags":[{"name":"instagram","description":"Instagram: users, followers, posts, reels, stories, comments, hashtags, locations, audio, and search."}],"servers":[{"url":"https://api.pullbay.com"}],"security":[{"BearerAuth":[]}],"components":{"securitySchemes":{"BearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"JWT"}},"schemas":{"InstagramPost":{"type":"object","description":"An Instagram post (image, video, carousel, or reel).","properties":{"type":{"type":"string","description":"Always `post`. Use `isVideo` and `isCarousel` for the kind of post."},"id":{"type":"string"},"code":{"type":"string"},"url":{"type":"string"},"caption":{"type":"string","nullable":true},"createdAt":{"type":"string","format":"date-time"},"likeCount":{"type":"integer","nullable":true},"commentCount":{"type":"integer","nullable":true},"isAvailable":{"type":"boolean"},"isCarousel":{"type":"boolean"},"isVideo":{"type":"boolean"},"isPinned":{"type":"boolean"},"isPaidPartnership":{"type":"boolean"},"isLikeAndViewCountsDisabled":{"type":"boolean"},"owner":{"$ref":"#/components/schemas/InstagramPostOwner"},"coowners":{"type":"array","nullable":true,"items":{"$ref":"#/components/schemas/InstagramPostOwner"}},"taggedUsers":{"type":"array","nullable":true,"description":"Users tagged in the post. Not every source returns it.","items":{"$ref":"#/components/schemas/InstagramPostOwner"}},"location":{"type":"object","nullable":true,"additionalProperties":true},"image":{"type":"object","nullable":true,"additionalProperties":true},"video":{"type":"object","nullable":true,"additionalProperties":true},"audio":{"type":"object","nullable":true,"additionalProperties":true},"carouselMedia":{"type":"array","items":{"type":"object","additionalProperties":true}}}},"InstagramPostOwner":{"type":"object","description":"Lightweight user reference embedded in posts and stories.","properties":{"id":{"type":"string"},"username":{"type":"string"},"fullName":{"type":"string","nullable":true},"profilePicUrl":{"type":"string"},"isVerified":{"type":"boolean"},"isPrivate":{"type":"boolean"}}},"Pagination":{"type":"object","properties":{"page":{"type":"integer","nullable":true},"hasNextPage":{"type":"boolean","nullable":true},"cursor":{"type":"string","nullable":true},"offset":{"type":"string","nullable":true,"description":"Numeric offset string for offset-paginated endpoints (e.g. Google Maps place search)."}}},"ErrorEnvelope":{"type":"object","properties":{"requestId":{"type":"string","format":"uuid"},"status":{"type":"integer"},"message":{"type":"string","description":"Human-readable summary. For `VALIDATION_ERROR`, the first entry's message in `error.details`, or `Invalid request.` when `details` is empty."},"success":{"type":"boolean"},"error":{"type":"object","properties":{"code":{"type":"string"},"details":{"type":"array","description":"Present on `VALIDATION_ERROR`. One entry per failed rule, so a parameter can appear more than once. Empty when the request could not be checked field by field.","items":{"$ref":"#/components/schemas/ValidationErrorDetail"}}}}}},"ValidationErrorDetail":{"type":"object","required":["field","message"],"properties":{"field":{"type":"string","nullable":true,"description":"The invalid parameter, or `null` when a rule covers several parameters (e.g. `cursor` with `maxItems`)."},"message":{"type":"string"},"minimum":{"type":"number","description":"Smallest allowed value. Present on a number range error when the parameter has a lower bound."},"maximum":{"type":"number","description":"Largest allowed value. Present on a number range error when the parameter has an upper bound."},"minLength":{"type":"integer","description":"Fewest allowed characters. Present on a string length error when the parameter has a minimum length."},"maxLength":{"type":"integer","description":"Most allowed characters. Present on a string length error when the parameter has a maximum length."}}},"InsufficientBalanceError":{"type":"object","description":"The available USD balance cannot cover this request. No partial charge is retained. Add funds or reduce the requested result count, subject to the endpoint minimum.","required":["status","success","error"],"properties":{"requestId":{"type":"string","format":"uuid"},"status":{"type":"integer","enum":[402]},"success":{"type":"boolean","enum":[false]},"message":{"type":"string"},"error":{"type":"object","required":["code"],"properties":{"code":{"type":"string","enum":["TEAM_INSUFFICIENT_BALANCE"]}}}}}}},"paths":{"/instagram/location/{id}/posts":{"get":{"operationId":"getInstagramLocationPosts","summary":"Get posts for a location","description":"Returns posts tagged with an Instagram location, by location ID. Use `cursor` to paginate or `maxItems` for a one-shot bulk pull (mutually exclusive). `sort` is `recent` (default) or `top`; send the same `sort` with each `cursor`.\n\n**Price:** $0.0003 per item\n\n**Minimum charge:** $0.003 per request (10 items)\n\nYour current plan discount applies to the total. The minimum applies once per request, even when fewer items are returned. maxItems limits requested results; it does not lower the minimum billable count.","tags":["instagram"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":100}},{"name":"sort","in":"query","required":false,"schema":{"type":"string","enum":["recent","top"]}},{"name":"maxItems","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":200}},{"name":"cursor","in":"query","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful request","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string","format":"uuid"},"status":{"type":"integer"},"message":{"type":"string"},"success":{"type":"boolean"},"data":{"type":"array","items":{"$ref":"#/components/schemas/InstagramPost"}},"pagination":{"$ref":"#/components/schemas/Pagination"},"pricing":{"type":"object","required":["currency","amountCharged","billableItems"],"properties":{"currency":{"type":"string","enum":["USD"]},"amountCharged":{"type":"string","pattern":"^\\d+\\.\\d{6}$","description":"Exact USD amount after the current plan discount, rounded once to a microdollar. This example uses the minimum count with no discount."},"billableItems":{"type":"integer","minimum":0}}}}}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"402":{"description":"Insufficient balance","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InsufficientBalanceError"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}}}}
```

## Search posts

> Returns Instagram posts matching a keyword. Use \`cursor\` to paginate or \`maxItems\` for a one-shot bulk pull (mutually exclusive). Page 1 comes from reels search. Later pages, and page 1 when reels search finds nothing, come from top search. Top search posts can have \`caption\`, \`likeCount\` and \`commentCount\` set to \`null\`. Separate \`cursor\` pages can repeat posts; \`maxItems\` drops repeats.\
> \
> \*\*Price:\*\* $0.0015 per item\
> \
> \*\*Minimum charge:\*\* $0.015 per request (10 items)\
> \
> Your current plan discount applies to the total. The minimum applies once per request, even when fewer items are returned. maxItems limits requested results; it does not lower the minimum billable count.

```json
{"openapi":"3.0.3","info":{"title":"Pullbay API","version":"2.0.0"},"tags":[{"name":"instagram","description":"Instagram: users, followers, posts, reels, stories, comments, hashtags, locations, audio, and search."}],"servers":[{"url":"https://api.pullbay.com"}],"security":[{"BearerAuth":[]}],"components":{"securitySchemes":{"BearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"JWT"}},"schemas":{"InstagramPost":{"type":"object","description":"An Instagram post (image, video, carousel, or reel).","properties":{"type":{"type":"string","description":"Always `post`. Use `isVideo` and `isCarousel` for the kind of post."},"id":{"type":"string"},"code":{"type":"string"},"url":{"type":"string"},"caption":{"type":"string","nullable":true},"createdAt":{"type":"string","format":"date-time"},"likeCount":{"type":"integer","nullable":true},"commentCount":{"type":"integer","nullable":true},"isAvailable":{"type":"boolean"},"isCarousel":{"type":"boolean"},"isVideo":{"type":"boolean"},"isPinned":{"type":"boolean"},"isPaidPartnership":{"type":"boolean"},"isLikeAndViewCountsDisabled":{"type":"boolean"},"owner":{"$ref":"#/components/schemas/InstagramPostOwner"},"coowners":{"type":"array","nullable":true,"items":{"$ref":"#/components/schemas/InstagramPostOwner"}},"taggedUsers":{"type":"array","nullable":true,"description":"Users tagged in the post. Not every source returns it.","items":{"$ref":"#/components/schemas/InstagramPostOwner"}},"location":{"type":"object","nullable":true,"additionalProperties":true},"image":{"type":"object","nullable":true,"additionalProperties":true},"video":{"type":"object","nullable":true,"additionalProperties":true},"audio":{"type":"object","nullable":true,"additionalProperties":true},"carouselMedia":{"type":"array","items":{"type":"object","additionalProperties":true}}}},"InstagramPostOwner":{"type":"object","description":"Lightweight user reference embedded in posts and stories.","properties":{"id":{"type":"string"},"username":{"type":"string"},"fullName":{"type":"string","nullable":true},"profilePicUrl":{"type":"string"},"isVerified":{"type":"boolean"},"isPrivate":{"type":"boolean"}}},"Pagination":{"type":"object","properties":{"page":{"type":"integer","nullable":true},"hasNextPage":{"type":"boolean","nullable":true},"cursor":{"type":"string","nullable":true},"offset":{"type":"string","nullable":true,"description":"Numeric offset string for offset-paginated endpoints (e.g. Google Maps place search)."}}},"ErrorEnvelope":{"type":"object","properties":{"requestId":{"type":"string","format":"uuid"},"status":{"type":"integer"},"message":{"type":"string","description":"Human-readable summary. For `VALIDATION_ERROR`, the first entry's message in `error.details`, or `Invalid request.` when `details` is empty."},"success":{"type":"boolean"},"error":{"type":"object","properties":{"code":{"type":"string"},"details":{"type":"array","description":"Present on `VALIDATION_ERROR`. One entry per failed rule, so a parameter can appear more than once. Empty when the request could not be checked field by field.","items":{"$ref":"#/components/schemas/ValidationErrorDetail"}}}}}},"ValidationErrorDetail":{"type":"object","required":["field","message"],"properties":{"field":{"type":"string","nullable":true,"description":"The invalid parameter, or `null` when a rule covers several parameters (e.g. `cursor` with `maxItems`)."},"message":{"type":"string"},"minimum":{"type":"number","description":"Smallest allowed value. Present on a number range error when the parameter has a lower bound."},"maximum":{"type":"number","description":"Largest allowed value. Present on a number range error when the parameter has an upper bound."},"minLength":{"type":"integer","description":"Fewest allowed characters. Present on a string length error when the parameter has a minimum length."},"maxLength":{"type":"integer","description":"Most allowed characters. Present on a string length error when the parameter has a maximum length."}}},"InsufficientBalanceError":{"type":"object","description":"The available USD balance cannot cover this request. No partial charge is retained. Add funds or reduce the requested result count, subject to the endpoint minimum.","required":["status","success","error"],"properties":{"requestId":{"type":"string","format":"uuid"},"status":{"type":"integer","enum":[402]},"success":{"type":"boolean","enum":[false]},"message":{"type":"string"},"error":{"type":"object","required":["code"],"properties":{"code":{"type":"string","enum":["TEAM_INSUFFICIENT_BALANCE"]}}}}}}},"paths":{"/instagram/post/search":{"get":{"operationId":"searchInstagramPosts","summary":"Search posts","description":"Returns Instagram posts matching a keyword. Use `cursor` to paginate or `maxItems` for a one-shot bulk pull (mutually exclusive). Page 1 comes from reels search. Later pages, and page 1 when reels search finds nothing, come from top search. Top search posts can have `caption`, `likeCount` and `commentCount` set to `null`. Separate `cursor` pages can repeat posts; `maxItems` drops repeats.\n\n**Price:** $0.0015 per item\n\n**Minimum charge:** $0.015 per request (10 items)\n\nYour current plan discount applies to the total. The minimum applies once per request, even when fewer items are returned. maxItems limits requested results; it does not lower the minimum billable count.","tags":["instagram"],"parameters":[{"name":"query","in":"query","required":true,"schema":{"type":"string","minLength":1,"maxLength":100}},{"name":"maxItems","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":200}},{"name":"cursor","in":"query","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful request","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string","format":"uuid"},"status":{"type":"integer"},"message":{"type":"string"},"success":{"type":"boolean"},"data":{"type":"array","items":{"$ref":"#/components/schemas/InstagramPost"}},"pagination":{"$ref":"#/components/schemas/Pagination"},"pricing":{"type":"object","required":["currency","amountCharged","billableItems"],"properties":{"currency":{"type":"string","enum":["USD"]},"amountCharged":{"type":"string","pattern":"^\\d+\\.\\d{6}$","description":"Exact USD amount after the current plan discount, rounded once to a microdollar. This example uses the minimum count with no discount."},"billableItems":{"type":"integer","minimum":0}}}}}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"402":{"description":"Insufficient balance","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InsufficientBalanceError"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}}}}
```

## Get the media files of a post

> Returns the image and video files of an Instagram post or reel, by its link. The post counts as one item, however many files it has. A post that does not exist returns \`\[{ "notFound": true }]\` and is charged the minimum.\
> \
> \*\*Price:\*\* $0.0015 per item\
> \
> \*\*Minimum charge:\*\* $0.015 per request (10 items)\
> \
> Your current plan discount applies to the total. The minimum applies once per request, even when fewer items are returned. maxItems limits requested results; it does not lower the minimum billable count.

```json
{"openapi":"3.0.3","info":{"title":"Pullbay API","version":"2.0.0"},"tags":[{"name":"instagram","description":"Instagram: users, followers, posts, reels, stories, comments, hashtags, locations, audio, and search."}],"servers":[{"url":"https://api.pullbay.com"}],"security":[{"BearerAuth":[]}],"components":{"securitySchemes":{"BearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"JWT"}},"schemas":{"InstagramMedia":{"type":"object","description":"The image and video files of one Instagram post or reel.","properties":{"type":{"type":"string"},"code":{"type":"string"},"url":{"type":"string"},"medias":{"type":"array","description":"One entry per file, in the post's order. A carousel has several.","items":{"type":"object","properties":{"type":{"type":"string","enum":["image","video"]},"link":{"type":"string","description":"The file's URL."},"thumbnail":{"type":"string","nullable":true},"duration":{"type":"number","nullable":true,"description":"Video length in seconds; `null` for images."}}}}}},"NotFound":{"type":"object","description":"Returned as the only record in `data` when the requested user, post or other item does not exist. The request is still charged the minimum.","required":["notFound"],"properties":{"notFound":{"type":"boolean","enum":[true]}}},"ErrorEnvelope":{"type":"object","properties":{"requestId":{"type":"string","format":"uuid"},"status":{"type":"integer"},"message":{"type":"string","description":"Human-readable summary. For `VALIDATION_ERROR`, the first entry's message in `error.details`, or `Invalid request.` when `details` is empty."},"success":{"type":"boolean"},"error":{"type":"object","properties":{"code":{"type":"string"},"details":{"type":"array","description":"Present on `VALIDATION_ERROR`. One entry per failed rule, so a parameter can appear more than once. Empty when the request could not be checked field by field.","items":{"$ref":"#/components/schemas/ValidationErrorDetail"}}}}}},"ValidationErrorDetail":{"type":"object","required":["field","message"],"properties":{"field":{"type":"string","nullable":true,"description":"The invalid parameter, or `null` when a rule covers several parameters (e.g. `cursor` with `maxItems`)."},"message":{"type":"string"},"minimum":{"type":"number","description":"Smallest allowed value. Present on a number range error when the parameter has a lower bound."},"maximum":{"type":"number","description":"Largest allowed value. Present on a number range error when the parameter has an upper bound."},"minLength":{"type":"integer","description":"Fewest allowed characters. Present on a string length error when the parameter has a minimum length."},"maxLength":{"type":"integer","description":"Most allowed characters. Present on a string length error when the parameter has a maximum length."}}},"InsufficientBalanceError":{"type":"object","description":"The available USD balance cannot cover this request. No partial charge is retained. Add funds or reduce the requested result count, subject to the endpoint minimum.","required":["status","success","error"],"properties":{"requestId":{"type":"string","format":"uuid"},"status":{"type":"integer","enum":[402]},"success":{"type":"boolean","enum":[false]},"message":{"type":"string"},"error":{"type":"object","required":["code"],"properties":{"code":{"type":"string","enum":["TEAM_INSUFFICIENT_BALANCE"]}}}}}}},"paths":{"/instagram/post/medias":{"get":{"operationId":"getInstagramPostMedias","summary":"Get the media files of a post","description":"Returns the image and video files of an Instagram post or reel, by its link. The post counts as one item, however many files it has. A post that does not exist returns `[{ \"notFound\": true }]` and is charged the minimum.\n\n**Price:** $0.0015 per item\n\n**Minimum charge:** $0.015 per request (10 items)\n\nYour current plan discount applies to the total. The minimum applies once per request, even when fewer items are returned. maxItems limits requested results; it does not lower the minimum billable count.","tags":["instagram"],"parameters":[{"name":"url","in":"query","required":true,"schema":{"type":"string","maxLength":2048,"pattern":"^https?:\\/\\/(?:www\\.)?instagram\\.com\\/(?:(?!share\\/)[A-Za-z0-9_.]+\\/)?(?:p|reel|reels|tv)\\/[A-Za-z0-9_-]+\\/?(?:\\?.*)?$"}}],"responses":{"200":{"description":"Successful request","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string","format":"uuid"},"status":{"type":"integer"},"message":{"type":"string"},"success":{"type":"boolean"},"data":{"type":"array","items":{"anyOf":[{"$ref":"#/components/schemas/InstagramMedia"},{"$ref":"#/components/schemas/NotFound"}]}},"pricing":{"type":"object","required":["currency","amountCharged","billableItems"],"properties":{"currency":{"type":"string","enum":["USD"]},"amountCharged":{"type":"string","pattern":"^\\d+\\.\\d{6}$","description":"Exact USD amount after the current plan discount, rounded once to a microdollar. This example uses the minimum count with no discount."},"billableItems":{"type":"integer","minimum":0}}}}}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"402":{"description":"Insufficient balance","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InsufficientBalanceError"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}}}}
```

## Get posts that use an audio track

> Returns posts and reels that use an Instagram audio track, by audio ID. Use \`cursor\` to paginate or \`maxItems\` for a one-shot bulk pull (mutually exclusive).\
> \
> \*\*Price:\*\* $0.0005 per item\
> \
> \*\*Minimum charge:\*\* $0.005 per request (10 items)\
> \
> Your current plan discount applies to the total. The minimum applies once per request, even when fewer items are returned. maxItems limits requested results; it does not lower the minimum billable count.

```json
{"openapi":"3.0.3","info":{"title":"Pullbay API","version":"2.0.0"},"tags":[{"name":"instagram","description":"Instagram: users, followers, posts, reels, stories, comments, hashtags, locations, audio, and search."}],"servers":[{"url":"https://api.pullbay.com"}],"security":[{"BearerAuth":[]}],"components":{"securitySchemes":{"BearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"JWT"}},"schemas":{"InstagramPost":{"type":"object","description":"An Instagram post (image, video, carousel, or reel).","properties":{"type":{"type":"string","description":"Always `post`. Use `isVideo` and `isCarousel` for the kind of post."},"id":{"type":"string"},"code":{"type":"string"},"url":{"type":"string"},"caption":{"type":"string","nullable":true},"createdAt":{"type":"string","format":"date-time"},"likeCount":{"type":"integer","nullable":true},"commentCount":{"type":"integer","nullable":true},"isAvailable":{"type":"boolean"},"isCarousel":{"type":"boolean"},"isVideo":{"type":"boolean"},"isPinned":{"type":"boolean"},"isPaidPartnership":{"type":"boolean"},"isLikeAndViewCountsDisabled":{"type":"boolean"},"owner":{"$ref":"#/components/schemas/InstagramPostOwner"},"coowners":{"type":"array","nullable":true,"items":{"$ref":"#/components/schemas/InstagramPostOwner"}},"taggedUsers":{"type":"array","nullable":true,"description":"Users tagged in the post. Not every source returns it.","items":{"$ref":"#/components/schemas/InstagramPostOwner"}},"location":{"type":"object","nullable":true,"additionalProperties":true},"image":{"type":"object","nullable":true,"additionalProperties":true},"video":{"type":"object","nullable":true,"additionalProperties":true},"audio":{"type":"object","nullable":true,"additionalProperties":true},"carouselMedia":{"type":"array","items":{"type":"object","additionalProperties":true}}}},"InstagramPostOwner":{"type":"object","description":"Lightweight user reference embedded in posts and stories.","properties":{"id":{"type":"string"},"username":{"type":"string"},"fullName":{"type":"string","nullable":true},"profilePicUrl":{"type":"string"},"isVerified":{"type":"boolean"},"isPrivate":{"type":"boolean"}}},"Pagination":{"type":"object","properties":{"page":{"type":"integer","nullable":true},"hasNextPage":{"type":"boolean","nullable":true},"cursor":{"type":"string","nullable":true},"offset":{"type":"string","nullable":true,"description":"Numeric offset string for offset-paginated endpoints (e.g. Google Maps place search)."}}},"ErrorEnvelope":{"type":"object","properties":{"requestId":{"type":"string","format":"uuid"},"status":{"type":"integer"},"message":{"type":"string","description":"Human-readable summary. For `VALIDATION_ERROR`, the first entry's message in `error.details`, or `Invalid request.` when `details` is empty."},"success":{"type":"boolean"},"error":{"type":"object","properties":{"code":{"type":"string"},"details":{"type":"array","description":"Present on `VALIDATION_ERROR`. One entry per failed rule, so a parameter can appear more than once. Empty when the request could not be checked field by field.","items":{"$ref":"#/components/schemas/ValidationErrorDetail"}}}}}},"ValidationErrorDetail":{"type":"object","required":["field","message"],"properties":{"field":{"type":"string","nullable":true,"description":"The invalid parameter, or `null` when a rule covers several parameters (e.g. `cursor` with `maxItems`)."},"message":{"type":"string"},"minimum":{"type":"number","description":"Smallest allowed value. Present on a number range error when the parameter has a lower bound."},"maximum":{"type":"number","description":"Largest allowed value. Present on a number range error when the parameter has an upper bound."},"minLength":{"type":"integer","description":"Fewest allowed characters. Present on a string length error when the parameter has a minimum length."},"maxLength":{"type":"integer","description":"Most allowed characters. Present on a string length error when the parameter has a maximum length."}}},"InsufficientBalanceError":{"type":"object","description":"The available USD balance cannot cover this request. No partial charge is retained. Add funds or reduce the requested result count, subject to the endpoint minimum.","required":["status","success","error"],"properties":{"requestId":{"type":"string","format":"uuid"},"status":{"type":"integer","enum":[402]},"success":{"type":"boolean","enum":[false]},"message":{"type":"string"},"error":{"type":"object","required":["code"],"properties":{"code":{"type":"string","enum":["TEAM_INSUFFICIENT_BALANCE"]}}}}}}},"paths":{"/instagram/audio/{id}/posts":{"get":{"operationId":"getInstagramAudioPosts","summary":"Get posts that use an audio track","description":"Returns posts and reels that use an Instagram audio track, by audio ID. Use `cursor` to paginate or `maxItems` for a one-shot bulk pull (mutually exclusive).\n\n**Price:** $0.0005 per item\n\n**Minimum charge:** $0.005 per request (10 items)\n\nYour current plan discount applies to the total. The minimum applies once per request, even when fewer items are returned. maxItems limits requested results; it does not lower the minimum billable count.","tags":["instagram"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":100}},{"name":"maxItems","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":200}},{"name":"cursor","in":"query","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful request","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string","format":"uuid"},"status":{"type":"integer"},"message":{"type":"string"},"success":{"type":"boolean"},"data":{"type":"array","items":{"$ref":"#/components/schemas/InstagramPost"}},"pagination":{"$ref":"#/components/schemas/Pagination"},"pricing":{"type":"object","required":["currency","amountCharged","billableItems"],"properties":{"currency":{"type":"string","enum":["USD"]},"amountCharged":{"type":"string","pattern":"^\\d+\\.\\d{6}$","description":"Exact USD amount after the current plan discount, rounded once to a microdollar. This example uses the minimum count with no discount."},"billableItems":{"type":"integer","minimum":0}}}}}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"402":{"description":"Insufficient balance","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InsufficientBalanceError"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}}}}
```
