Depict.AI Instagram API

The Instagram API from Depict.AI — 4 operation(s) for instagram.

Operations 4

POST /instagram/{merchant_id}/account/connect Save Instagram Exchanged Code #
POST /instagram/{merchant_id}/account/disconnect Instagram Account Disconnect #
GET /instagram/{merchant_id}/account Get Account #
GET /instagram/{merchant_id}/media Get Instagram Media #

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/depictai-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

depictai-instagram-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Depict Lite Ab Test Instagram API
  version: 1.0.0
  description: 'REST API behind Depict Lite, the native Shopify app: onboarding, collections, boost & bury, dashboards, A/B testing and multi-store management. Endpoints are served under the /api/lite prefix and require an Auth0-issued bearer token.'
servers:
- url: /api/lite
tags:
- name: Instagram
paths:
  /instagram/{merchant_id}/account/connect:
    post:
      summary: Save Instagram Exchanged Code
      operationId: save_instagram_exchanged_code_instagram__merchant_id__account_connect_post
      security:
      - Auth0: []
      parameters:
      - name: merchant_id
        in: path
        required: true
        schema:
          type: string
          title: Merchant Id
      - name: encrypted_user_token
        in: query
        required: true
        schema:
          type: string
          description: Base64 string containing public key encrypted short lived user token obtained from facebook auth
          title: Encrypted User Token
      - name: redirect_uri
        in: query
        required: true
        schema:
          type: string
          description: Redirect uri used in oauth flow
          title: Redirect Uri
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      tags:
      - Instagram
  /instagram/{merchant_id}/account/disconnect:
    post:
      summary: Instagram Account Disconnect
      operationId: instagram_account_disconnect_instagram__merchant_id__account_disconnect_post
      security:
      - Auth0: []
      parameters:
      - name: merchant_id
        in: path
        required: true
        schema:
          type: string
          title: Merchant Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      tags:
      - Instagram
  /instagram/{merchant_id}/account:
    get:
      summary: Get Account
      operationId: get_account_instagram__merchant_id__account_get
      security:
      - Auth0: []
      parameters:
      - name: merchant_id
        in: path
        required: true
        schema:
          type: string
          title: Merchant Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                anyOf:
                - $ref: '#/components/schemas/InstagramAccount'
                - type: 'null'
                title: Response Get Account Instagram  Merchant Id  Account Get
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      tags:
      - Instagram
  /instagram/{merchant_id}/media:
    get:
      summary: Get Instagram Media
      operationId: get_instagram_media_instagram__merchant_id__media_get
      security:
      - Auth0: []
      parameters:
      - name: merchant_id
        in: path
        required: true
        schema:
          type: string
          title: Merchant Id
      - name: next_page
        in: query
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Next Page
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Media'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      tags:
      - Instagram
components:
  schemas:
    Paging:
      properties:
        cursors:
          $ref: '#/components/schemas/Cursors'
      type: object
      required:
      - cursors
      title: Paging
    MediaItem:
      properties:
        media_url:
          type: string
          title: Media Url
        media_type:
          $ref: '#/components/schemas/FacebookPostMediaType'
        id:
          type: string
          title: Id
        caption:
          anyOf:
          - type: string
          - type: 'null'
          title: Caption
        permalink:
          type: string
          title: Permalink
        like_count:
          anyOf:
          - type: integer
          - type: 'null'
          title: Like Count
        username:
          type: string
          title: Username
        comments_count:
          anyOf:
          - type: integer
          - type: 'null'
          title: Comments Count
        children:
          anyOf:
          - $ref: '#/components/schemas/ChildrenData'
          - type: 'null'
      type: object
      required:
      - media_url
      - media_type
      - id
      - permalink
      - username
      title: MediaItem
    FacebookMediaType:
      type: string
      enum:
      - IMAGE
      - VIDEO
      title: FacebookMediaType
    InstagramAccount:
      properties:
        id:
          type: string
          title: Id
        name:
          type: string
          title: Name
        profile_picture_url:
          anyOf:
          - type: string
          - type: 'null'
          title: Profile Picture Url
      type: object
      required:
      - id
      - name
      title: InstagramAccount
    FacebookPostMediaType:
      type: string
      enum:
      - IMAGE
      - VIDEO
      - CAROUSEL_ALBUM
      title: FacebookPostMediaType
    ChildrenData:
      properties:
        data:
          items:
            $ref: '#/components/schemas/ChildMediaItem'
          type: array
          title: Data
      type: object
      required:
      - data
      title: ChildrenData
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    Media:
      properties:
        data:
          items:
            $ref: '#/components/schemas/MediaItem'
          type: array
          title: Data
        paging:
          anyOf:
          - $ref: '#/components/schemas/Paging'
          - type: 'null'
      type: object
      required:
      - data
      title: Media
    ChildMediaItem:
      properties:
        media_url:
          type: string
          title: Media Url
        media_type:
          $ref: '#/components/schemas/FacebookMediaType'
        thumbnail_url:
          anyOf:
          - type: string
          - type: 'null'
          title: Thumbnail Url
        id:
          type: string
          title: Id
      type: object
      required:
      - media_url
      - media_type
      - id
      title: ChildMediaItem
    Cursors:
      properties:
        before:
          type: string
          title: Before
        after:
          type: string
          title: After
      type: object
      required:
      - before
      - after
      title: Cursors
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
            - type: string
            - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
      type: object
      required:
      - loc
      - msg
      - type
      title: ValidationError
  securitySchemes:
    Auth0:
      type: oauth2
      flows:
        authorizationCode:
          scopes:
            openid: OpenID Connect
            profile: User profile
            email: User email
          authorizationUrl: https://depict.eu.auth0.com/oauth/authorize
          tokenUrl: https://depict.eu.auth0.com/oauth/token
      x-tokenName: id_token