stophy-dev Instagram API

The Instagram API from stophy-dev — 5 operation(s) for instagram.

Operations 5

POST /v1/instagram/comments Scrape the comments of an Instagram post #
POST /v1/instagram/post Scrape an Instagram post or reel #
POST /v1/instagram/profile Scrape an Instagram profile and its posts #
POST /v1/instagram/profile/reels Scrape an Instagram profile's reels #
POST /v1/instagram/transcript Scrape an Instagram video's transcript #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/stophy-dev:stophy-dev-instagram-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

stophy-dev-instagram-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Stophy Instagram API
  version: '1'
  description: 'Every endpoint is a POST that takes its input as a JSON object body. Unknown fields are rejected with 400.


    Responses leave out empty values: null, empty strings, empty objects and empty nested lists are not sent.


    Text comes back whole. To get shorter responses, add ?maxTextLength= to the URL. Every text value longer than that is cut and ends with …. A screenshot is never cut, and a page whose text was cut has isTruncated set to true.


    x-credits is what one call costs. Every call costs the same, whatever it returns, unless an operation''s description says it costs per 10 results, or per second of audio. Then x-credits is the lowest price and x-credits-max the most one call can cost. Where an operation takes limit, send it to return fewer results and pay for fewer.


    When a response has a cursor, send it back unchanged with the same input to get the next page. When it has a page, send the next page number.


    Endpoints whose security includes {} also work without an API key: 10 requests a minute and 50 a day per IP, and no paging.'
servers:
- url: https://api.stophy.dev
security:
- apiKey: []
tags:
- name: Instagram
paths:
  /v1/instagram/comments:
    post:
      operationId: instagramComments
      summary: Scrape the comments of an Instagram post
      description: Costs 1 credit per call. Pages with cursor.
      x-credits: 1
      parameters:
      - $ref: '#/components/parameters/MaxTextLength'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                postUrl:
                  type: string
                  description: Link to the Instagram post or reel, like https://www.instagram.com/p/DdG4RIxIPyf/. Send this or postCode.
                postCode:
                  type: string
                  description: Instagram post or reel code, like DdG4RIxIPyf. Send this or postUrl.
                cursor:
                  type: string
                  minLength: 1
                  description: The cursor from the previous response. Send it as is.
              sendOne:
              - postUrl
              - postCode
              additionalProperties: false
      responses:
        '200':
          description: The data, and the credits this call used.
          headers:
            X-Request-ID:
              $ref: '#/components/headers/RequestId'
            x-credits-used:
              $ref: '#/components/headers/CreditsUsed'
            X-RateLimit-Limit:
              $ref: '#/components/headers/RateLimitLimit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/RateLimitRemaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/RateLimitReset'
            x-cache:
              $ref: '#/components/headers/Cache'
            x-cache-age:
              $ref: '#/components/headers/CacheAge'
          content:
            application/json:
              schema:
                type: object
                required:
                - success
                - data
                - creditsUsed
                - requestId
                properties:
                  success:
                    const: true
                  data:
                    type: object
                    additionalProperties: false
                    properties:
                      results:
                        type: array
                        items:
                          type: object
                          additionalProperties: false
                          properties:
                            commentId:
                              type: string
                            commentUrl:
                              type: string
                              format: uri
                            authorId:
                              type: string
                            authorUsername:
                              type: string
                            authorUrl:
                              type: string
                              format: uri
                            authorAvatarUrl:
                              type: string
                              format: uri
                            authorIsVerified:
                              type: boolean
                            text:
                              type: string
                            likes:
                              type: integer
                              minimum: -9007199254740991
                              maximum: 9007199254740991
                            publishedAt:
                              type: string
                              format: date-time
                              pattern: ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$
                          required:
                          - commentUrl
                          - authorIsVerified
                      cursor:
                        type: string
                    required:
                    - results
                  creditsUsed:
                    type: integer
                  requestId:
                    type: string
        4XX:
          $ref: '#/components/responses/Error'
        5XX:
          $ref: '#/components/responses/Error'
      tags:
      - Instagram
  /v1/instagram/post:
    post:
      operationId: instagramPost
      summary: Scrape an Instagram post or reel
      description: Costs 1 credit per call.
      x-credits: 1
      parameters:
      - $ref: '#/components/parameters/MaxTextLength'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                postUrl:
                  type: string
                  description: Link to the Instagram post or reel, like https://www.instagram.com/p/DdG4RIxIPyf/. Send this or postCode.
                postCode:
                  type: string
                  description: Instagram post or reel code, like DdG4RIxIPyf. Send this or postUrl.
              sendOne:
              - postUrl
              - postCode
              additionalProperties: false
            example:
              postCode: DehZj9wggt0
      responses:
        '200':
          description: The data, and the credits this call used.
          headers:
            X-Request-ID:
              $ref: '#/components/headers/RequestId'
            x-credits-used:
              $ref: '#/components/headers/CreditsUsed'
            X-RateLimit-Limit:
              $ref: '#/components/headers/RateLimitLimit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/RateLimitRemaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/RateLimitReset'
            x-cache:
              $ref: '#/components/headers/Cache'
            x-cache-age:
              $ref: '#/components/headers/CacheAge'
          content:
            application/json:
              schema:
                type: object
                required:
                - success
                - data
                - creditsUsed
                - requestId
                properties:
                  success:
                    const: true
                  data:
                    type: object
                    additionalProperties: false
                    properties:
                      postId:
                        type: string
                      postCode:
                        type: string
                      postUrl:
                        type: string
                        format: uri
                      type:
                        type: string
                        enum:
                        - photo
                        - video
                        - reel
                        - carousel
                      text:
                        type: string
                      hashtags:
                        type: array
                        items:
                          type: string
                      mentions:
                        type: array
                        items:
                          type: string
                      publishedAt:
                        type: string
                        format: date-time
                        pattern: ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$
                      likes:
                        type: integer
                        minimum: -9007199254740991
                        maximum: 9007199254740991
                      views:
                        type: integer
                        minimum: -9007199254740991
                        maximum: 9007199254740991
                      thumbnailUrl:
                        type: string
                        format: uri
                      imageUrls:
                        type: array
                        items:
                          type: string
                          format: uri
                      videoUrls:
                        type: array
                        items:
                          type: string
                          format: uri
                      imageDescription:
                        type: string
                      isPinned:
                        type: boolean
                      authorId:
                        type: string
                      authorUsername:
                        type: string
                      authorName:
                        type: string
                      authorUrl:
                        type: string
                        format: uri
                      authorAvatarUrl:
                        type: string
                        format: uri
                      authorIsVerified:
                        type: boolean
                      taggedUsers:
                        type: array
                        items:
                          type: string
                      coauthors:
                        type: array
                        items:
                          type: string
                      audioTitle:
                        type: string
                      audioArtist:
                        type: string
                      audioIsOriginal:
                        type: boolean
                      isPaidPartnership:
                        type: boolean
                      sponsors:
                        type: array
                        items:
                          type: string
                      comments:
                        type: integer
                        minimum: -9007199254740991
                        maximum: 9007199254740991
                      results:
                        type: array
                        items:
                          type: object
                          additionalProperties: false
                          properties:
                            commentId:
                              type: string
                            commentUrl:
                              type: string
                              format: uri
                            authorId:
                              type: string
                            authorUsername:
                              type: string
                            authorUrl:
                              type: string
                              format: uri
                            authorAvatarUrl:
                              type: string
                              format: uri
                            authorIsVerified:
                              type: boolean
                            text:
                              type: string
                            likes:
                              type: integer
                              minimum: -9007199254740991
                              maximum: 9007199254740991
                            publishedAt:
                              type: string
                              format: date-time
                              pattern: ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$
                          required:
                          - commentUrl
                          - authorIsVerified
                    required:
                    - postUrl
                    - type
                    - hashtags
                    - mentions
                    - imageUrls
                    - videoUrls
                    - isPinned
                    - authorIsVerified
                    - taggedUsers
                    - coauthors
                    - isPaidPartnership
                    - sponsors
                    - results
                  creditsUsed:
                    type: integer
                  requestId:
                    type: string
        4XX:
          $ref: '#/components/responses/Error'
        5XX:
          $ref: '#/components/responses/Error'
      tags:
      - Instagram
  /v1/instagram/profile:
    post:
      operationId: instagramProfile
      summary: Scrape an Instagram profile and its posts
      description: Costs 1 credit per call. Pages with cursor.
      x-credits: 1
      parameters:
      - $ref: '#/components/parameters/MaxTextLength'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                userUrl:
                  type: string
                  description: Link to the Instagram profile, like https://www.instagram.com/natgeo. Send this or username.
                username:
                  type: string
                  description: Instagram profile username, like natgeo. Send this or userUrl.
                cursor:
                  type: string
                  minLength: 1
                  description: The cursor from the previous response. Send it as is.
              sendOne:
              - userUrl
              - username
              additionalProperties: false
            example:
              username: natgeo
      responses:
        '200':
          description: The data, and the credits this call used.
          headers:
            X-Request-ID:
              $ref: '#/components/headers/RequestId'
            x-credits-used:
              $ref: '#/components/headers/CreditsUsed'
            X-RateLimit-Limit:
              $ref: '#/components/headers/RateLimitLimit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/RateLimitRemaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/RateLimitReset'
            x-cache:
              $ref: '#/components/headers/Cache'
            x-cache-age:
              $ref: '#/components/headers/CacheAge'
          content:
            application/json:
              schema:
                type: object
                required:
                - success
                - data
                - creditsUsed
                - requestId
                properties:
                  success:
                    const: true
                  data:
                    type: object
                    additionalProperties: false
                    properties:
                      userId:
                        type: string
                      username:
                        type: string
                      userUrl:
                        type: string
                        format: uri
                      name:
                        type: string
                      bio:
                        type: string
                      bioLinkUrls:
                        type: array
                        items:
                          type: string
                          format: uri
                      isVerified:
                        type: boolean
                      isPrivate:
                        type: boolean
                      followers:
                        type: integer
                        minimum: -9007199254740991
                        maximum: 9007199254740991
                      following:
                        type: integer
                        minimum: -9007199254740991
                        maximum: 9007199254740991
                      posts:
                        type: integer
                        minimum: -9007199254740991
                        maximum: 9007199254740991
                      avatarUrl:
                        type: string
                        format: uri
                      postsAnalyzed:
                        type: integer
                        minimum: -9007199254740991
                        maximum: 9007199254740991
                      averageLikes:
                        type: number
                      engagementRate:
                        type: number
                      results:
                        type: array
                        items:
                          type: object
                          additionalProperties: false
                          properties:
                            postId:
                              type: string
                            postCode:
                              type: string
                            postUrl:
                              type: string
                              format: uri
                            type:
                              type: string
                              enum:
                              - photo
                              - video
                              - reel
                              - carousel
                            text:
                              type: string
                            hashtags:
                              type: array
                              items:
                                type: string
                            mentions:
                              type: array
                              items:
                                type: string
                            likes:
                              type: integer
                              minimum: -9007199254740991
                              maximum: 9007199254740991
                            views:
                              type: integer
                              minimum: -9007199254740991
                              maximum: 9007199254740991
                            imageUrl:
                              type: string
                              format: uri
                            imageDescription:
                              type: string
                            authorId:
                              type: string
                            authorUsername:
                              type: string
                          required:
                          - postUrl
                          - type
                      cursor:
                        type: string
                    required:
                    - results
                  creditsUsed:
                    type: integer
                  requestId:
                    type: string
        4XX:
          $ref: '#/components/responses/Error'
        5XX:
          $ref: '#/components/responses/Error'
      tags:
      - Instagram
  /v1/instagram/profile/reels:
    post:
      operationId: instagramProfileReels
      summary: Scrape an Instagram profile's reels
      description: Costs 1 credit per call. Pages with cursor.
      x-credits: 1
      parameters:
      - $ref: '#/components/parameters/MaxTextLength'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                userUrl:
                  type: string
                  description: Link to the Instagram profile, like https://www.instagram.com/natgeo. Send this or username.
                username:
                  type: string
                  description: Instagram profile username, like natgeo. Send this or userUrl.
                cursor:
                  type: string
                  minLength: 1
                  description: The cursor from the previous response. Send it as is.
              sendOne:
              - userUrl
              - username
              additionalProperties: false
            example:
              username: natgeo
      responses:
        '200':
          description: The data, and the credits this call used.
          headers:
            X-Request-ID:
              $ref: '#/components/headers/RequestId'
            x-credits-used:
              $ref: '#/components/headers/CreditsUsed'
            X-RateLimit-Limit:
              $ref: '#/components/headers/RateLimitLimit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/RateLimitRemaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/RateLimitReset'
            x-cache:
              $ref: '#/components/headers/Cache'
            x-cache-age:
              $ref: '#/components/headers/CacheAge'
          content:
            application/json:
              schema:
                type: object
                required:
                - success
                - data
                - creditsUsed
                - requestId
                properties:
                  success:
                    const: true
                  data:
                    type: object
                    additionalProperties: false
                    properties:
                      results:
                        type: array
                        items:
                          type: object
                          additionalProperties: false
                          properties:
                            postId:
                              type: string
                            postCode:
                              type: string
                            postUrl:
                              type: string
                              format: uri
                            likes:
                              type: integer
                              minimum: -9007199254740991
                              maximum: 9007199254740991
                            comments:
                              type: integer
                              minimum: -9007199254740991
                              maximum: 9007199254740991
                            views:
                              type: integer
                              minimum: -9007199254740991
                              maximum: 9007199254740991
                            imageUrl:
                              type: string
                              format: uri
                            isPinned:
                              type: boolean
                            authorId:
                              type: string
                            authorUsername:
                              type: string
                          required:
                          - postUrl
                          - isPinned
                      cursor:
                        type: string
                    required:
                    - results
                  creditsUsed:
                    type: integer
                  requestId:
                    type: string
        4XX:
          $ref: '#/components/responses/Error'
        5XX:
          $ref: '#/components/responses/Error'
      tags:
      - Instagram
  /v1/instagram/transcript:
    post:
      operationId: instagramTranscript
      summary: Scrape an Instagram video's transcript
      description: Costs 2 credits plus 1 credit for every 10 seconds of audio, up to 30 minutes.
      x-credits: 3
      x-credits-max: 182
      parameters:
      - $ref: '#/components/parameters/MaxTextLength'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                videoUrl:
                  type: string
                  description: Link to the Instagram reel or video post, like https://www.instagram.com/reel/DdG4RIxIPyf/. Send this or videoId.
                videoId:
                  type: string
                  description: Instagram reel or video post post code, like DdG4RIxIPyf. Send this or videoUrl.
                language:
                  type: string
                  pattern: ^[A-Za-z]{2,3}(?:[-_][A-Za-z0-9]{2,4})?$
                  description: BCP 47 language tag, e.g. en or pt-BR. Any case is accepted.
                includeTimestamps:
                  default: false
                  type: boolean
              sendOne:
              - videoUrl
              - videoId
              additionalProperties: false
            example:
              videoUrl: https://www.instagram.com/reel/DdG4RIxIPyf/
      responses:
        '200':
          description: The data, and the credits this call used.
          headers:
            X-Request-ID:
              $ref: '#/components/headers/RequestId'
            x-credits-used:
              $ref: '#/components/headers/CreditsUsed'
            X-RateLimit-Limit:
              $ref: '#/components/headers/RateLimitLimit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/RateLimitRemaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/RateLimitReset'
            x-cache:
              $ref: '#/components/headers/Cache'
            x-cache-age:
              $ref: '#/components/headers/CacheAge'
          content:
            application/json:
              schema:
                type: object
                required:
                - success
                - data
                - creditsUsed
                - requestId
                properties:
                  success:
                    const: true
                  data:
                    type: object
                    additionalProperties: false
                    properties:
                      videoId:
                        type: string
                      videoUrl:
                        type: string
                        format: uri
                      language:
                        type: string
                      isAutoGenerated:
                        type: boolean
                      durationSeconds:
                        type: number
                      transcribedSeconds:
                        type: number
                      text:
                        type: string
                      segments:
                        type: array
                        items:
                          type: object
                          additionalProperties: false
                          properties:
                            startSeconds:
                              type: number
                            endSeconds:
                              type: number
                            text:
                              type: string
                          required:
                          - startSeconds
                          - endSeconds
                    required:
                    - videoUrl
                    - isAutoGenerated
                  creditsUsed:
                    type: integer
                  requestId:
                    type: string
        4XX:
          $ref: '#/components/responses/Error'
        5XX:
          $ref: '#/components/responses/Error'
      tags:
      - Instagram
components:
  headers:
    RateLimitLimit:
      description: Requests allowed in the current window.
      schema:
        type: integer
    Cache:
      description: hit if this result came from the cache, miss if it was fetched live.
      schema:
        type: string
    RateLimitRemaining:
      description: Requests left in the current window.
      schema:
        type: integer
    CreditsUsed:
      description: Credits this call used.
      schema:
        type: integer
    CacheAge:
      description: Seconds since the returned result was written to the cache.
      schema:
        type: integer
    RateLimitReset:
      description: Unix time in seconds when the current window resets.
      schema:
        type: integer
    RequestId:
      description: The request id. Quote it when you report a problem.
      schema:
        type: string
    RetryAfter:
      description: Seconds to wait before retrying.
      schema:
        type: integer
  parameters:
    MaxTextLength:
      name: maxTextLength
      in: query
      required: false
      description: Cut every text value in the response to this many characters. A value that was cut ends with …, and a page whose text was cut has isTruncated set to true. A screenshot is never cut. Leave it out to get the full text.
      schema:
        type: integer
        minimum: 1
  schemas:
    Error:
      type: object
      required:
      - success
      - error
      properties:
        success:
          const: false
        error:
          type: object
          required:
          - code
          - message
          - retryable
          - requestId
          properties:
            code:
              type: string
              enum:
              - cliSessionCompleted
              - cliSessionExists
              - cliSessionNotFound
              - forbidden
              - insufficientCredits
              - internalError
              - inviteClaimed
              - inviteDisabled
              - inviteExpired
              - inviteUsedUp
              - invalidCliSession
              - invalidCliVerifier
              - invalidRequest
              - notFound
              - rateLimited
              - sourceChanged
              - sourceRefused
              - sourceTimeout
              - sourceUnavailable
              - unauthorized
              - unsupportedMediaType
            message:
              type: string
            retryable:
              type: boolean
            retryAfterSeconds:
              type: integer
            requestId:
              type: string
            requiredCredits:
              type: number
            availableCredits:
              type: number
            billingUrl:
              type: string
              const: https://stophy.dev/billing
  responses:
    Error:
      description: The request failed. retryable says whether trying again can help.
      headers:
        X-Request-ID:
          $ref: '#/components/headers/RequestId'
        Retry-After:
          $ref: '#/components/headers/RetryAfter'
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
  securitySchemes:
    apiKey:
      type: http
      scheme: bearer