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

# List active Instagram stories

> Returns the currently-active stories for a connected Instagram account. Stories are ephemeral and expire about 24 hours after posting; each item carries is_story and a computed expires_at in metadata. Returns 501 for non-Instagram accounts.



## OpenAPI

````yaml /api-reference/openapi.json get /platforms/instagram/accounts/{id}/stories
openapi: 3.0.0
info:
  description: >-
    Unified social media inbox API. Read and respond to comments, DMs, reviews,
    and mentions across Instagram, Facebook, Threads, Google Business Profile,
    TikTok, LinkedIn, and YouTube through a single REST API. X/Twitter and
    Trustpilot coming soon.
  title: SocialAPI.AI
  contact:
    name: SocialAPI.AI Support
    email: support@social-api.ai
  license:
    name: MIT
  version: '1.0'
servers:
  - url: https://api.social-api.ai/v1
security: []
paths:
  /platforms/instagram/accounts/{id}/stories:
    get:
      tags:
        - Instagram
      summary: List active Instagram stories
      description: >-
        Returns the currently-active stories for a connected Instagram account.
        Stories are ephemeral and expire about 24 hours after posting; each item
        carries is_story and a computed expires_at in metadata. Returns 501 for
        non-Instagram accounts.
      parameters:
        - example: acc_01HZ9X3Q4R5M6N7P8V2K0W1J
          description: Connected account ID
          name: id
          in: path
          required: true
          schema:
            type: string
        - example: 20
          description: Maximum number of results to return (1-100, default 20)
          name: limit
          in: query
          schema:
            type: integer
        - description: Pagination cursor returned by the previous response
          name: cursor
          in: query
          schema:
            type: string
      responses:
        '200':
          description: List of active stories
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/api_endpoints.InstagramStoriesResponse'
        '400':
          description: Invalid query parameters
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/api_endpoints.ErrorResponse'
        '401':
          description: Invalid or missing API key
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/api_endpoints.ErrorResponse'
        '403':
          description: Platform access not permitted for your plan
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/api_endpoints.ErrorResponse'
        '404':
          description: Account not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/api_endpoints.ErrorResponse'
        '429':
          description: Rate limit exceeded
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/api_endpoints.ErrorResponse'
        '501':
          description: Platform does not support stories
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/api_endpoints.ErrorResponse'
      security:
        - BearerAuth: []
components:
  schemas:
    api_endpoints.InstagramStoriesResponse:
      type: object
      properties:
        count:
          type: integer
        data:
          type: array
          items:
            $ref: '#/components/schemas/social-api_ai_core_api_connectors_base.Post'
        next_cursor:
          type: string
    api_endpoints.ErrorResponse:
      type: object
      properties:
        error:
          $ref: '#/components/schemas/api_endpoints.ErrorBody'
    social-api_ai_core_api_connectors_base.Post:
      type: object
      properties:
        account_id:
          description: '[always]'
          type: string
        caption:
          description: '[always] Post text body; may be empty for media-only posts'
          type: string
        comments_count:
          description: '[platform: instagram, facebook, tiktok] Zero on other platforms'
          type: integer
        id:
          description: '[always] Platform-native post/video/media ID'
          type: string
        like_count:
          description: '[platform: instagram, facebook, tiktok] Zero on other platforms'
          type: integer
        media_type:
          description: >-
            [platform: instagram, facebook, threads, tiktok, youtube] Empty on
            linkedin and google
          type: string
        media_url:
          description: >-
            [platform: instagram, tiktok, youtube] Cover image or media URL;
            empty on facebook, threads, linkedin, google
          type: string
        metadata:
          description: >-
            [optional] Platform-specific keys; facebook sets "page_id" and
            "page_name"
          type: object
          additionalProperties: {}
        permalink:
          description: >-
            [platform: instagram, facebook, threads, tiktok, youtube, google,
            linkedin, linkedin_page]
          type: string
        platform:
          description: '[always]'
          type: string
        shares_count:
          description: '[platform: facebook] Zero on other platforms'
          type: integer
        timestamp:
          description: '[always]'
          type: string
        view_count:
          description: '[platform: youtube, tiktok] Zero on other platforms'
          type: integer
    api_endpoints.ErrorBody:
      type: object
      properties:
        code:
          type: string
          example: resource.not_found
        message:
          type: string
          example: Account not found
        meta:
          type: object
          additionalProperties: {}
  securitySchemes:
    BearerAuth:
      description: >-
        Prefix your API key with "Bearer ". Example: `Authorization: Bearer
        sapi_key_...`
      type: apiKey
      name: Authorization
      in: header

````