---
title: "Direct access to Instagram API"
method: POST
path: "/api/instagram-direct"
tags: ["Instagram"]
---

# Direct access to Instagram API

`POST /api/instagram-direct`

## Request

- Base URL: `https://api.kolect.com`
- URL: `https://api.kolect.com/api/instagram-direct`
- Auth: HTTP bearer

Makes direct calls to Instagram API endpoints through RapidAPI, supporting multiple actions

## Request body

- object
  - `action` 'search_reels' | 'get_user_info' | 'get_user_reels', required: The Instagram API action to perform
  - `search_query` string: Required for search_reels action - the search term
  - `pagination_token` string: Optional token for paginated results
  - `min_videos` integer: Minimum number of videos to retrieve
  - `username` string: Required for get_user_info and get_user_reels actions

## Response `200`

Successfully retrieved Instagram data

- union
  - object
    - `posts` object[]: Instagram posts/reels data
    - `pagination_token` string: Token for fetching next page of results
    - `has_more` boolean: Whether more results are available
  - object
    - `success` boolean
    - `data` object: User info or reels data

## Other responses

- `400`: Bad request, missing required parameters
- `500`: Server error or Instagram API error

---

[API](https://skmtc.dev/kolect/apis/kolect-api.md) · [All operations](https://skmtc.dev/kolect/apis/kolect-api/llms.txt) · [OpenAPI document](https://skmtc.dev/kolect/apis/kolect-api/revisions/fe54528e8f54?raw)
