# Instagram User Search Scraper (`lance_api/instagram-user-search-scraper-api`) Actor

Search Instagram users and accounts by keyword. Each keyword is searched once and returns the accounts Instagram surfaces for it, with an optional full public profile read for every account found.

- **URL**: https://apify.com/lance_api/instagram-user-search-scraper-api.md
- **Developed by:** [LanceAPI](https://apify.com/lance_api) (community)
- **Categories:** Social media
- **Features:** Limited permissions
- **Stats:** 3 total users, 2 monthly users, 90.9% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.00 / 1,000 account results

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## Instagram User Search Scraper API

Find Instagram accounts by searching keywords like **"fitness coach"**, **"vegan recipes"**, or
**"AI tools"**. For each keyword you see the accounts that search surfaced and where each account
appeared in that keyword's results. **Instagram User Search** and **Instagram Account Search**, in one
table you can download.

Optionally get full public profiles, follower counts, bios, websites, and published contact details.
**No Instagram login or cookies required** — only public data is used.

#### See how the output works

Search `fitness coach` and `personal trainer` in one run. If `@alexfit` shows up in both lists, you
get two rows:

| Keyword | Account | Position in that keyword's results |
| --- | --- | ---: |
| `fitness coach` | `alexfit` | 3 |
| `personal trainer` | `alexfit` | 7 |

Two rows, because two searches found the same account. You can compare where it appeared in each
list. If you turn on Full Profile, we look up that account's details only once and add them to both
rows.

- **Search Instagram accounts by keyword** — up to 200 keywords in one run.
- **See where each account appeared** — `rank` starts at 1 for every keyword.
- **Up to 50 accounts per keyword**, up to 3,000 rows per run.
- **Optional full public profiles** — bio, follower / following / post counts, website, category, HD picture.
- **Published contact details** — emails, phone numbers and contact links the account makes public.
- **No Instagram login required.**

You pay a small fee for each keyword searched and each row returned.
[Pricing at a Glance](#pricing-at-a-glance) shows exactly what one run costs.

### Quick start

Paste this into the **Input** tab and press **Start**:

```json
{
  "queries": ["fitness coach"],
  "maxResultsPerQuery": 5,
  "includeFullProfile": false
}
```

1. **Input** — `queries` is the only required field. The Console shows `fitness coach` as a
   *prefill* — a starting suggestion, not a default value; replace it freely.
2. **Start** — the run performs one logical search per keyword and writes the rows.
3. **Dataset** — open the **Dataset** tab (or the **Overview** / **Accounts** view) to see one row
   per account found for a keyword, with `rank` numbered from 1 for each keyword.
4. **Run Summary** — open the **Key-value store** and look at `RUN_SUMMARY` for how many rows were
   delivered, which keywords found nothing, and whether everything delivered was billed.

To add full profiles and public contact details, set `includeFullProfile: true`.

### What you get

| | What it gives you | When |
| --- | --- | --- |
| **Account list** | Username, name, profile URL, picture, verified and private flags, plus the keyword and position that found it | Every run |
| **Full public profile data** | Bio, follower / following / post counts, website, bio links, business category and a higher-resolution picture | Only with `includeFullProfile: true` |
| **Public contact information** | Published emails, phone numbers and contact links | Part of Full Profile; best-effort, never guaranteed |

### Pricing at a glance

**How pricing works.** You pay a small fee for each keyword searched and each account result
returned. If you enable Full Profile, you also pay once for each unique account whose profile was
successfully read. The same account found under different keywords creates separate result rows, but
its full profile is looked up and charged only once.

No separate subscription to this Actor is required. The standard Actor Start charge still applies
once per started run.

**Worked pricing example:** search one keyword and get 20 accounts.

| Item | Cost |
| --- | ---: |
| Actor Start | $0.0005 |
| 1 keyword search | $0.0025 |
| 20 account results | $0.0360 |
| **Total without Full Profile** | **$0.0390** |
| Optional Full Profile for 20 unique accounts | +$0.0500 |
| **Total with Full Profile** | **$0.0890** |

This is an arithmetic example, not a bill. It assumes the search returns 20 accounts and, when Full
Profile is on, all 20 accounts are different and every profile read succeeds. Current prices are on
the **Pricing** tab of this Actor, which is always the authoritative source for amounts; your Apify
invoice reflects your tier, minimum charges and rounding.

[Detailed pricing rules](#detailed-pricing-rules) covers empty searches, duplicate keywords, failed
profile reads and how to control the bill.

### Input reference

| Field | Type | Default | What it does |
| --- | --- | --- | --- |
| `queries` | array of strings | — (required) | One keyword per line. A leading `@` is ignored. Keywords that differ only by case, surrounding spaces or a leading `@` are merged before any search, and `RUN_SUMMARY` says how many. Up to 200 distinct keywords. |
| `maxResultsPerQuery` | integer, 1–50 | `20` | How many accounts one keyword may deliver. A **cap**, not a target. |
| `maxTotalResults` | integer, 1–3000 | `1000` | Hard ceiling for the whole run, counted in rows. One row is one account found for one keyword. When it is reached, the remaining keywords are not searched and the summary lists them as not executed. |
| `includeFullProfile` | boolean | `false` | Also read each unique account's full public profile and look for published contact details. Off by default. |

`maxTotalResults = 3000` means 3,000 rows. If one account is found by ten keywords, that is ten rows
toward the ceiling, not one.

#### Why a keyword can return fewer accounts than you asked for

Each keyword returns a single page of search results. The limit is a maximum, not a guaranteed
result count. The Actor does not artificially pad short lists. A keyword whose search returns 20
accounts delivers 20 even when `maxResultsPerQuery` is 50. Raising the limit only lifts the ceiling;
it cannot create accounts the search did not return. If a technical problem interrupts a search, the
run may recover automatically — that recovery does **not** create a second Search charge.

### Output reference

One row per keyword × account. Each row is one keyword-to-account match: one keyword, one account,
and the position that account appeared at. Every row has exactly the same set of fields.

Short example — **illustrative example values**, not a live run:

```json
{
  "query": "fitness coach",
  "rank": 1,
  "id": "1283634491",
  "username": "coach.example",
  "fullName": "Coach Example",
  "url": "https://www.instagram.com/coach.example/",
  "isVerified": false,
  "isPrivate": false,
  "fullProfileIncluded": false,
  "scrapedAt": "2026-11-07T09:00:00.000Z"
}
```

#### Basic account information

| Field | Type | Notes |
| --- | --- | --- |
| `query` | string | The keyword this row was returned for. |
| `rank` | integer | Position of this account in the results for that keyword, starting at 1. This is not an Instagram ranking and not a follower-count or popularity score. |
| `id` | string | null | Instagram's numeric account id, as a string. `null` when unavailable. |
| `username` | string | null | Instagram username. `null` when unavailable. |
| `fullName` | string | null | Display name. `null` when unavailable. |
| `url` | string | null | Canonical profile URL. `null` when unavailable. |
| `profilePicUrl` | string | null | Profile picture URL. `null` when unavailable; media links can expire. |
| `isVerified` | boolean | null | Verified badge. `null` when unknown. |
| `isPrivate` | boolean | null | Private account flag. `null` when unknown. |
| `fullProfileIncluded` | boolean | `true` only when the full-profile read succeeded for this account and its details are in this row. |
| `scrapedAt` | string | When the run started, ISO-8601 UTC. The same on every row of one run. |

#### Optional full profile information

These columns are `null` (or empty) until you turn on `includeFullProfile` and the read succeeds.

| Field | Type | Notes |
| --- | --- | --- |
| `profilePicUrlHD` | string | null | Higher-resolution picture, when available. |
| `biography` | string | null | Bio text, when available. |
| `bioLinks` | array | Links listed in the bio. Always an array; `[]` when empty or not read. |
| `externalUrl` | string | null | The website field on the profile, when available. |
| `category` | string | null | Business category, when published. |
| `followersCount` | integer | null | Follower count as returned by the profile source, when available — a full number, not an abbreviated "18.4K", and not a live real-time counter. |
| `followingCount` | integer | null | Following count as published by the profile source, when available. |
| `postsCount` | integer | null | Post count as published by the profile source, when available. |
| `isBusiness` | boolean | null | Same value as `isBusinessAccount`, kept for integrations that already read this field. |
| `isBusinessAccount` | boolean | null | Business account flag, when available. |
| `isProfessionalAccount` | boolean | null | Professional account flag, when available. |
| `highlightReelCount` | integer | null | Number of story highlights, when available. |
| `joinedRecently` | boolean | null | Recently-joined flag, when available. |

Counts and flags are the values the profile source returned at read time. They are useful for
comparison and segmentation, not a live counter or a promise of real-time accuracy.

#### Public contact information

When **Get Full Profile** is on, public contact enrichment looks for publicly listed emails, phone
numbers and contact links. When Full Profile is off, no contact enrichment runs at all.

| Field | Type | Notes |
| --- | --- | --- |
| `emails` | string array | Unique published email addresses. Always an array; `[]` when none were found or enrichment was off. |
| `phones` | string array | Published telephone numbers; formatting varies by source. Always an array. |
| `contactLinks` | string array | Published mailto/tel, WhatsApp, contact-page and social links. Always an array. |
| `contactSources` | string array | Combined public source evidence for contact extraction. It does not show which source provided each individual contact (not a one-to-one mapping). |
| `contactExtractionStatus` | string | One of `not_requested`, `success`, `no_contact`, `partial`, `error`. See below. |

#### Missing data, empty arrays and contact status

**Missing data is `null`, never a guess.** A profile value that was not read, or that the source did
not publish, is `null` — not `0`, not `false`, not an empty string. `null` means "unknown"; `0` and
`false` mean a real measured value.

`emails`, `phones`, `contactLinks`, `contactSources` and `bioLinks` are always arrays, and stay `[]`
when empty. `contactExtractionStatus` has five values:

| Value | Meaning |
| --- | --- |
| `not_requested` | Full Profile was off, so no contact enrichment ran. |
| `success` | At least one published contact value or contact link was found. |
| `no_contact` | The check completed and found none. |
| `partial` | Some contacts were kept even though part of the extraction or a website check failed. |
| `error` | The requested check could not complete and delivered no contacts. A failed website check does **not** discard profile data or contacts already found. |

A `success` status does not guarantee an email or phone number: a contact page or social link counts
as a published contact link.

#### Public contact details: what to expect

This is best-effort. Please read these limits before relying on the output:

- Not every account publishes contact details, and many publish none. Empty contact arrays are a
  normal, completed result.
- Website contact checking is best-effort. Sites that require a browser to render, block automated
  access, or sit behind a link aggregator may yield nothing.
- Finding a contact on a website does **not** prove the account owns or controls that contact.
- A contact may be a contact page or social account rather than an email address, and phone
  formatting varies by source.
- A website that cannot be checked does not discard the profile data or the contacts already found.

#### Full example

Illustrative example values, with `includeFullProfile: true`:

```json
{
  "query": "fitness coach",
  "rank": 1,
  "id": "1283634491",
  "username": "coach.example",
  "fullName": "Coach Example",
  "url": "https://www.instagram.com/coach.example/",
  "profilePicUrl": "https://.../avatar.jpg",
  "isVerified": false,
  "isPrivate": false,
  "fullProfileIncluded": true,
  "scrapedAt": "2026-11-07T09:00:00.000Z",
  "profilePicUrlHD": "https://.../avatar-hd.jpg",
  "biography": "Online coaching · 12-week programmes",
  "bioLinks": [{ "title": "Programmes", "url": "https://example.com/programmes", "linkType": "external" }],
  "externalUrl": "https://example.com",
  "category": "Coach",
  "followersCount": 18400,
  "followingCount": 312,
  "postsCount": 640,
  "isBusiness": true,
  "isBusinessAccount": true,
  "isProfessionalAccount": true,
  "highlightReelCount": 4,
  "joinedRecently": false,
  "emails": [],
  "phones": [],
  "contactLinks": [],
  "contactSources": [],
  "contactExtractionStatus": "no_contact"
}
```

#### Dataset views and data notes

Four Dataset views are provided: **Overview**, **Accounts**, **Enriched only** and
**Public contacts**.

- **Why positions are renumbered.** Duplicate accounts inside the same keyword are removed before
  positions are assigned, so `rank` numbers the accepted list and does not preserve the index of
  every raw result node. Every keyword starts at 1, and the order describes this run only — the
  same keyword an hour later can order the same accounts differently.

### Detailed pricing rules

This Actor is pay-per-event. The **Pricing** tab of this Actor is always the authoritative source for
current amounts.

| Event | FREE tier | Higher subscription tiers | When it is raised |
| --- | --- | --- | --- |
| `apify-actor-start` | $0.0005 | $0.0005 | Once per run, by the platform. With the default 512 MB memory this is one event. |
| `search` | $0.0025 per keyword | $0.0020 | Once for each keyword that is actually searched. |
| `result` (primary event) | $0.0018 per row | from $0.0015 down to $0.0010 | Once for each row written to the Dataset. |
| `full-profile` | $0.0025 per account | $0.0020 | Once for each unique account whose full profile was successfully read and delivered. |

Higher subscription tiers pay less per Result — the benefit grows with batch size. Every event is
charged at most once for the work it describes: one keyword is one Search, one delivered row is one
Result, and one unique account read is one Full Profile.

**What you are actually paying for:**

1. **Search** is charged once for each keyword actually searched. A keyword that returns nothing
   (`NO_DATA`) still raises a Search charge — the search really ran — but raises no Result charge.
   Automatic recovery after a technical problem does not add a second Search charge.
2. **Result** is charged per row delivered, and one row is one account found for one keyword. One
   account found by three keywords is three rows and three Result charges. Rows are **not**
   de-duplicated across keywords.
3. **Full Profile** is charged per **unique account**, not per row. That same account is read once
   per run, so it raises one Full Profile charge while its three rows still raise three Result charges.
4. **A full profile that succeeds but finds no contact still costs the Full Profile charge.** You
   paid for a successful profile read, not for a contact guarantee. `no_contact` is a completed result.
5. **A full profile that could not be read costs nothing.** The search row is still delivered with
   `fullProfileIncluded: false` and is never charged for enrichment.
6. **Checking the websites an account links to adds no charge event.** It is part of the same
   optional Full Profile product and uses the profile data already read. There is no separate
   contact fee.
7. **Duplicate keywords are merged before any search** — they raise one Search charge.
8. **Unexecuted keywords raise no Search or Result charge.** Keywords skipped because
   `maxTotalResults` was reached are never searched. An input the platform rejects before the run
   starts (for example, no `queries`) never starts the Actor, so no charge of any kind applies —
   including Actor Start.
9. **Actor Start is charged in addition**, once per run, by Apify itself.

**Smallest possible charge:** $0.0005 for a run that starts. One keyword that finds nothing costs
$0.0005 + $0.0025 = **$0.0030**.

**Per 1,000 units at FREE-tier prices:** 1,000 keyword searches cost $2.50; 1,000 Result rows cost
$1.80; 1,000 profile reads cost $2.50. On a higher tier these fall to $2.00, as low as $1.00 and
$2.00 respectively.

**Controlling the bill.** `maxResultsPerQuery` and `maxTotalResults` cap the number of delivered rows,
so lowering them lowers the number of Result charges directly. `maxTotalResults` is checked *before*
a keyword is searched, so it also stops Search charges for keywords that would never be delivered.
`includeFullProfile` is the switch that controls all Full Profile charges — leave it off if you only
need the account list. These two limits control Result volume and its charges; they are **not a
guaranteed ceiling on the total cost of a run**, because Actor Start and each keyword's Search charge
still apply, and Full Profile charges are per unique account when enabled.

### Run summary

Every run writes `RUN_SUMMARY` to the key-value store: what ran, how many rows were delivered, and a
plain-language message for every keyword that found nothing or could not be searched. Counts are
grouped by outcome (`SUCCESS`, `NO_DATA`, `PARTIAL`, `TRUNCATED`, `UNAVAILABLE`, `FAILED`) so a
keyword that was never searched can never be mistaken for a keyword Instagram had nothing for.

`NO_DATA` means this keyword's search returned no usable accounts. It does not prove that Instagram
has no matching account at all. `TRUNCATED` means the keyword was never searched because the run had
already reached its row ceiling.

The summary keeps **collected** and **delivered** apart. `results.collected` counts what the searches
produced; `results.delivered`, `results.rowsSaved` and `results.rowsByQuery` count only the rows the
Dataset actually confirmed. When a budget limit or a stopped write means the two differ, `notes` says
how many rows did not reach the Dataset — the delivered numbers always match the rows you can read.

It also records what was delivered against what was charged, including the optional profile reads:
how many unique accounts were expected, how many were charged, and whether any charge was partial,
unconfirmed or stopped by a limit. A partial or unconfirmed charge is never reported as a
complete match between delivery and billing.

### Use cases

- **Discover accounts from a topic list.** Turn keywords like `vegan recipes`, `AI video tools` or
  `trail running` into a table of the accounts search surfaced.
- **Research creators.** Shortlist creators by niche keyword, then optionally add bios, published
  counts and contact details.
- **Find brands and competitors.** See which brand accounts appear for a product or category keyword,
  and where in that keyword's list they appear.
- **Compare keywords.** Run several competing keywords in one batch and compare which accounts each
  one surfaced, with the keyword attached to every row.
- **Enrich a shortlist you already have.** Add biography, category, website and published counts to
  accounts you found earlier.
- **Export for analysis.** Download the Dataset as JSON or CSV for segmentation, outreach planning,
  dashboards or a CRM import. `query` and `rank` make the origin of every row traceable.

### API usage

Owner (developer): `lance_api` · Actor name: `instagram-user-search-scraper-api` ·
Actor ID: `MTKoJwrjEFaF51M18`.

Always send the token in the `Authorization: Bearer $APIFY_TOKEN` header. **Never** put a token in
the URL query string. Each example shows **Start → Wait → Read Dataset**.

**JavaScript** (`npm install apify-client`):

```js
import { ApifyClient } from 'apify-client';

// The SDK sends this token in the Authorization: Bearer header.
const client = new ApifyClient({ token: process.env.APIFY_TOKEN });
const ACTOR_ID = 'MTKoJwrjEFaF51M18';

const run = await client.actor(ACTOR_ID).start({
  queries: ['fitness coach'],
  maxResultsPerQuery: 5,
  includeFullProfile: false,
});

const finished = await client.run(run.id).waitForFinish();
console.log('status:', finished.status);

const { items } = await client.dataset(finished.defaultDatasetId).listItems();
console.log('rows:', items.length, items[0]);
```

**Python** (`pip install apify-client`):

```python
import os
from apify_client import ApifyClient

## The SDK sends this token in the Authorization: Bearer header.
client = ApifyClient(os.environ["APIFY_TOKEN"])
ACTOR_ID = "MTKoJwrjEFaF51M18"

run = client.actor(ACTOR_ID).start({
    "queries": ["fitness coach"],
    "maxResultsPerQuery": 5,
    "includeFullProfile": False,
})

finished = client.run(run["id"]).wait_for_finish()
print("status:", finished["status"])

items = client.dataset(finished["defaultDatasetId"]).list_items().items
print("rows:", len(items), items[0] if items else None)
```

**cURL** (wait for the run to reach a terminal state before reading the Dataset):

```bash
## 1. Start
RUN_ID=$(curl -s -X POST \
  -H "Authorization: Bearer $APIFY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"queries":["fitness coach"],"maxResultsPerQuery":5,"includeFullProfile":false}' \
  "https://api.apify.com/v2/acts/MTKoJwrjEFaF51M18/runs" \
  | python3 -c "import json,sys; print(json.load(sys.stdin)['data']['id'])")

## 2. Wait — poll every 5s until the run reaches a terminal state
while :; do
  STATUS=$(curl -s -H "Authorization: Bearer $APIFY_TOKEN" \
    "https://api.apify.com/v2/actor-runs/$RUN_ID" \
    | python3 -c "import json,sys; print(json.load(sys.stdin)['data']['status'])")
  case "$STATUS" in
    SUCCEEDED|FAILED|ABORTED|TIMED-OUT) break ;;
  esac
  sleep 5
done
echo "run status: $STATUS"

## 3. Read the Dataset
DATASET_ID=$(curl -s -H "Authorization: Bearer $APIFY_TOKEN" \
  "https://api.apify.com/v2/actor-runs/$RUN_ID" \
  | python3 -c "import json,sys; print(json.load(sys.stdin)['data']['defaultDatasetId'])")
curl -s -H "Authorization: Bearer $APIFY_TOKEN" \
  "https://api.apify.com/v2/datasets/$DATASET_ID/items?format=json"
```

### FAQ

**Can I search Instagram users by keyword?**
Yes — that is the only thing this Actor does. Give it keywords; it returns the accounts surfaced for
each keyword, one row per account found for that keyword.

**Do I need an Instagram login or cookies?**
No. Only public data is used, and no login, session or cookie is required from you.

**Are the accounts ranked by follower count?**
No. `rank` is where the account appeared in that keyword's results for this run, starting at 1 for
each keyword. It is not an Instagram ranking, not a popularity score, and not comparable between
keywords.

**Why did a keyword return fewer accounts than I asked for?**
Because that one search returned fewer accounts. The limit is a maximum, not a guarantee. See
[Input reference](#input-reference).

**Why does the same account appear under several keywords?**
Because each keyword is its own search and each match is its own row. Three keywords means three
rows, three positions and three Result charges; Full Profile, when on, is still read once. See
[Pricing at a Glance](#pricing-at-a-glance).

**Is Full Profile optional?**
Yes, and it is off by default. Switch it on only when you need biography, published counts,
category, an HD picture or public contact details.

**Are emails and phone numbers guaranteed?**
No. Many accounts publish none, and empty arrays are a normal, completed result. See
[Public contact details: what to expect](#public-contact-details-what-to-expect).

**Does a full profile with no contact details still cost money?**
Yes — you pay for the successful profile read, not for finding a contact. A read that failed is not
charged. See [Detailed pricing rules](#detailed-pricing-rules).

**What happens when no result is found?**
The keyword is reported as `NO_DATA` in `RUN_SUMMARY`, and the run is still successful. The Search
charge for that keyword and the Actor Start charge still apply, but no Result charge is raised.

**How do I control the cost?**
Lower `maxResultsPerQuery` or `maxTotalResults`, and leave `includeFullProfile` off unless you need
it. See [Pricing at a Glance](#pricing-at-a-glance) for a worked example.

### Limits and troubleshooting

#### Tips for better results

- **Start with a small batch** to see what a keyword actually returns before scaling up.
- **A keyword shows which accounts search surfaced for it.** That is a discovery result, not proof
  that an account works in that field, and not a guarantee that the keyword appears in its bio. For
  a branded handle (`@nike`), search `nike` without the `@`.
- **Ordering is the order that search returned**, which is not stable over time. The same keyword an
  hour later can order the same accounts differently; `rank` describes one run.
- **Private accounts are returned and flagged.** `isPrivate: true` means the profile exists but its
  posts are not public, so the full-profile step may return fewer fields.
- **Set `maxTotalResults` to what you will actually use.** It is checked before a keyword is
  searched, so lowering it is the cheapest way to stop a large batch early.

#### Limits

- One logical keyword search per keyword: only the first page of search results is collected, and
  there is no deep pagination. A second page is not fetched.
- Up to 50 accounts per keyword, 200 keywords per run, 3,000 rows per run.
- Public contact details are collected only when `includeFullProfile` is enabled, on a best-effort
  basis, and are not guaranteed.
- Counts and flags reflect what the profile source published at read time; they are not live metrics.

#### Troubleshooting

| What you see | What it means |
| --- | --- |
| `outcome: "NO_DATA"` for a keyword | The search ran and returned no usable accounts. Try a broader keyword. |
| `outcome: "TRUNCATED"` | The keyword was not searched: the run had already reached `maxTotalResults`. |
| `outcome: "PARTIAL"` | Some rows were delivered and the list was cut short by the run ceiling or a temporary data-source problem. The rows you received are valid. |
| `fullProfileIncluded: false` with enrichment on | That account's profile could not be read. The search row is still delivered and was not charged for enrichment. |
| `contactExtractionStatus: "no_contact"` | The check completed and found no published contacts. This is a completed result, not an error. |
| A long run with no rows | Check `failedOperations` in the run summary: it names the keyword and says whether retrying can help. |

### Responsible use

Use only public data you are entitled to process, respect Instagram's terms and applicable privacy
law, and verify any contact detail before using it for outreach. This Actor does not require your
Instagram login, does not access private account content, and does not claim ownership or
verification of third-party contact details.

### Support

Email: **lanceapi2026@hotmail.com**

When reporting a problem, please open the Actor's **Issues** tab or email us with:

- the **Run ID**
- the **input you used**, with any private values removed
- the **error message** or unexpected output
- what you **expected** to happen

**Do not send tokens, cookies, session identifiers, passwords, API keys, proxy login details or
`Authorization` headers.** We cannot use them and they put your account at risk.

### Related Actors

All links below are published Apify store pages, ordered by what you may want to do next after
finding accounts by keyword:

1. [Instagram Search Scraper](https://apify.com/lance_api/instagram-search-scraper-api) — broader
   Instagram search: profiles, top results, Reels, hashtags, places, music and hashtag posts. Choose
   the type you want for each run.
2. [Instagram Profile Scraper](https://apify.com/lance_api/instagram-profile-scraper) — detailed
   public profile data for a known account: bio, exact counts, contacts and recent posts.
3. [Instagram Followers & Following Scraper](https://apify.com/lance_api/instagram-followers-following-scraper) —
   export a known account's followers and following lists.
4. [Instagram Profile Posts & Reels Scraper](https://apify.com/lance_api/instagram-profile-posts-reels-scraper) —
   posts and Reels for a known profile.
5. [Instagram Reels Downloader](https://apify.com/lance_api/instagram-reels-downloader-api) and
   [Instagram Video Transcript Scraper](https://apify.com/lance_api/instagram-video-transcript-scraper) —
   download Reel media or turn Reel audio into text.

# Actor input Schema

## `queries` (type: `array`):

One keyword per line — a topic (fitness coach, AI video tools, vegan recipes) or an account name with or without the @ (nasa, @openai). Each keyword is searched once, and the accounts Instagram returns for it become rows. Duplicate keywords are merged and the run summary says how many.

## `maxResultsPerQuery` (type: `integer`):

How many accounts one keyword may deliver, 1–50, default 20. Each keyword returns a single-page search result. The limit is a maximum, not a guaranteed result count. The Actor does not artificially pad short lists.

## `maxTotalResults` (type: `integer`):

Hard ceiling for the whole run across all keywords, 1–3000, default 1000. One row is one keyword-account match, so the same account found under several keywords counts as several rows. When the limit is reached the remaining keywords are not searched at all, and the run summary lists them as not executed.

## `includeFullProfile` (type: `boolean`):

Off by default. When on, each account found is also read for its full public profile — biography, website, bio links, follower, following and post counts as published by the profile source, business category, HD profile picture — and those fields are written into every row that account appears in. Get Full Profile also automatically extracts published contact details (public emails, phones and contact links from the profile) and, on a best-effort basis, public contacts from the websites the account links to. Extraction is best effort and not guaranteed: a row can legitimately contain no contacts. Results are published as arrays (emails, phones, contactLinks), with contactExtractionStatus describing the combined outcome (not_requested, success, no_contact, partial, error) and contactSources as combined public source evidence for contact extraction. This is not a one-to-one mapping between each contact and its source. An account that cannot be read keeps its search row with fullProfileIncluded set to false and a contact status of error. Each account is read once per run, so finding the same account under three keywords costs one extra charge, not three.

## Actor input object example

```json
{
  "queries": [
    "fitness coach"
  ],
  "maxResultsPerQuery": 20,
  "maxTotalResults": 1000,
  "includeFullProfile": false
}
```

# Actor output Schema

## `dataset` (type: `string`):

One row per keyword x account: which keyword surfaced the account, its rank in that keyword's returned list, and its public profile data. With full-profile enrichment on, the profile columns are filled in for the accounts that could be read.

## `datasetConsole` (type: `string`):

The same rows, to open in the Apify Console.

## `summary` (type: `string`):

What ran, what was delivered, and a plain-language note for every keyword that found nothing or could not be searched.

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "queries": [
        "fitness coach"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("lance_api/instagram-user-search-scraper-api").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = { "queries": ["fitness coach"] }

# Run the Actor and wait for it to finish
run = client.actor("lance_api/instagram-user-search-scraper-api").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "queries": [
    "fitness coach"
  ]
}' |
apify call lance_api/instagram-user-search-scraper-api --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,lance_api/instagram-user-search-scraper-api"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/MTKoJwrjEFaF51M18/builds/xnlq0BI7TP5U4G8Lw/openapi.json
