Instagramget/id

Username from user ID

🧩 Identity Utilities
Cost / request

$0.01

Response format

JSON

Protocol

REST

About this endpoint

Access Instagram data through agntdata: Username from user ID. Retrieve the username using the user ID. Responses are structured JSON for AI agents, analytics, and automation — one API key instead of juggling upstream accounts. Ideal when you need user profiles, reels, explore, locations, and hashtag media programmatically.

Use cases

AI agents that need Instagram data in structured form
Analytics and monitoring pipelines for Instagram content
Research and GTM workflows that combine Instagram signals with other data

Parameters

NameInTypeRequiredDescription
fieldsquerystringoptionalUse the `fields` parameter to reduce bandwidth consumption and minimize response size by returning only the necessary data.
idquerynumberrequiredDefault: 18527

Responses

Successful response

{
  "type": "object"
}

Agent / Developer Schema

Machine-readable formats for integrating this endpoint into AI agents and toolchains.

{
  "operationId": "Username_from_user_ID",
  "method": "get",
  "path": "/id",
  "summary": "Username from user ID",
  "description": "Retrieve the username using the user ID.",
  "parameters": [
    {
      "name": "fields",
      "in": "query",
      "required": false,
      "schema": {
        "type": "string"
      },
      "description": "Use the `fields` parameter to reduce bandwidth consumption and minimize response size by returning only the necessary data."
    },
    {
      "name": "id",
      "in": "query",
      "required": true,
      "schema": {
        "type": "number",
        "default": "18527"
      }
    }
  ],
  "responses": [
    {
      "statusCode": "200",
      "description": "Successful response",
      "content": {
        "application/json": {
          "schema": {
            "type": "object"
          }
        }
      }
    },
    {
      "statusCode": "400",
      "description": "Bad request"
    },
    {
      "statusCode": "401",
      "description": "Unauthorized - invalid API key"
    },
    {
      "statusCode": "429",
      "description": "Rate limit exceeded"
    }
  ]
}

Pricing

$0.01per successful request

Credits are deducted from your agntdata balance on each successful API call. Failed requests (4xx/5xx) are not charged.

Related endpoints

Start using this endpoint

Generate your API key and make your first call in under a minute. Free tier available with transparent pricing.

Instagram APIInstagram data APIusername from user id APIAI agents data APIInstagram APIInstagram data APIInstagram for AI agents