> ## 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 Followers Count

> Collect public Instagram follower and following counts.

# Instagram Followers Count

Collect public follower and following counts for Instagram profiles.

## Endpoint

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

## Request Body

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

## Result Item

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

```json theme={null}
{
  "id": "25025320",
  "platform": "instagram",
  "resource": "followers-count",
  "type": "profile_metrics",
  "username": "instagram",
  "name": "Instagram",
  "url": "https://www.instagram.com/instagram",
  "avatar_url": "https://example.com/avatar.jpg",
  "is_verified": true,
  "is_private": false,
  "metrics": {
    "followers_count": 685829413,
    "following_count": 251,
    "posts_count": null
  },
  "created_at": null,
  "collected_at": "2026-07-08T08:59:45",
  "extra": {
    "snapshot_time": "2026-07-08 - 02:02"
  }
}
```

You can submit multiple usernames in the same field:

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

## 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/followers-count
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/followers-count:
    post:
      tags:
        - Agent API
      summary: Submit Instagram Followers Count task
      description: Collect public follower and following counts for Instagram profiles.
      operationId: submitInstagramFollowersCountTask
      parameters: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SubmitRequest'
            examples:
              default:
                summary: Submit Instagram Followers Count task
                value:
                  usernames:
                    - instagram
              with_callback:
                summary: With callback URL
                value:
                  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

````