API Documentation

Instagram Profile API

Read public Instagram identity, biography, avatar and available follower counts.

Test API

Read public Instagram identity, biography, avatar and available follower counts.

Open product page and API Tester

Endpoint and authentication

POST https://api.goanyapi.com/api/v1/instagram/user/profile

Results return synchronously, without tasks or polling. Authenticate using Authorization: Bearer YOUR_API_KEY and send a JSON request body. There are no Path or Query parameters.

Input parameters

ParameterLocationTypeRequiredDefaultConstraints and meaning
AuthorizationHeaderstringYes—Bearer YOUR_API_KEY
Content-TypeHeaderstringYesapplication/jsonapplication/json
usernameJSON bodystringYes—Username, @username or full Instagram profile URL, optionally ending in /reels/ or /tagged/. URL parsing is local and adds no separate charge. Short links and other resource types are unsupported. maxLength=2048

Use the same resource parameter for a raw identifier or supported full resource URL; no prerequisite ID lookup is needed. URL parsing adds no request or separate charge. Short links and other resource types are unsupported.

Username, @username or full Instagram profile URL, optionally ending in /reels/ or /tagged/. URL parsing is local and adds no separate charge. Short links and other resource types are unsupported.

Request example

POST /api/v1/instagram/user/profile
Authorization: Bearer YOUR_API_KEY
Content-Type: application/json

{
  "username": "https://www.instagram.com/peggyzou89/"
}

Output fields

Success returns HTTP 200. Business results are in data.result. Null, empty strings, empty arrays and missing business fields are preserved; zero is a valid statistic. Empty display fields do not invalidate an otherwise successful request.

FieldTypeMeaning
codestringok on success; error code otherwise
messagestringStatus message
data.resultobject / nullBusiness data; null is preserved
data.creditsUsedintegerCredits charged using current configuration
data.remainingCreditsnumberBalance after settlement
data.result.pkstringPublic business field; may be null, empty or absent
data.result.profile_pic_urlstringPublic business field; may be null, empty or absent
data.result.biographystringPublic business field; may be null, empty or absent
data.result.following_countintegerPublic business field; may be null, empty or absent
data.result.is_verifiedbooleanPublic business field; may be null, empty or absent
data.result.usernamestringPublic business field; may be null, empty or absent
data.result.full_namestringPublic business field; may be null, empty or absent
data.result.idstringPublic business field; may be null, empty or absent
data.result.follower_countintegerPublic business field; may be null, empty or absent

This endpoint has no pagination parameters.

Real response example

Saved from a real successful response with public business fields. The example omits live data.creditsUsed and data.remainingCredits, which use current configuration and account balance. No list records are omitted. Media URLs may expire. Displaying the example sends no request or charge.

{
  "code": "ok",
  "message": "ok",
  "data": {
    "result": {
      "username": "peggyzou89",
      "pk": "45252998620",
      "id": "17841445318616624",
      "full_name": "Wudang story",
      "is_verified": false,
      "biography": "",
      "follower_count": 23722,
      "following_count": 66,
      "profile_pic_url": "https://scontent.cdninstagram.com/v/t51.82787-19/641790739_18046595456510621_6828623856904319396_n.jpg?stp=dst-jpg_s150x150_tt6&_nc_cat=104&ig_cache_key=GBPzQCadKpdvSB1AAKQxit83JcRebmNDAQAB1501500j-ccb7-5&ccb=7-5&_nc_sid=669407&efg=eyJ2ZW5jb2RlX3RhZyI6InByb2ZpbGVfcGljLnd3dy4xMDgwLkMzIn0%3D&_nc_ohc=GLgHeEEWDtEQ7kNvwEcIb2V&_nc_oc=Adr2hUJMqB8Ze1C0p09s3N_W7I-Whjfp3NWT14wF9YYeqizrU3j8FhmUMoa3G_DyxWY&_nc_zt=24&_nc_ht=scontent.cdninstagram.com&_nc_gid=9tj0WTDUCNfowMHAYYjUTw&_nc_ss=79a8c&_nc_ct=RQosPBUCFQIAAAA&oh=00_AQT3MwyYVxO1U7JessdnxjFpYNplfhDVsdXxuoKAuXnDxg&oe=6B004646"
    }
  }
}

Billing

With the current configuration, each successful request costs 1 credit.

Every successful request, including empty results, is settled at the current database-configured rate. Failures are free. Sufficient balance is required before querying; insufficient balance during concurrent settlement returns 402 without delivering unsettled results. URL parsing adds no separate charge.

Status codes and errors

HTTPMeaning
200Success, including empty results
400Invalid JSON or parameters
401Invalid authentication
402Insufficient credits
429Rate limit; wait for Retry-After
502Data request failed
503API or pricing not configured
{"code":"invalid_params","message":"Invalid parameter"}