GroundsocialDocs

API · Instagram

GET /instagram/users/by-id/{user_id}

An Instagram profile looked up by numeric account id.

RequestGET /v1/instagram/users/by-id/{user_id}
Operation idinstagram.user.basic
Cost1 credit, refunded if the call fails
AuthAPI key: Authorization: Bearer <key> or x-api-key.

An Instagram profile looked up by numeric account id.

Path parameters

NameTypeRequiredDescription
user_idstringyesNumeric account id (pk). Example: 787132.

Responses

StatusMeaningSchema
200The profile.InstagramUserResponse
400Invalid input. Nothing was charged.Error
401Missing or invalid API key.Error
402Not enough credits, a spend cap was reached, or payment is required.Error
403The target is private, or the account is suspended.Error
404The account or post does not exist, or was removed.Error
429Too many requests. Wait for Retry-After seconds.Error
503Instagram is temporarily unavailable. Retryable; nothing was charged.Error

InstagramUserResponse fields

FieldTypeDescription
userInstagramUser
recent_mediaobject | nullThe latest posts (about 12), null with trim=true.

Errors use one shape everywhere; see Errors for every code and what to do.