Tutorial · Instagram · cURL, Python, Node.js, PHP, Go, Ruby

Get when an Instagram account joined and its country

When the account joined, its country and username changes. Complete code for GET /v1/instagram/users/{user}/account-details in six languages and both official SDKs, each tested against the documented response.

Short answer. One call returns Instagram's "About this account" details: joined (month and year), country, is_verified and former_username_count. One object per account, no paging.

Facts checked 2 December 2026. Prices change: follow the links before you decide.

Why call it

  • Spot fake or recycled accounts while vetting influencers: a recent join date plus several username changes is worth a second look.
  • Add the country an account is based in to creator profiles for market and audience research.
  • Run brand-safety checks on an account before a partnership or a client report.

The request

GET https://api.handlehaul.com/v1/instagram/users/{user}/account-details with your key in the X-Api-Key header. When the account joined, its country and username changes. When the account joined, its country and username changes. 1 credit. Docs: https://api.handlehaul.com/docs/instagram-account-details-api

Parameters for When the account joined, its country and username changes
ParameterInDescription
user requiredpathNumeric user id (skips the lookup credit) or Instagram username. All digits = an id; write "@12345" for an all-digit username. A username we have to look up costs 1 extra credit (meta.lookup_credits).
byqueryOptional: says whether user is a username or an id, instead of guessing from the digits. One of: username, id.
freshquerytrue skips the cache (full price).

Code in 6 languages

Each sample is a complete program: it reads the key from HANDLEHAUL_API_KEY, waits and retries when the API answers 429 (using Retry-After), stops with the error code on anything else. The SDK versions do the retries for you.

instagram-account-details.sh

# When the account joined, its country and username changes. --retry waits out a 429 using its Retry-After header;
# --fail exits with code 22 on any other error (drop it to read the error JSON).
curl -sS --fail --retry 3 "https://api.handlehaul.com/v1/instagram/users/natgeo/account-details" \
  -H "X-Api-Key: $HANDLEHAUL_API_KEY"
Generated from the OpenAPI spec (2026-12-02); every sample was syntax-checked and run against a local mock serving the response below. Language guides: Python, Node.js, PHP, Go, Ruby, cURL.

Response

One object in data and meta with what the call cost. Example values, from the API docs. Lists are cut to two rows here.

200 · application/json
{
  "data": {
    "joined": "January 2021",
    "country": "Brazil",
    "is_verified": false,
    "former_username_count": 1
  },
  "meta": {
    "request_id": "req_…",
    "cached": false,
    "cache_age_seconds": 0,
    "credits_charged": 1,
    "credits_remaining": 26943
  }
}

Cost, cache and limits

  • 1 credit per call. At $1.40 to $0.80 per 1,000 calls. Cache hits, failed calls and 429 answers are free; meta.credits_charged says what each call cost.
  • Lookup credit. Naming the account by a username we have not looked up in the last 7 days adds 1 lookup credit (meta.lookup_credits). Send the numeric id from any result to skip it.
  • Cache. Answers are cached for 15 minutes. Add fresh=true to force a live call (billed).
  • Speed. Over your plan's requests-per-second limit the API answers 429 rate_limited with Retry-After; the samples wait that long and retry.
  • Private accounts. Public data only: a private account answers 403 private_account, and that call is free.
  • Testing. A kd_test_ key returns sample data in this exact shape at no cost, so you can run the code before you spend anything.

Things to know

  • joined is a month-and-year string as Instagram shows it (for example "January 2021"), not a timestamp. Parse it yourself if you need a date.
  • former_username_count is a number. The old usernames themselves are not part of the response.
  • The response holds only these four fields. Call the profile route for bio, picture and follower counts.

Next steps

Instagram account details API: questions

How do I see when an Instagram account was created?
Call GET /v1/instagram/users/{user}/account-details. joined is the month and year Instagram shows, for example "June 2017".
Can I see how many times an Instagram account changed its username?
Yes: former_username_count in the same response. It is a count; the previous usernames are not returned.

Run it on real data

One key for Instagram and TikTok. $1.40 to $0.80 per 1,000 calls; failed calls and cache hits are free.

Want to test first? Sandbox keys are free and unlimited, with sample data in the live schema.