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

> ## Agent Instructions
> - Base URLs: models `https://api.aisa.one/v1` (Gemini GenerateContent: `https://api.aisa.one/v1beta`); data APIs `https://api.aisa.one/apis/v1`. The `servers` of each operation in https://aisa.one/openapi.yaml is authoritative.
> - Auth: `Authorization: Bearer $AISA_API_KEY`. Never print, log, or commit the key.
> - MCP (preferred for agents): `https://mcp.aisa.one/mcp`, signed in with OAuth, so there is no key to paste.
> - Agent Skill: `npx skills add AIsa-team/agent-skills --skill aisa`. Fallback with the AIsa CLI: `aisa skills install aisa`.
> - Spending: docs, https://aisa.one/models, https://aisa.one/api, `/v1/models`, and MCP `search`, `list_categories`, `get_details`, `batch_quote`, and the `account` operation are free. Quote the exact calls before running them (MCP `batch_quote`, CLI `aisa quote --json`). If the quote reports `auto_execute_eligible: true`, run it unless the user set a tighter limit or asked only for a quote. Otherwise, tell the user in one message the planned calls, the quoted price, and a total USD budget for the task, then wait for approval. Direct HTTP calls follow the stricter rule at https://aisa.one/docs/get-started/cli.md#direct-http-fallback. Do not make paid calls to test availability. Full rule: https://aisa.one/llms.txt

# List Instagram location media

> Lists posts and Reels tagged at an Instagram location. Results are paged: when `data.page.nextCursor` is present, send it as `cursor` to get the next page. `data.page.hasMore` can be null when the response cannot tell whether more results exist.

> **Request example pending verification.** The request example for this endpoint has not yet been verified in production. Static examples describe the request format; replace sample values with your own. Check the estimated price with a free quote request (`X-AISA-Cost-Mode: quote`) before running it.

## Request contract

* **Method and path:** GET /apis/v1/instagram/locations/\{locationId}/media
* **Availability:** enabled
* **Request URL template:** `https://api.aisa.one/apis/v1/instagram/locations/{locationId}/media`
* **locationId:** path; required
* **cursor:** query; optional
* **tab:** query; optional

[Complete OpenAPI definition](https://aisa.one/docs/openapi-public/instagram.json)

Effective request declaration (including authentication and referenced schemas):

```json theme={null}
{
  "operationId": "instagram.locations.locationId.media",
  "method": "GET",
  "path": "/apis/v1/instagram/locations/{locationId}/media",
  "servers": [
    {
      "url": "https://api.aisa.one"
    }
  ],
  "parameters": [
    {
      "in": "path",
      "name": "locationId",
      "required": true,
      "schema": {
        "description": "Location id (digits) or its instagram.com location URL.",
        "maxLength": 4096,
        "minLength": 1,
        "type": "string"
      }
    },
    {
      "in": "query",
      "name": "cursor",
      "required": false,
      "schema": {
        "description": "`nextCursor` from the previous page.",
        "maxLength": 16384,
        "minLength": 1,
        "type": "string"
      }
    },
    {
      "in": "query",
      "name": "tab",
      "required": false,
      "schema": {
        "description": "`top` (default) or `recent`.",
        "enum": [
          "recent",
          "top"
        ],
        "maxLength": 4096,
        "minLength": 1,
        "type": "string"
      }
    }
  ],
  "security": [
    {
      "bearerAuth": []
    }
  ],
  "x-aisa-status": "enabled",
  "components": {
    "securitySchemes": {
      "bearerAuth": {
        "scheme": "bearer",
        "type": "http"
      }
    }
  }
}
```

## Observed response structure

The response observations below come from successful probes or sampled requests. They are partial: fields and types may vary, and no field is guaranteed to be present. Reviewed response definitions take precedence. No real response values are published.

* **HTTP status / last observed:** 200 / 2026-11-14

```json theme={null}
{
  "additionalProperties": true,
  "properties": {
    "data": {
      "additionalProperties": true,
      "properties": {
        "lookupStatus": {
          "type": "string"
        },
        "media": {
          "items": {
            "additionalProperties": true,
            "properties": {
              "altText": {
                "type": "null"
              },
              "audio": {
                "type": "null"
              },
              "caption": {
                "type": [
                  "null",
                  "string"
                ]
              },
              "carousel": {
                "items": {
                  "additionalProperties": true,
                  "properties": {
                    "altText": {
                      "type": "null"
                    },
                    "dimensions": {
                      "additionalProperties": true,
                      "properties": {
                        "height": {
                          "type": "integer"
                        },
                        "width": {
                          "type": "integer"
                        }
                      },
                      "type": "object"
                    },
                    "durationSec": {
                      "type": "null"
                    },
                    "id": {
                      "type": "string"
                    },
                    "imageUrl": {
                      "type": "string"
                    },
                    "mediaType": {
                      "type": "string"
                    },
                    "videoUrl": {
                      "type": [
                        "null",
                        "string"
                      ]
                    }
                  },
                  "type": "object"
                },
                "type": [
                  "null",
                  "array"
                ]
              },
              "coauthors": {
                "items": {
                  "additionalProperties": true,
                  "properties": {
                    "avatarUrl": {
                      "type": "string"
                    },
                    "displayName": {
                      "type": [
                        "null",
                        "string"
                      ]
                    },
                    "handle": {
                      "type": "string"
                    },
                    "id": {
                      "type": "string"
                    },
                    "privateAccount": {
                      "type": "boolean"
                    },
                    "verified": {
                      "type": "boolean"
                    }
                  },
                  "type": "object"
                },
                "type": "array"
              },
              "commentsDisabled": {
                "type": "boolean"
              },
              "createdAt": {
                "type": "string"
              },
              "dimensions": {
                "additionalProperties": true,
                "properties": {
                  "height": {
                    "type": "integer"
                  },
                  "width": {
                    "type": "integer"
                  }
                },
                "type": "object"
              },
              "durationSec": {
                "type": "null"
              },
              "id": {
                "type": "string"
              },
              "imageUrl": {
                "type": "string"
              },
              "isPaidPartnership": {
                "type": "boolean"
              },
              "isPinned": {
                "type": "null"
              },
              "kind": {
                "type": "string"
              },
              "location": {
                "additionalProperties": true,
                "properties": {
                  "id": {
                    "type": "string"
                  },
                  "lat": {
                    "type": "number"
                  },
                  "lng": {
                    "type": "number"
                  },
                  "name": {
                    "type": "string"
                  }
                },
                "type": "object"
              },
              "mediaType": {
                "type": "string"
              },
              "metrics": {
                "additionalProperties": true,
                "properties": {
                  "commentCount": {
                    "type": "integer"
                  },
                  "likeCount": {
                    "type": [
                      "null",
                      "integer"
                    ]
                  },
                  "likesHidden": {
                    "type": "boolean"
                  },
                  "playCount": {
                    "type": "null"
                  },
                  "saveCount": {
                    "type": "null"
                  },
                  "shareCount": {
                    "type": "null"
                  }
                },
                "type": "object"
              },
              "owner": {
                "additionalProperties": true,
                "properties": {
                  "avatarUrl": {
                    "type": "string"
                  },
                  "displayName": {
                    "type": "string"
                  },
                  "handle": {
                    "type": "string"
                  },
                  "id": {
                    "type": "string"
                  },
                  "privateAccount": {
                    "type": "boolean"
                  },
                  "verified": {
                    "type": "boolean"
                  }
                },
                "type": "object"
              },
              "shortcode": {
                "type": "string"
              },
              "sponsors": {
                "items": {},
                "type": "array"
              },
              "story": {
                "type": "null"
              },
              "taggedUsers": {
                "items": {
                  "additionalProperties": true,
                  "properties": {
                    "avatarUrl": {
                      "type": "string"
                    },
                    "displayName": {
                      "type": [
                        "null",
                        "string"
                      ]
                    },
                    "handle": {
                      "type": "string"
                    },
                    "id": {
                      "type": "string"
                    },
                    "privateAccount": {
                      "type": "boolean"
                    },
                    "verified": {
                      "type": "boolean"
                    }
                  },
                  "type": "object"
                },
                "type": "array"
              },
              "thumbnailUrl": {
                "type": "string"
              },
              "url": {
                "type": "string"
              },
              "videoUrl": {
                "type": "null"
              }
            },
            "type": "object"
          },
          "type": "array"
        },
        "page": {
          "additionalProperties": true,
          "properties": {
            "count": {
              "type": "null"
            },
            "hasMore": {
              "type": "boolean"
            },
            "kind": {
              "type": "string"
            },
            "nextCursor": {
              "type": "string"
            },
            "page": {
              "type": "null"
            },
            "returnedCount": {
              "type": "integer"
            },
            "start": {
              "type": "null"
            },
            "total": {
              "type": "null"
            },
            "totalPages": {
              "type": "null"
            }
          },
          "type": "object"
        }
      },
      "type": "object"
    },
    "meta": {
      "additionalProperties": true,
      "properties": {
        "version": {
          "type": "string"
        }
      },
      "type": "object"
    }
  },
  "type": "object"
}
```

## Cost and request rules

Usage-based pricing. Default request estimate: \$0.014 USD. The final charge depends on actual usage. Your account price may differ; use a request quote where supported.

## Pagination

* Pass `aisa_pagination.next_cursor` as `cursor` (query parameter) to fetch the next page; stop when `aisa_pagination.has_more` is false.
* The same values are returned in the `X-AISA-Has-More` and `X-AISA-Next-Cursor` response headers.

## Response time

* Typically returns within 10 seconds.


## OpenAPI

````yaml openapi-public/instagram.json GET /apis/v1/instagram/locations/{locationId}/media
openapi: 3.1.0
info:
  description: ''
  title: Instagram
  version: '1'
  x-aisa-capabilities:
    idempotency: Idempotency-Key
    max_price: X-AISA-Max-Price-USD
    quote:
      header: X-AISA-Cost-Mode
      value: quote
  x-aisa-catalogs:
    instagram:
      description: ''
      title: Instagram
      x-aisa-capabilities:
        idempotency: Idempotency-Key
        max_price: X-AISA-Max-Price-USD
        quote:
          header: X-AISA-Cost-Mode
          value: quote
      x-aisa-document:
        facts_hash: aaaa83ae44000e3d4bc1bf805ed3d7e18b6fc977e22b51a5c2d39727b2ee6ad1
        generator_version: '3'
        protocol_version: '1'
        schema_version: '1'
      x-aisa-plans:
        builder: 1
        display_plan: payg
        payg: 1
        similarweb_payg: 1
        team: 1
        version: e70a0959cd1b93b84ae16dffd7a538273ddb9c1d46277b82823c37ff1b6bc0fb
  x-aisa-configured-paths:
    - /apis/v1/instagram/audio/search
    - /apis/v1/instagram/audio/{audioId}
    - /apis/v1/instagram/audio/{audioId}/media
    - /apis/v1/instagram/hashtags/search
    - /apis/v1/instagram/hashtags/{hashtag}
    - /apis/v1/instagram/hashtags/{hashtag}/media
    - /apis/v1/instagram/highlights/{highlightId}
    - /apis/v1/instagram/locations/search
    - /apis/v1/instagram/locations/{locationId}
    - /apis/v1/instagram/locations/{locationId}/media
    - /apis/v1/instagram/media/{media}
    - /apis/v1/instagram/media/{media}/comments
    - /apis/v1/instagram/media/{media}/comments/{commentId}/replies
    - /apis/v1/instagram/media/{media}/transcript
    - /apis/v1/instagram/profiles/search
    - /apis/v1/instagram/profiles/{profile}
    - /apis/v1/instagram/profiles/{profile}/engagement
    - /apis/v1/instagram/profiles/{profile}/following
    - /apis/v1/instagram/profiles/{profile}/highlights
    - /apis/v1/instagram/profiles/{profile}/media
    - /apis/v1/instagram/profiles/{profile}/stories
    - /apis/v1/instagram/topics/{topic}
  x-aisa-document:
    composer_version: '31'
    facts_hash: aaaa83ae44000e3d4bc1bf805ed3d7e18b6fc977e22b51a5c2d39727b2ee6ad1
    generator_version: '3'
    protocol_version: '1'
    response_pending: []
    schema_version: '1'
    public_projection:
      version: '4'
      source_document_hash: sha256:46e11cfaad73c83397fce816a35d8dbb7f2f05f436060392d3ab9296805a184d
    document_hash: sha256:b50800009290b7a8ea41b51f03bbad1809ec76b15d10c7c4b22946c1111919f3
  x-aisa-plans:
    builder: 1
    display_plan: payg
    payg: 1
    similarweb_payg: 1
    team: 1
    version: e70a0959cd1b93b84ae16dffd7a538273ddb9c1d46277b82823c37ff1b6bc0fb
  x-aisa-provider: instagram
servers:
  - url: https://api.aisa.one
security:
  - bearerAuth: []
paths:
  /apis/v1/instagram/locations/{locationId}/media:
    get:
      tags:
        - Instagram
      summary: List Instagram location media
      description: >-
        Lists posts and Reels tagged at an Instagram location. Results are
        paged: when `data.page.nextCursor` is present, send it as `cursor` to
        get the next page. `data.page.hasMore` can be null when the response
        cannot tell whether more results exist.


        > **Request example pending verification.** The request example for this
        endpoint has not yet been verified in production. Static examples
        describe the request format; replace sample values with your own. Check
        the estimated price with a free quote request (`X-AISA-Cost-Mode:
        quote`) before running it.
      operationId: instagram.locations.locationId.media
      parameters:
        - in: path
          name: locationId
          required: true
          schema:
            description: Location id (digits) or its instagram.com location URL.
            maxLength: 4096
            minLength: 1
            type: string
        - in: query
          name: cursor
          required: false
          schema:
            description: '`nextCursor` from the previous page.'
            maxLength: 16384
            minLength: 1
            type: string
        - in: query
          name: tab
          required: false
          schema:
            description: '`top` (default) or `recent`.'
            enum:
              - recent
              - top
            maxLength: 4096
            minLength: 1
            type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                additionalProperties: true
                properties:
                  aisa_pagination:
                    additionalProperties: false
                    description: >-
                      AIsa pagination. Pass next_cursor as cursor to fetch the
                      next page; has_more is false on the last page.
                    properties:
                      has_more:
                        type: boolean
                      next_cursor:
                        type:
                          - string
                          - 'null'
                      next_param:
                        const: cursor
                        type: string
                    required:
                      - has_more
                      - next_cursor
                      - next_param
                    type: object
                  data:
                    additionalProperties: true
                    properties:
                      lookupStatus:
                        type: string
                      media:
                        items:
                          additionalProperties: true
                          properties:
                            altText:
                              type: 'null'
                            audio:
                              type: 'null'
                            caption:
                              type:
                                - 'null'
                                - string
                            carousel:
                              items:
                                additionalProperties: true
                                properties:
                                  altText:
                                    type: 'null'
                                  dimensions:
                                    additionalProperties: true
                                    properties:
                                      height:
                                        type: integer
                                      width:
                                        type: integer
                                    type: object
                                  durationSec:
                                    type: 'null'
                                  id:
                                    type: string
                                  imageUrl:
                                    type: string
                                  mediaType:
                                    type: string
                                  videoUrl:
                                    type:
                                      - 'null'
                                      - string
                                type: object
                              type:
                                - 'null'
                                - array
                            coauthors:
                              items:
                                additionalProperties: true
                                properties:
                                  avatarUrl:
                                    type: string
                                  displayName:
                                    type:
                                      - 'null'
                                      - string
                                  handle:
                                    type: string
                                  id:
                                    type: string
                                  privateAccount:
                                    type: boolean
                                  verified:
                                    type: boolean
                                type: object
                              type: array
                            commentsDisabled:
                              type: boolean
                            createdAt:
                              type: string
                            dimensions:
                              additionalProperties: true
                              properties:
                                height:
                                  type: integer
                                width:
                                  type: integer
                              type: object
                            durationSec:
                              type: 'null'
                            id:
                              type: string
                            imageUrl:
                              type: string
                            isPaidPartnership:
                              type: boolean
                            isPinned:
                              type: 'null'
                            kind:
                              type: string
                            location:
                              additionalProperties: true
                              properties:
                                id:
                                  type: string
                                lat:
                                  type: number
                                lng:
                                  type: number
                                name:
                                  type: string
                              type: object
                            mediaType:
                              type: string
                            metrics:
                              additionalProperties: true
                              properties:
                                commentCount:
                                  type: integer
                                likeCount:
                                  type:
                                    - 'null'
                                    - integer
                                likesHidden:
                                  type: boolean
                                playCount:
                                  type: 'null'
                                saveCount:
                                  type: 'null'
                                shareCount:
                                  type: 'null'
                              type: object
                            owner:
                              additionalProperties: true
                              properties:
                                avatarUrl:
                                  type: string
                                displayName:
                                  type: string
                                handle:
                                  type: string
                                id:
                                  type: string
                                privateAccount:
                                  type: boolean
                                verified:
                                  type: boolean
                              type: object
                            shortcode:
                              type: string
                            sponsors:
                              items: {}
                              type: array
                            story:
                              type: 'null'
                            taggedUsers:
                              items:
                                additionalProperties: true
                                properties:
                                  avatarUrl:
                                    type: string
                                  displayName:
                                    type:
                                      - 'null'
                                      - string
                                  handle:
                                    type: string
                                  id:
                                    type: string
                                  privateAccount:
                                    type: boolean
                                  verified:
                                    type: boolean
                                type: object
                              type: array
                            thumbnailUrl:
                              type: string
                            url:
                              type: string
                            videoUrl:
                              type: 'null'
                          type: object
                        type: array
                      page:
                        additionalProperties: true
                        properties:
                          count:
                            type: 'null'
                          hasMore:
                            type: boolean
                          kind:
                            type: string
                          nextCursor:
                            type: string
                          page:
                            type: 'null'
                          returnedCount:
                            type: integer
                          start:
                            type: 'null'
                          total:
                            type: 'null'
                          totalPages:
                            type: 'null'
                        type: object
                    type: object
                  meta:
                    additionalProperties: true
                    properties:
                      version:
                        type: string
                    type: object
                type: object
          description: >-
            Observed successful JSON response. This partial structure comes from
            successful probe or sampled requests; fields and types may vary. No
            field is guaranteed to be present. Last observed: 2026-11-14.
          headers:
            X-AISA-Has-More:
              description: Mirrors aisa_pagination.has_more.
              schema:
                enum:
                  - 'true'
                  - 'false'
                type: string
            X-AISA-Next-Cursor:
              description: Mirrors aisa_pagination.next_cursor; absent on the last page.
              schema:
                type: string
          x-aisa-response-observation:
            completeness: observed
            last_observed: '2026-11-14'
            origins:
              - probe
        default:
          content:
            application/json:
              schema: {}
          description: >-
            Error response; upstream passthrough responses may use provider
            formats
components:
  securitySchemes:
    bearerAuth:
      scheme: bearer
      type: http

````

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