Get Instagram username by user ID
Resolves a numeric user_id to the account's current username, with a small profile stub (display name, avatar, verification). Useful for re-checking IDs you stored earlier, since usernames change but IDs do not.
3 credits / requestBilled only on success
Authorization
ApiKeyAuth x-api-key<token>
In: header
Query Parameters
user_id*string
Numeric user ID of a public account. Get it from the user_id field of the /user/info response.
Length
1 <= lengthcurl -X GET "https://example.com/v3/instagram/user/username?user_id=25025320" \ -H "x-api-key: YOUR_API_KEY"{ "data": { "pk": "string", "username": "string", "property1": null, "property2": null }}