Skip to the content.

Account

The Instagram account behind the current access token, on $instagram->account().

$profile = $instagram->account()->me();
{
  "user_id": "17841400000000000",
  "name": "Test Page",
  "biography": "We sell things",
  "username": "test_page",
  "followers_count": 1234,
  "follows_count": 56,
  "profile_picture_url": "https://scontent.cdninstagram.com/...",
  "website": "https://example.com",
  "id": "1234567890123456"
}

Ask for a narrower set of fields when you do not need all of it:

$instagram->account()->me(['username', 'followers_count']);

To read a different account, swap the token first:

$instagram->withToken($otherAccountToken)->account()->me();