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

# Read one public Instagram post or reel



## OpenAPI

````yaml https://api.vexqo.dev/openapi.json get /instagram/posts
openapi: 3.1.0
info:
  title: Vexqo API
  description: >-
    Public Meta Ad Library, Reddit, Hacker News, Product Hunt, eBay, TikTok and
    Instagram data. Authenticate with X-API-Key. Follow response links for
    related resources and supported pagination; each collection request can use
    credits. Social lookups are fresh by default; max_age explicitly allows
    cached public data.
  version: 0.1.0
servers:
  - url: https://api.vexqo.dev
security: []
paths:
  /instagram/posts:
    get:
      tags:
        - Public social data
      summary: Read one public Instagram post or reel
      operationId: instagram_post_instagram_posts_get
      parameters:
        - name: target
          in: query
          required: true
          schema:
            type: string
            minLength: 3
            maxLength: 2048
            description: >-
              Post ID/shortcode or full public HTTPS post URL. Short links are
              unsupported.
            title: Target
          description: >-
            Post ID/shortcode or full public HTTPS post URL. Short links are
            unsupported.
        - name: max_age
          in: query
          required: false
          schema:
            type: integer
            maximum: 300
            minimum: 0
            description: >-
              Maximum acceptable cached age in seconds. 0 (default) collects
              fresh. Cache hits have the same credit cost.
            default: 0
            title: Max Age
          description: >-
            Maximum acceptable cached age in seconds. 0 (default) collects
            fresh. Cache hits have the same credit cost.
        - name: country
          in: query
          required: false
          schema:
            anyOf:
              - type: string
                pattern: ^[A-Za-z]{2}$
              - type: 'null'
            description: Proxy exit country, not a filter of the post's audience or origin.
            title: Country
          description: Proxy exit country, not a filter of the post's audience or origin.
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PostResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - APIKeyHeader: []
components:
  schemas:
    PostResponse:
      properties:
        source:
          $ref: >-
            #/components/schemas/src__adapters__inbound__http__social_contract__Source
        links:
          additionalProperties:
            anyOf:
              - type: string
              - type: 'null'
          type: object
          title: Links
        post:
          $ref: >-
            #/components/schemas/src__adapters__inbound__http__social_contract__Post
      type: object
      required:
        - source
        - links
        - post
      title: PostResponse
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    src__adapters__inbound__http__social_contract__Source:
      properties:
        platform:
          type: string
          enum:
            - tiktok
            - instagram
          title: Platform
        method:
          type: string
          enum:
            - public_web_page
            - rendered_public_page
            - demo_fixture
          title: Method
        collector:
          type: string
          enum:
            - curl_cffi
            - camoufox
            - none
          title: Collector
        url:
          type: string
          title: Url
        observed_at:
          type: string
          title: Observed At
        cached:
          type: boolean
          title: Cached
        age_seconds:
          type: number
          maximum: 300
          minimum: 0
          title: Age Seconds
        exit_country:
          anyOf:
            - type: string
            - type: 'null'
          title: Exit Country
          description: Collection exit country, not a content-country filter.
      type: object
      required:
        - platform
        - method
        - collector
        - url
        - observed_at
        - cached
        - age_seconds
        - exit_country
      title: Source
    src__adapters__inbound__http__social_contract__Post:
      properties:
        id:
          type: string
          title: Id
        shortcode:
          anyOf:
            - type: string
            - type: 'null'
          title: Shortcode
        url:
          type: string
          title: Url
        type:
          type: string
          enum:
            - image
            - video
            - photo
            - carousel
            - unknown
          title: Type
        caption:
          anyOf:
            - type: string
            - type: 'null'
          title: Caption
        created_at:
          anyOf:
            - type: string
            - type: 'null'
          title: Created At
        author:
          $ref: '#/components/schemas/Author'
        metrics:
          $ref: '#/components/schemas/Metrics'
        media:
          $ref: '#/components/schemas/Media'
        links:
          additionalProperties:
            anyOf:
              - type: string
              - type: 'null'
          type: object
          title: Links
      type: object
      required:
        - id
        - shortcode
        - url
        - type
        - caption
        - created_at
        - author
        - metrics
        - media
      title: Post
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
    Author:
      properties:
        id:
          anyOf:
            - type: string
            - type: 'null'
          title: Id
        username:
          anyOf:
            - type: string
            - type: 'null'
          title: Username
        name:
          anyOf:
            - type: string
            - type: 'null'
          title: Name
        verified:
          anyOf:
            - type: boolean
            - type: 'null'
          title: Verified
        url:
          anyOf:
            - type: string
            - type: 'null'
          title: Url
      type: object
      required:
        - id
        - username
        - name
        - verified
        - url
      title: Author
    Metrics:
      properties:
        views:
          anyOf:
            - type: integer
              minimum: 0
            - type: 'null'
          title: Views
        likes:
          anyOf:
            - type: integer
              minimum: 0
            - type: 'null'
          title: Likes
        comments:
          anyOf:
            - type: integer
              minimum: 0
            - type: 'null'
          title: Comments
        shares:
          anyOf:
            - type: integer
              minimum: 0
            - type: 'null'
          title: Shares
        saves:
          anyOf:
            - type: integer
              minimum: 0
            - type: 'null'
          title: Saves
      type: object
      required:
        - views
        - likes
        - comments
        - shares
        - saves
      title: Metrics
    Media:
      properties:
        assets:
          items:
            $ref: '#/components/schemas/Asset'
          type: array
          title: Assets
        expected_count:
          anyOf:
            - type: integer
              minimum: 0
            - type: 'null'
          title: Expected Count
          description: >-
            Only the count explicitly supplied by the platform; null when
            unknown.
        returned_count:
          type: integer
          minimum: 0
          title: Returned Count
        complete:
          anyOf:
            - type: boolean
            - type: 'null'
          title: Complete
          description: >-
            False for partial previews; null when completeness cannot be
            established.
      type: object
      required:
        - assets
        - expected_count
        - returned_count
        - complete
      title: Media
    Asset:
      properties:
        type:
          type: string
          enum:
            - image
            - video
          title: Type
        url:
          anyOf:
            - type: string
            - type: 'null'
          title: Url
          description: >-
            Source media URL, if supplied; may expire or require platform
            cookies. It is not rehosted.
        preview_url:
          anyOf:
            - type: string
            - type: 'null'
          title: Preview Url
        position:
          type: integer
          minimum: 0
          title: Position
        width:
          anyOf:
            - type: integer
              minimum: 0
            - type: 'null'
          title: Width
        height:
          anyOf:
            - type: integer
              minimum: 0
            - type: 'null'
          title: Height
        duration_seconds:
          anyOf:
            - type: number
              minimum: 0
            - type: 'null'
          title: Duration Seconds
      type: object
      required:
        - type
        - url
        - preview_url
        - position
        - width
        - height
        - duration_seconds
      title: Asset
  securitySchemes:
    APIKeyHeader:
      type: apiKey
      in: header
      name: X-API-Key

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.