openapi: 3.0.2
servers:
  - url: https://prod.api.market/api/v1/diyortech/instagram
info:
  title: Instagram Post, Reels & Stories Downloader API
  version: 0.1.0
  description: Easily download Instagram Reels, Stories, and Posts using this fast
    and reliable API. Perfect for content archiving, social media tools, or
    media analysis apps.
paths:
  /instagram/:
    get:
      tags:
        - instagram
      summary: Instagram Download
      description: Instagram Downloader
      operationId: instagram_download_instagram__get
      parameters:
        - name: url
          in: query
          required: true
          schema:
            title: Url
            type: string
            example: https://www.instagram.com/p/C92zLUJtaLy/
      responses:
        "200":
          description: Successful Response
          content:
            application/json:
              example:
                status: true
                time: 4.37
                result:
                  - url: https://cobalt.akhmadjonov.uz/tunnel?id=CYl4PbtNwfukPEuvc44K8&exp=1750781436716&sig=Jz8hx8-cx3potHTifQfLQVXG_1BAqkIg-suXKpErh8Q&sec=2OaIuuSDvBLLZW1KvCwr6mATl0uU9BJrwAi3lbJu60c&iv=iM12vaVxAg8njOhmuuEu-g
                    type: image/jpeg
                    size: "80001"
                    thumb: https://cdn.akhmadjonov.uz/thumb/?cdn=aHR0cHM6Ly9jb2JhbHQuYWtobWFkam9ub3YudXovdHVubmVsP2lkPUNZbDRQYnROd2Z1a1BFdXZjNDRLOCZleHA9MTc1MDc4MTQzNjcxNiZzaWc9Sno4aHg4LWN4M3BvdEhUaWZRZkxRVlhHXzFCQXFrSWctc3VYS3BFcmg4USZzZWM9Mk9hSXV1U0R2QkxMWlcxS3ZDd3I2bUFUbDB1VTlCSnJ3QWkzbGJKdTYwYyZpdj1pTTEydmFWeEFnOG5qT2htdXVFdS1n
              schema: {}
        "422":
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/HTTPValidationError"
    parameters:
      - description: API.market API Key
        in: header
        name: x-api-market-key
        value: Please Login/Signup to get an API Key
        required: true
        schema:
          type: string
components:
  schemas:
    HTTPValidationError:
      title: HTTPValidationError
      type: object
      properties:
        detail:
          title: Detail
          type: array
          items:
            $ref: "#/components/schemas/ValidationError"
    ValidationError:
      title: ValidationError
      required:
        - loc
        - msg
        - type
      type: object
      properties:
        loc:
          title: Location
          type: array
          items:
            anyOf:
              - type: string
              - type: integer
        msg:
          title: Message
          type: string
        type:
          title: Error Type
          type: string
security: {}
tags:
  - name: social
    description: Operations related to social
  - name: media
    description: Operations related to media
