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

# Instagram Reels

> Collect public Instagram reel data.

# Instagram Reels

Collect public Instagram reel data, including caption text, view counts, engagement metrics, media fields, and raw JSONL output.

## Endpoint

```http theme={null}
POST https://api.socq.ai/v1/instagram/reels
```

## Request Body

```json theme={null}
{
  "usernames": ["instagram"],
  "results_limit": 10
}
```

## Result Item

After the task succeeds, call `GET /v1/tasks/{task_id}` to read paginated standard records under `results`.

```json theme={null}
{
  "id": "3936101605334124689",
  "platform": "instagram",
  "resource": "reels",
  "type": "reel",
  "shortcode": "Daf145ByQiR",
  "url": "https://www.instagram.com/p/Daf145ByQiR/",
  "caption": "Reel caption text",
  "author": {
    "id": "25025320",
    "username": "instagram",
    "name": "Instagram",
    "url": "https://www.instagram.com/instagram",
    "avatar_url": null,
    "is_verified": null,
    "is_private": null
  },
  "metrics": {
    "likes_count": 109829,
    "comments_count": 4734,
    "views_count": 5781967,
    "plays_count": 40319904
  },
  "media": [
    {
      "type": "video",
      "url": "https://example.com/reel.mp4",
      "thumbnail_url": "https://example.com/thumbnail.jpg",
      "width": 1080,
      "height": 1920,
      "duration_seconds": 29.9
    }
  ],
  "duration_seconds": 29.9,
  "audio": {
    "id": null,
    "title": null,
    "artist": null,
    "url": "https://example.com/audio.mp4"
  },
  "hashtags": [],
  "mentions": ["creator"],
  "created_at": "2026-07-07T16:00:36",
  "collected_at": "2026-07-08T08:59:45",
  "extra": {}
}
```

## Response

```json theme={null}
{
  "code": 200,
  "data": {
    "task_id": "A1B2C3D4E5F6G7H8",
    "status": "queued",
    "created_time": "2026-07-08T10:30:00"
  }
}
```


## OpenAPI

````yaml api-manual/agent-api/agent-api.json POST /v1/instagram/reels
openapi: 3.0.0
info:
  title: Agent API
  description: Asynchronous social data collection API
  version: 1.0.0
servers:
  - url: https://api.socq.ai
    description: Production server
security:
  - BearerAuth: []
paths:
  /v1/instagram/reels:
    post:
      tags:
        - Agent API
      summary: Submit Instagram Reels task
      description: Collect public Instagram reel data.
      operationId: submitInstagramReelsTask
      parameters: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SubmitRequest'
            examples:
              default:
                summary: Submit Instagram Reels task
                value:
                  results_limit: 10
                  usernames:
                    - instagram
              with_callback:
                summary: With callback URL
                value:
                  results_limit: 10
                  callback_url: https://your-domain.com/webhook
                  usernames:
                    - instagram
      responses:
        '200':
          description: Task submitted
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SubmitResponse'
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '402':
          $ref: '#/components/responses/PaymentRequired'
components:
  schemas:
    SubmitRequest:
      type: object
      additionalProperties: false
      properties:
        urls:
          type: array
          items:
            type: string
          description: Array of public URLs to collect.
        usernames:
          type: array
          items:
            type: string
          description: Array of public usernames to collect.
        query:
          type: string
          description: Search query
        results_limit:
          type: integer
          minimum: 1
          description: Maximum number of results to collect
        callback_url:
          type: string
          description: Optional callback URL
    SubmitResponse:
      type: object
      properties:
        code:
          type: integer
          example: 200
        data:
          type: object
          properties:
            task_id:
              type: string
              example: A1B2C3D4E5F6G7H8
            status:
              type: string
              example: queued
            created_time:
              type: string
              format: date-time
    ErrorResponse:
      type: object
      properties:
        code:
          type: integer
        error:
          type: object
          properties:
            message:
              type: string
            type:
              type: string
  responses:
    BadRequest:
      description: Invalid request
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
    Unauthorized:
      description: Invalid or missing API key
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
    PaymentRequired:
      description: Insufficient credits
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      bearerFormat: API Key

````