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

# Instagram Post API

> Caption, engagement metrics, and author for one post or reel.



## OpenAPI

````yaml openapi.json GET /v1/instagram/posts
openapi: 3.0.0
info:
  title: ScoutLayer API
  version: 1.0.0
  description: Competitor data. One API.
servers:
  - url: https://api.scoutlayer.io
    description: Production
security:
  - ApiKeyAuth: []
  - BearerAuth: []
paths:
  /v1/instagram/posts:
    get:
      tags:
        - instagram
        - posts
      summary: Get a single Instagram post or reel by URL
      description: Caption, engagement metrics, and author for one post or reel.
      parameters:
        - schema:
            type: string
            format: uri
            example: https://www.instagram.com/p/C1a2b3cD4eF/
          required: true
          name: url
          in: query
      responses:
        '200':
          description: Get a single Instagram post or reel by URL
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InstagramPost'
        '400':
          description: Invalid request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '402':
          description: Insufficient credits
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: Not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '501':
          description: This endpoint is declared but not yet implemented — never charged
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '502':
          description: The orchestrator failed or was unreachable
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      security:
        - ApiKeyAuth: []
        - BearerAuth: []
components:
  schemas:
    InstagramPost:
      type: object
      properties:
        postId:
          type: string
        shortcode:
          type: string
        url:
          type: string
        mediaType:
          type: string
          enum:
            - image
            - video
            - carousel
            - text
            - audio
            - unknown
        caption:
          type: string
        publishedAt:
          type: string
        thumbnailUrl:
          type: string
          nullable: true
          description: CDN URL — may be time-limited
        videoUrl:
          type: string
          nullable: true
          description: CDN URL — may be time-limited
        videoDurationMs:
          type: integer
          nullable: true
        isPaidPartnership:
          type: boolean
          description: >-
            Signals a paid creator partnership — useful for spotting a
            competitor's influencer spend
        metrics:
          type: object
          properties:
            views:
              type: integer
              nullable: true
            likes:
              type: integer
            comments:
              type: integer
          required:
            - views
            - likes
            - comments
        author:
          type: object
          properties:
            handle:
              type: string
            name:
              type: string
            avatarUrl:
              type: string
            isVerified:
              type: boolean
          required:
            - handle
            - name
            - avatarUrl
            - isVerified
      required:
        - postId
        - shortcode
        - url
        - mediaType
        - caption
        - publishedAt
        - thumbnailUrl
        - videoUrl
        - videoDurationMs
        - isPaidPartnership
        - metrics
        - author
    Error:
      type: object
      properties:
        error:
          type: object
          properties:
            code:
              type: string
              example: NOT_FOUND
            message:
              type: string
          required:
            - code
            - message
      required:
        - error
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: X-API-Key
      description: >-
        API key passed as the X-API-Key request header. Recommended for
        server-to-server calls.
    BearerAuth:
      type: http
      scheme: bearer
      description: >-
        API key (or OAuth token) passed as a Bearer token in the Authorization
        header.

````