# How to Build a Manual Review Queue for Instagram Profiles Before a Campaign

https://jsonscraper.com/blog/build-instagram-profile-manual-review-queue

Author: Michael Johnson

Published: 2026-11-23T11:36:46+00:00

Updated: 2026-11-23T11:36:46+00:00

Request profile details by username and export accounts with specific reasons for further review

Before launching a campaign, it is useful to give a team member not the entire list of Instagram 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.



![Article: How to Build a Manual Review Queue for Instagram Profiles Before a Campaign
Summary: This practical Python script turns a list of Instagram profiles into a CSV manual-review queue. It flags private accounts, username mismatches, and responses that need attention while preserving only fields actually returned.
Image role: cover — the central idea
Section: How to Request a Profile Through the API
Visual subject: Editorial still life of a campaign roster spreadsheet on paper beside a phone showing](https://jsonscraper.com/assets/uploads/journal/2026/11/bbc0f6280e98586962a399d7cda1ee85.png.hero.webp)

A list of accounts to review© jsonscraper · AI-generated

 

## 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](https://github.com/jsonscraper/instagram-api-python/blob/main/docs/endpoints.md) 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 [Instagram Scraper API page](https://jsonscraper.com/services/ig-scraper-api) 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 [Instagram Scraper API page](https://jsonscraper.com/services/ig-scraper-api).

 

## 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](https://jsonscraper.com/assets/data/product-api-reference.json) 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.



![Article: How to Build a Manual Review Queue for Instagram Profiles Before a Campaign
Summary: This practical Python script turns a list of Instagram profiles into a CSV manual-review queue. It flags private accounts, username mismatches, and responses that need attention while preserving only fields actually returned.
Image role: supporting illustration 2 — a different specific aspect
Section: How to Read the Resulting CSV
Visual subject: Minimal editorial infographic showing four sequential stages](https://jsonscraper.com/assets/uploads/journal/2026/11/597ade8388d59f6402c91c88a4d52b6e.png.hero.webp)

From CSV to an exceptions queue© jsonscraper · AI-generated illustration

 

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](https://github.com/jsonscraper/instagram-api-python/blob/main/docs/endpoints.md), then set up access on the [Instagram Scraper API page](https://jsonscraper.com/services/ig-scraper-api). The result is a queue of profiles with specified reasons for manual review; decisions about approval remain with the team member.
