Before launching a campaign, it is useful to give a team member not the entire list of IG accounts, but only the rows with a specific reason to check the data manually: the profile is private, the returned username differs from the original, or the API response does not contain the expected profile object. The example below builds such a queue from a CSV and saves observed fields without inventing values. The example code has not been run against a real account list.

Prepare the List and Review Rules
The input file profiles.csv contains a username column. The script trims whitespace at either end and removes a leading @ from the username. Blank rows remain in the report with an explanation; no request is sent for them.
In this scenario, the reasons for manual review are explicit: is_private is true; the returned username differs from the normalized input; the outer response status is not ok; or the ig object is missing. These are routing rules for a work queue. They help determine the next step.
Request a Profile Through the API
The endpoint documentation describes the GET /v1/user/by/username request, which requires the username parameter and optionally accepts cache_timeout. The key is passed as license_key; the IG Scraper API page shows the base address https://ig.jsonscraper.com and an example request. A positive cache_timeout value enables caching for the specified number of seconds; caching is disabled at zero.
Save the key in the JSONSCRAPER_INSTAGRAM_LICENSE_KEY environment variable, rather than adding it to the list file or logs. The following example is for Python 3.8+ and the requests library. It writes review_queue.csv with review reasons, status, and the fields that were actually present in the ig object.
import csv
import os
import requests
API_URL = "https://ig.jsonscraper.com/v1/user/by/username"
LICENSE_KEY = os.environ["JSONSCRAPER_INSTAGRAM_LICENSE_KEY"]
FIELDS = ("username", "full_name", "is_private", "is_verified", "media_count")
with open("profiles.csv", newline="", encoding="utf-8") as source, \
open("review_queue.csv", "w", newline="", encoding="utf-8") as output:
reader = csv.DictReader(source)
columns = ["input_username", "status", "reason", *FIELDS]
writer = csv.DictWriter(output, fieldnames=columns)
writer.writeheader()
for row in reader:
raw = (row.get("username") or "").strip()
username = raw.removeprefix("@").strip()
result = {"input_username": raw, "status": "review", "reason": "", **{f: "" for f in FIELDS}}
if not username:
result["reason"] = "пустое имя пользователя"
writer.writerow(result)
continue
try:
response = requests.get(
API_URL,
params={"username": username, "license_key": LICENSE_KEY},
timeout=30,
)
response.raise_for_status()
payload = response.json()
profile = payload.get("ig")
if payload.get("status") != "ok" or not isinstance(profile, dict):
result["reason"] = "ответ без ожидаемого статуса или объекта ig"
else:
for field in FIELDS:
if field in profile:
result[field] = profile[field]
reasons = []
returned_username = profile.get("username")
if returned_username and returned_username.casefold() != username.casefold():
reasons.append("username в ответе отличается от входного")
if profile.get("is_private") is True:
reasons.append("профиль закрытый")
result["reason"] = "; ".join(reasons)
result["status"] = "review" if reasons else "received"
except (requests.RequestException, ValueError) as error:
result["reason"] = f"ошибка запроса или разбора ответа: {type(error).__name__}"
writer.writerow(result)
Before running the script, install requests, set the environment variable, and prepare the input CSV. For repeated runs, you can add the documented cache_timeout parameter with a value in seconds that suits your process. When caching is enabled, a repeated request within that window may return a cached response; details are provided on the IG Scraper API page.
How to Read the Resulting CSV
In review_queue.csv, each input row receives a status and a brief reason. The received status means that the response had the expected structure and the specified rules did not add a review reason. It describes how the row was processed, not approval of the profile. If a field is absent, its cell remains blank. In the observed response schema for a check on October 25, 2026, the ig object included the fields username, full_name, is_private, is_verified, and media_count; that schema applies to this specific example.

The example code has not been run against a real account list; actual report rows will appear after you run it with your license. A team member can open records with the review status, compare them with the brief, and record the final decision in a separate column or campaign system.
What This Check Actually Confirms
A lookup by username provides a set of fields for preliminary sorting. is_verified records the indicator in the API response, while is_private records the privacy status. These values alone do not establish who manages the account, whether the creator meets the campaign’s commercial terms, or whether their audience is a good fit. Check these conditions against the brief and your team’s working criteria before making a final decision.
To get started, check the parameter names and request format in the official API documentation, then set up access on the IG Scraper API page. The result is a queue of profiles with specified reasons for manual review; decisions about approval remain with the team member.