# Instagram Content Test Planner & Scraper (`apifmcpfactory/htf-instagram-discovery`) Actor

Compare two public Instagram feeds, see the posts behind a format test and score three pairs after publishing. Preview supplier costs or reuse saved feeds.

- **URL**: https://apify.com/apifmcpfactory/htf-instagram-discovery.md
- **Developed by:** [HTF Agentic](https://apify.com/apifmcpfactory) (community)
- **Features:** Limited permissions
- **Stats:** 1 total users, 0 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $10.00 / 1,000 ready plan or manual score updates

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.

Learn more: https://docs.apify.com/actors/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 Content Test Planner & Scraper

**Find a format to test on Instagram and keep the result in one scorecard.**

Compare posts from your brand’s feed with posts from a rival. When the matched evidence supports a test, the brief names the format to try and what to compare it with. It includes the post links, method and limits so you can check the basis for the decision. If the feeds provide too little evidence, the brief explains what is missing.

![An actual planner brief recommends testing carousels against reels in the NASA and ESA example.](https://howthtechnologyfactory.pro/assets/instagram-content-test-planner/02-sample-proof.png)

[Watch the 31-second walkthrough](https://howthtechnologyfactory.pro/assets/instagram-content-test-planner/planner-walkthrough.mp4) · [English captions](https://howthtechnologyfactory.pro/assets/instagram-content-test-planner/planner-walkthrough.en.vtt) · [Animated preview](https://howthtechnologyfactory.pro/assets/instagram-content-test-planner/planner-walkthrough.gif)

The walkthrough uses screenshots from separate runs and a reformatted excerpt of the blank scorecard. NASA and ESA are public examples. Neither organisation ran this test.

In a private example using the public NASA and European Space Agency feeds, carousels had higher median likes than reels within each account in the selected 30–under-90-day sample. The brief proposed testing carousels against reels and linked the exceptions, including a NASA reel with more reported likes than a sampled NASA carousel. An earlier, smaller sample lacked enough eligible ESA carousels to recommend the test. The organisations served as examples. The figures describe the samples at collection. [NASA reel](https://www.instagram.com/p/DeTUk4sDSp-/) · [NASA carousel](https://www.instagram.com/p/DdWojaYFDf-/)

### Run a three-pair content test

For a first preview, enter **nasa** as the brand and **europeanspaceagency** as the comparison account. In the Console’s JSON input tab, you can paste this example directly. The output shows the estimated supplier cost for the two feeds. Preview starts no supplier collection. Normal HTF run usage is separate.

```json
{
  "mode": "experimentPlan",
  "brandUsername": "nasa",
  "rivalUsername": "europeanspaceagency",
  "sourceAction": "preview",
  "maxCollectionChargeUsd": 0
}
```

1. **Enter your brand and a rival.** Select **Plan a content test** and enter both Instagram handles. Check them against the organisations’ own websites. Choose **Preview supplier cost** to see the estimate. To collect, choose **Collect results** and set one total collector cap. The Actor splits the cap between the accounts it needs to collect. Normal HTF run usage is separate.
2. **Read the test brief.** Open `EXPERIMENT.md` in the run’s default key-value store for the decision, post links and sample sizes. Keep the run’s dataset for scoring. If you already have a completed HTF account-feed report, you can select it in place of either handle. With two compatible saved reports, planning starts no supplier run. A reels-only sample cannot support a comparison across formats.

The brief is useful on its own. An agency can use it in a client planning meeting to explain which formats to try and why. An in-house social team can turn the same brief into a publishing calendar. When it recommends a test, choose three topics. For each topic, publish both suggested formats on the same brand account with comparable messages, timing and promotion. You can measure the six posts automatically or use your own saved observations.

#### Preview from the API

Send the same JSON to [Run Actor](https://docs.apify.com/api/v2/actors-runs-post) using an Apify API token in the Authorization header. Use `POST /v2/acts/apifmcpfactory~htf-instagram-discovery/runs?waitForFinish=60`. Wait for `SUCCEEDED`, then read `OUTPUT` with [Get key-value store record](https://docs.apify.com/api/v2/key-value-store-record-get) and the run's `defaultKeyValueStoreId`. If the request stops waiting before the run finishes, check that run's status before starting another.

The preview's `maximumSupplierChargeForRequestedRowsUsd` is the upper estimate in US dollars for the requested fresh feeds. `supplierRunsStarted` and `newSupplierChargeUsd` record actual activity. Both should be zero in this preview. Apify run usage is separate.

Download a preview example for [Python](https://howthtechnologyfactory.pro/assets/instagram-content-test-planner/preview.py), [JavaScript](https://howthtechnologyfactory.pro/assets/instagram-content-test-planner/preview.mjs), [cURL in PowerShell](https://howthtechnologyfactory.pro/assets/instagram-content-test-planner/preview-curl.ps1) or [Postman](https://howthtechnologyfactory.pro/assets/instagram-content-test-planner/apify-preview.postman_collection.json). Set your API token privately before running an example.

### Read the planner's output

Use JSON when another tool needs the nested detail. The current Actor input and output link schemas use version 1. The returned records identify the workflow with `mode`. Keep the Apify build number with the export when another tool depends on its fields.

- **Preview.** The dataset contains one `experimentPlan` record with `action: "preview"`. The requested post limit and supplier run count are integers. Estimated and observed supplier charges are USD amounts. The estimate can exceed the actual charge, which is zero during preview.
- **Plan.** Open `EXPERIMENT.md` for the narrative and the dataset's JSON for `plan`, `planId`, `pairs` and `collection`. The plan contains the status, reason, account names, age band in days, sample sizes, median reported likes and the evidence links. `test` is null unless the evidence supports a recommendation. The run's `OUTPUT` record provides a shorter summary and gives a `trackerId` only for an eligible plan based on an official Apify brand feed.
- **Manual scoring.** Each accepted pair returns another `EXPERIMENT.md` and one `experimentScore` record with the original plan, accepted pairs and score to date. Use the latest score dataset when entering the next pair. The percentage is based on total likes from the matched posts.
- **Automatic scoring.** Open `SCORECARD.md` for the readable report or the tracking run's `OUTPUT` for `trackingStatus`, counts, registered posts and per-link supplier cap in USD. Scheduled and missing readings have their own status. Times, where supplied, are UTC. `score` is null when no score exists yet. Stop preserves the scorecard and reports any timers Apify could not confirm as removed.

Apify's CSV and Excel exports flatten nested JSON. Keep the original JSON when you need to re-import a feed or preserve the relationship between an account, its example posts and the timed reading. A zero like count is an observation. Empty values can indicate unavailable information.

#### Add one link when you publish

Automatic measurement works with a ready plan whose brand feed came from **Apify Instagram Scraper**. Your team continues publishing through its usual Instagram tools.

1. **Set up the test once.** Choose **Set up automatic like checks**. Under **Saved plan or latest score**, select the original ready plan. Enter a positive **Maximum collector charge (USD)** per new post and leave the optional scheduling token blank. Setup checks your existing Apify access by creating and removing a disabled timer before looking up any post. When setup succeeds, it returns your Tracker ID.
2. **Save your link form.** Select **Add a published post** and enter the **Tracker ID** from setup or select the original plan again. Save just the mode and plan reference as an Apify task so the same form opens for each post.
3. **Paste the post link and run.** Add each public link when it goes live. The Actor checks which account published it, its format and the publication time. It assigns the first open topic pair for that format. If you publish the topics out of order, choose the **Topic pair** yourself. The timed check aims for 72 hours after publication. Only observations taken within 70–74 hours qualify.
4. **Read or share the result.** Choose **Read the running scorecard** with the same Tracker ID or plan. Download `SCORECARD.md` from the tracker's named key-value store to share the report. The same file shows pending and completed checks, links to the posts and, once all six have eligible readings, which format earned more total likes and whether it met the original target. A missing public count or missed window is identified for that post. Other readings remain in the report.

**If setup reports a scheduling-permission issue**, open **Settings → API & Integrations → Create a new token** in Apify Console. Enable **Limit token permissions**. Grant **Create** on schedules and **Run** on this individual Actor. Choose an expiry after your last measurement. Run setup again and paste this dedicated token in the encrypted **Scheduling token for this Actor (optional)** field. The Actor keeps the credential privately until tracking stops or finishes. You can revoke it in Apify Console. The link form only needs your plan reference. [Apify scoped token guide](https://docs.apify.com/integrations/api#api-tokens-with-limited-permissions)

To end tracking early, choose **Stop automatic checks** with the same tracker reference. Your scorecard remains available. Automatic tracking in this private candidate carries no additional HTF decision fee. Each post's cap is split between checking its publication details and reading its likes later. Six registered posts can use up to six times the per-post supplier cap. Normal Apify usage is separate.

#### Use your own saved observations

Use **Score a content test** for manual scoring, including ready plans based on supported SocialScrape feeds. Save an HTF account-feed snapshot for each post when its reported likes are returned **70–74 hours after publication**. For each pair select the two snapshots, enter the two post links and use **Saved plan or latest score**. Choose the original plan dataset for the first pair and the most recent score dataset for later pairs. Review the three pairs together. Other differences between posts can also affect likes.

### First profile report

The watchlist tracks follower, following and post counts without a Meta login. You choose how recent a reading must be and set a collector spending cap. HTF reuses eligible saved counts and flags differences in a written brief with sources and collection dates when known.

**75% fewer paid profile lookups in a four-account repeat check.** Three accounts already had complete readings inside the same 24-hour window. HTF collected the fourth and delivered all four accounts in one written brief. Rerunning the full list through Apify’s Instagram Scraper billed four profile results. The percentage describes this tested watchlist. Your mix of recent and missing readings determines how many lookups you need.

1. Select **Public profile count report** as the lookup type. Enter one username, `@handle` or Instagram profile URL, or enter up to 50 in the list.
2. Under **Saved profile dataset**, you can choose a dataset from a completed Apify Instagram Scraper profile details run or from an earlier HTF profile count report. To measure changes, use **Earlier comparison dataset** for a reading of the same account collected before the current one. Both selectors accept either source and request read access.
3. Run **Preview collection costs** to see which profiles may need collection and the estimated collector charge. Preview starts no paid collector. HTF’s normal run usage still applies.
4. Choose **Use saved observations** to work from existing data, including older readings. Choose **Refresh missing or outdated counts** and enter a positive **Maximum collector charge (USD)** to collect on your Apify account. A cap of zero keeps paid collection off. A small cap may leave some requests incomplete.

### Price and freshness

**Pay per decision plus usage.** Howth Technology Factory charges a **$0.01 decision fee** for each ready test plan or successfully updated manual scorecard. A ready plan followed by three accepted manual pair updates totals **$0.04 in HTF decision fees**. A ready plan followed by automatic tracking totals **$0.01 in HTF decision fees**. A cost preview, an insufficient-evidence or no-signal result, and a raw export carry **$0 HTF decision fee**. Normal Apify usage and fresh supplier collection are billed separately.

The upstream collector charges separately. On 28 November 2026, its highest published primary result rate was $0.0027 per profile. At that rate, three distinct profiles with one result each would incur $0.0081 in collector fees, plus HTF’s run usage. Check the preview and the current collector price before refreshing. [Apify collector pricing](https://apify.com/apify/instagram-scraper/pricing)

The default freshness window is 24 hours. A refresh reuses a saved reading when it has all three counts and its original collection window falls within that period. An HTF report carries forward the original collector’s run ID and times when available and labels the copy `saved_htf_report`. Creating a new report from the same reading leaves its age unchanged. A dataset’s creation or modification time records storage activity. The source may have cached a count before the collector read it.

If your selected dataset contains all three counts but the collection date is unavailable, **Keep complete selected readings with an unknown date** lets you use those numbers. The option starts off. The date stays unknown even if you carry the reading into another report. Profiles with known stale readings or missing counts still qualify for refresh. Preview, partial and duplicate rows in earlier HTF reports do not supply a fresh reading. Set **Maximum age for a fresh reading** to zero to request fresh collection for every valid distinct profile in refresh mode, even with this option enabled.

Optional FastSocial context has its own observation date and covers only accounts in the published ranking. [FastSocial data and licence](https://github.com/FastSocialCo/instagram-top-accounts)

### Reading the results

After a profile report run, open **Storage → Key-value store** and select `WATCHLIST.md` for your private written brief. In that same default store, `OUTPUT` contains the machine-readable run summary. Its `watchlistReportKey` names the brief.

Open the run’s dataset for the result at each requested position. Check the source, date and missing fields before using a figure. A missing count can become available in a later run. A measured zero is a valid count. Changes require comparable observations of the same account in a known order. Download results as JSON, JSON Lines, CSV, XLSX or XML from the Actor’s output links.

If the current lookup is incomplete, look for `lastKnownProfile`. It preserves an available earlier reading with its own source and collection time when known. The current row identifies which counts were actually returned this time.

If Apify confirms that the collector failed, timed out or was aborted, the summary records its status. You can still export available saved readings and any dated directory observations. When a collector charge has yet to settle, its amount stays unknown in the summary. The collector run ID lets you check the final amount in your own Apify Runs.

### Report on one post or reel

1. Select **Post or reel report**. Paste a single public Instagram post or reel link into **Instagram URL or username**.
2. Under **Saved SocialScrape media dataset**, choose the dataset from a completed SocialScrape Instagram Scraper API run containing that post or reel. For an official Catalonia government account, you can instead turn on **Check the Catalonia publisher archive**. Select both sources if you have a saved result and want to check the archive too. [SocialScrape Instagram Actor](https://apify.com/socialscrape/instagram-scraper-api)
3. Open the result to see which source reported each available count and date. Publication and collection dates describe different events. A hidden or missing count stays unknown. Each source can have different fields and the publisher archive covers only participating accounts.

This mode starts no external collector and adds no collector charge. Normal HTF run usage applies. When sharing archive figures, retain the Generalitat de Catalunya attribution and archive update date. SocialScrape observations carry the supplier’s own terms. [Catalonia open-data reuse terms](https://web.gencat.cat/ca/generalitat/dades-indicadors/dades-obertes/llicencies) · [SocialScrape terms](https://socialscrape.dev/terms)

### Sample posts or reels from an account

1. Choose **Account posts or reels report**. Enter one public account in **Instagram username**, or paste its profile link into **Instagram URL or username**. For an account feed (which may include reels), choose **Apify Instagram Scraper** or **SocialScrape Instagram Scraper API** under **Account feed source**. SocialScrape also supports a reels-only sample.
2. Set **Maximum items** (1–100, default 3). For SocialScrape, choose **Maximum supplier pages** (1–5, default 1). For Apify, leave this at 1. Apify handles paging itself and the item cap limits the requested results. Run **Preview supplier cost** for an estimate. To start a new supplier run, choose **Collect results** and enter a positive **Maximum collector charge (USD)**. Normal HTF run usage is separate.
3. Open the dataset for individual publications and the run summary for an overview of the sample. The likes summary uses publications with a measured count. A measured zero counts, and hidden or missing likes stay unknown. The supplier can return fewer items than requested. Use the report to describe the sample it returned, even if you requested the maximum number of pages.

If you already have public post rows or a profile-details result with recent posts from Apify Instagram Scraper, select **Saved Apify Instagram feed** and choose **Collect results**. This reads your dataset with no new supplier charge. Selecting that dataset identifies Apify as its source. The importer accepts up to 100 source rows and 100 publications in the selected sample. When the original collector’s timing is unavailable, the reading stays undated. A saved selection of individual posts can supply measurements, but planning a format test needs evidence that the posts came from the account feed.

Each observation identifies its supplier. Use the applicable supplier terms when reusing results. Rights to captions, images and video remain with their rights holders. [Apify Instagram Scraper](https://apify.com/apify/instagram-scraper) · [Apify Actor terms](https://docs.apify.com/legal/actor-terms-and-conditions) · [SocialScrape Instagram Actor](https://apify.com/socialscrape/instagram-scraper-api) · [SocialScrape terms](https://socialscrape.dev/terms)

### Search hashtags or places

Choose **Search hashtags or places**, select **Hashtags** or **Places**, and enter one phrase under **Search terms**. For example, try `sailing` to find related hashtags or `vintage shops in Copenhagen` to discover matching place pages. Set **Maximum items** (1–100, default 3). Start with **Preview supplier cost**. **Collect results** requires a positive **Maximum collector charge (USD)** and uses the official Apify Instagram Scraper on your account. HTF run usage is separate.

Each result links to an Instagram hashtag or place page. The row identifies whether the search term appeared on the supplier row or was confirmed from the collector input. The supplier may report a post count, a place name or a category. Missing values stay unknown. These are discovery candidates from a bounded search. Business ownership requires separate evidence. For hashtags, the output describes the hashtag page. [Apify search output examples](https://apify.com/apify/instagram-scraper)

### Find posts tagging a brand

To review third-party posts associated with a brand’s Tagged tab, choose **Find posts tagging a brand**. Enter a single public brand username or profile URL and select **Maximum items** (1–100, default 3). **Preview supplier cost** estimates the charge. To start the Apify Instagram Scraper on your account, select **Collect results** and enter a positive **Maximum collector charge (USD)**. Normal HTF run usage is separate. The supplier's Free plan describes access to around 21 mentions. The report covers the sample returned. [Apify input and limits](https://apify.com/apify/instagram-scraper/input-schema)

Each row links to the public post, names its publisher and identifies the evidence for the target handle. `confirmed_tag` means the supplier returned the brand in the post’s tag list. `caption_mention` means only a caption mention corroborated the association. `source_listed` means the collector returned the post for this brand and supplied no matching tag or caption mention. The `OUTPUT` summary counts the usable posts and the evidence in each group, including when none were found.

### Search for accounts or sample comments

1. Choose **Account search report** and enter your terms on one line (1–120 characters). If you already know the entity’s Wikidata Q ID, enter it under **Wikidata item for handle comparison**. For comments, choose **Post or reel comment report** and paste one public post or reel link under **Instagram URL or username**.
2. Set **Maximum items** to a number from 1 to 20. The default is 3. Run **Preview supplier cost** for an estimate. Preview sends no search terms or post link to SocialScrape and starts no supplier run.
3. To proceed, select **Collect results** and enter a positive **Maximum collector charge (USD)**. This starts one SocialScrape collector on your Apify account for one page of results for the search or link you supplied. Your cap applies to that collector. HTF’s run usage is separate. [SocialScrape Instagram Actor](https://apify.com/socialscrape/instagram-scraper-api)

Check `sourceRowCount` and `reportedCount` in the run summary. The supplier bills for rows it returns. HTF exports usable public results, so a private account or an unusable row can count toward the supplier charge without appearing in the report.

Search results are candidate accounts. Use the optional Q ID to compare each handle with the Instagram usernames listed in a specific revision of that Wikidata item (property `P2003`). For example, NASA’s item `Q23548` lists `nasa`. A matching handle gives you independent evidence for that candidate. If the item lists a different handle or none at all, the result is inconclusive. Legal ownership of an account requires separate evidence. [NASA’s Instagram username on Wikidata](https://www.wikidata.org/wiki/Q23548#P2003)

Comment coverage is limited to one page of available public results. A post may return fewer items than requested, and the sample can omit comments and replies.

#### Read a saved comment thread

Choose **Read replies from a saved comment thread**, select your existing dataset from **Apify Instagram Comment Scraper**, and enter the public post URL. Set **Maximum items** to limit the reply export. HTF reads that dataset without starting a supplier. Each exported reply must link to a parent comment. A reply count by itself cannot supply the text. Select a dataset containing up to 100 source rows. Apify reserves collection with **Include nested comments** on its dedicated collector for paying users. [Supplier input and limits](https://apify.com/apify/instagram-comment-scraper/input-schema)

For spreadsheet review, choose **XLSX** to preserve query and comment text, including leading punctuation. Native CSV also retains the punctuation. When importing CSV into a spreadsheet, set the query and comment columns to **Text** so entries beginning with `=` display literally.

The original lookup modes remain available. **Public directory** looks up a published handle from a Wikidata item. The Catalonia archive covers participating government accounts. The professional, owned-media and hashtag modes require their corresponding Meta access.

### Questions before you run

1. **Who is the planner for?** A social media manager or agency deciding which two formats to test on a brand account. The brief gives you a specific test and the posts behind the choice.
2. **Do I need a Meta login?** The two-handle planner works through your Apify account. Separate Meta-specific lookup modes require the relevant Meta access.
3. **What should I enter first?** Enter the brand’s Instagram handle and a different account that publishes for a comparable audience. Verify both handles against their owners’ websites.
4. **Can I see the cost first?** Yes. Choose **Preview supplier cost**. It returns an estimate and starts zero supplier runs. Normal HTF run usage is separate.
5. **What does my spending cap cover?** It covers new supplier collection. The planner splits the cap across the feeds it needs to collect. HTF and platform charges are separate.
6. **Can I reuse one feed and collect the other?** Yes. Select a saved HTF account-feed report for one side and enter the other handle. The saved feed must come from the compatible supplier and have a verified collection window within the preceding 24 hours.
7. **How many posts can the planner request?** The default is 48 per fresh account. Set 6–100 under **Posts to request per new account feed**. The supplier may return fewer posts, and each usable post must qualify for the comparison.
8. **Why compare within each account?** The planner compares two formats inside the brand account and repeats that comparison inside the rival account. A large difference in audience size between the accounts therefore does not decide the result directly.
9. **How does it select comparable posts?** It chooses a publication-age band and two formats by sample coverage before looking at the like counts. Each account needs at least three eligible posts in each format.
10. **What happens when the sample is small?** The brief identifies the shortfall for the selected formats. For a small sample you can request more posts or choose two other comparable account feeds.
11. **What if the two accounts favour different formats?** The brief reports the disagreement and withholds a directional recommendation. Its counts and post links are still available for review.
12. **Can I check the recommendation?** Yes. The brief includes sample sizes, median like counts and links to representative posts. Where the selected sample contains an exception, it links those posts too.
13. **What happens to hidden likes?** Hidden, missing and explicitly estimated likes are excluded from the format comparison. A reported zero remains a valid observation. The brief flags cases in which the supplier did not specify accuracy.
14. **Does the Actor publish the test posts?** Your team publishes three matched pairs on the brand account. The brief sets the formats, measurement window and success rule before you publish.
15. **When should I add each link?** Add it when you publish. Automatic checks use the publication time reported for each post and aim for 72 hours later. For manual scoring, save each snapshot within the same 70–74-hour window.
16. **How is the test scored?** After three pairs, the variant needs at least 20% more total reported likes than a positive control total. A zero control total is inconclusive. The rule applies to the six published posts in this test.
17. **Can I keep a running score?** Yes. For automatic checks, use **Read the running scorecard** and the same tracker throughout the test. A missing count stays visible alongside the other posts. For manual scoring, each new score retains the original rule and earlier accepted observations.
18. **How do I share the result?** Download the tracker's `SCORECARD.md` file to share the running or final report with your client. The original brief and manual scorecards use `EXPERIMENT.md` in their respective runs. A downstream system can use the plan or manual score dataset's JSON export.
19. **Can I retrieve a complete account or comment history?** Collection returns bounded public samples. Saved comment-thread import can link reply text to parent comments when that relationship exists in your source. Fresh nested collection on Apify’s dedicated comments supplier requires its paid-plan feature.
20. **Can I review posts associated with a brand?** Choose **Find posts tagging a brand**. Each result identifies whether a tag list or a caption corroborated the association, or whether the supplier simply listed the post for that brand.
21. **What should I do after an interrupted collection?** Check the saved run summary and the supplier’s run status in your Apify account before starting another collection. A saved run ID can identify a child that already started.
22. **Where can I get help?** Open the **Issues** tab on this Actor’s Apify Store page to contact Howth Technology Factory. Include the lookup mode and error message. Keep credentials, private dataset links and personal data out of public issues.

### Fix common run problems

- **The plan asks for more evidence.** The brief lists the formats or account with too few eligible posts. Increase the sample within your cap or choose a more comparable rival. You can reuse a qualifying account feed to avoid recollecting it.
- **The Tracker ID does not open a new scorecard.** Select the original ready plan under **Saved plan or latest score** once. That grants read access to the plan. Use the Tracker ID alone on later runs.
- **Apify asks for scheduling access.** Follow the scoped-token steps under **Add one link when you publish**. Manual scoring remains available.
- **A result is partial or the charge has not settled.** Open the existing run summary and check the supplier run before collecting again. Use the partial results or saved readings where they suit your task.

Use the Actor’s **Issues** tab for reproducible errors or billing questions. Include the build number, lookup mode, what you expected and the visible error. If you need to discuss a private run, use the studio’s [contact page](https://howthtechnologyfactory.pro/contact.html) and describe the issue without sending credentials or private storage links.

### Recent changes

- **28 November 2026.** Added one-link registration, a running scorecard and timed like checks for eligible plans. The brief shows how to grant read access on first use. Existing saved plans still use their original dataset ID, and manual scoring remains available.

# Actor input Schema

## `mode` (type: `string`):

Start with Plan a content test and two public handles. If the brief proposes a test, you can set up automatic checks and add each new post as you publish it. The other lookup types support account and post research.

## `brandUsername` (type: `string`):

For Plan a content test, enter your brand handle or select its saved feed. To try the cost preview, use nasa.

## `rivalUsername` (type: `string`):

For Plan a content test, enter a different account or select its saved feed. Pair nasa with europeanspaceagency for the example preview. Verify the handle on the organisation’s own website.

## `sourceAction` (type: `string`):

Preview estimates the cost without starting a supplier. Collect reads a selected saved feed or starts the chosen supplier on your Apify account within a positive spending cap.

## `maxCollectionChargeUsd` (type: `number`):

For a new plan, this total supplier cap is divided between the account feeds that need collecting. For automatic setup, it is a per-post cap split between registration and the timed reading. Normal Apify run usage is separate. Zero keeps new paid collection off.

## `experimentPostsPerAccount` (type: `integer`):

For Plan a content test, limit the posts requested for each new feed. The supplier may return fewer.

## `brandContentDatasetId` (type: `string`):

For Plan a content test, reuse a completed HTF account posts report in place of the brand handle.

## `rivalContentDatasetId` (type: `string`):

For Plan a content test, choose a separate completed HTF Account posts or reels report for another account, also collected with Account feed (posts).

## `previousExperimentDatasetId` (type: `string`):

For automatic checks, select the original ready plan dataset. After setup you can also use its Tracker ID. For manual scoring, choose the original plan for the first pair and the latest score dataset for later pairs.

## `trackerId` (type: `string`):

For adding links, reading the scorecard or stopping checks, use the ID returned by setup or select the original ready plan dataset.

## `url` (type: `string`):

For Add a published post, paste one public post or reel link when you publish it. For other lookups, enter the profile, post, reel, public URL or username requested by that mode.

## `pairNumber` (type: `integer`):

If the topics overlap, select pair 1, 2 or 3. When omitted, the post fills the first available pair for its verified format. Publish each format in the same topic order when using automatic pairing.

## `trackingScheduleToken` (type: `string`):

Leave this blank on your first setup. The Actor first checks whether your existing Apify access can schedule a reading. If setup reports a scheduling-permission issue, enter a dedicated scoped token with Create schedules and Run on this Actor here and repeat setup.

## `slotId` (type: `string`):

Set internally when the Actor schedules a like measurement.

## `variantContentDatasetId` (type: `string`):

For Score a content test, choose the HTF account feed snapshot containing the post in the format under test. The supplier must have returned its like count 70–74 hours after publication.

## `controlContentDatasetId` (type: `string`):

For Score a content test, choose the HTF account feed snapshot containing the comparison post. The supplier must have returned its like count 70–74 hours after publication.

## `variantPostUrl` (type: `string`):

For Score a content test, paste the Instagram post or reel link for the format under test in this pair.

## `controlPostUrl` (type: `string`):

For Score a content test, paste the Instagram post or reel link for the comparison format in this pair.

## `replyDatasetId` (type: `string`):

For a saved reply report, choose your completed dataset from Apify Instagram Comment Scraper containing replies. Enter its post URL and set Maximum items for the reply export. No new supplier run is started.

## `reportAction` (type: `string`):

Preview estimates the collector cost for your list. Reuse reads available saved observations. Refresh applies your age and undated-reading settings to decide which profiles need collection. Fresh collection requires a positive spending cap.

## `currentDatasetId` (type: `string`):

Choose the dataset from a completed Apify Instagram Scraper profile details run or a previous HTF profile count report. Complete readings from an HTF report keep their original collection times when known. This optional selection grants read access.

## `previousDatasetId` (type: `string`):

Choose an earlier Apify Instagram Scraper profile details dataset or HTF profile count report. Changes require two readings of the same account with known collection times in order. This optional selection grants read access.

## `maxAgeHours` (type: `integer`):

Refresh accepts a complete dated reading within this age. The default is 24 hours. Set zero to request fresh collection for every valid distinct profile, including profiles with selected undated readings.

## `keepUndatedSelected` (type: `boolean`):

When enabled and the age window is positive, a complete undated reading from either supported saved dataset can be reused. Its collection date stays unknown. Profiles with stale dated readings or missing counts still qualify for refresh.

## `contentSource` (type: `string`):

For account posts or reels, SocialScrape supports either content type. Apify supports Account feed (posts) and manages its own paging. Selecting a saved Apify feed identifies Apify as the source.

## `feedDatasetId` (type: `string`):

Optional for an account posts report. Select your Apify Instagram Scraper dataset containing post rows or a public profile with latest posts. Collect results reads it without a new supplier charge. Each source dataset and selected publication sample can contain up to 100 rows.

## `contentType` (type: `string`):

For an account posts or reels report, choose the public account feed or its reels.

## `maxPages` (type: `integer`):

For SocialScrape account posts or reels, choose a limit from 1 to 5 pages. Search and comment reports use one page. With Apify Instagram Scraper, leave this at 1 and use Maximum items to cap results. Apify manages its own paging.

## `query` (type: `string`):

Enter an account name or handle for account search. For a hashtag or place search, enter one phrase without commas, such as coffee or vintage shops in Copenhagen. Use 1–120 characters on one line.

## `topicType` (type: `string`):

For Search hashtags or places, choose matching hashtag pages or public Instagram place pages. Results can include related terms.

## `verifyEntityId` (type: `string`):

Optional for the account search report. Enter the known entity’s Q ID, such as Q23548 for NASA. A matching Instagram username on that Wikidata revision supports the match. An absent or different username leaves the match inconclusive.

## `maxItems` (type: `integer`):

For account content, tagged posts or hashtag and place discovery, choose 1–100 items. For account searches and comments, choose 1–20 items from one page. The default is 3. Supplier coverage and budget can limit results.

## `includeRankedContext` (type: `boolean`):

Add a separately attributed follower reading where the public FastSocial dataset covers the account. Check its date to see how recent it is.

## `mediaDatasetId` (type: `string`):

For a Post or reel report, choose the dataset from a completed SocialScrape Instagram Scraper API run that contains the post or reel. This gives the report read access. You can use the dataset alone or with the publisher archive.

## `includePublisherArchive` (type: `boolean`):

For a Post or reel report, look for this URL in the Generalitat de Catalunya’s archive of participating government accounts. You can check this source on its own or alongside a saved SocialScrape dataset.

## `profileExport` (type: `object`):

For an Apify Instagram details row, pass username and any measured counts in profile, with its UTC collection time in observedAt. For a FastSocial result from this Actor, pass the full row in profile and omit observedAt to keep its original observation date and attribution. Add previousProfile for an earlier reading from the same source and account. Include previousObservedAt only for Apify details rows.

## `hashtag` (type: `string`):

One hashtag. Meta limits each calling professional account to 30 unique tags per rolling seven days. Requires approved Instagram Public Content Access.

## `order` (type: `string`):

Return up to 50 items from the first page.

## `mediaLimit` (type: `integer`):

Professional lookup only. Choose zero to request profile counts alone.

## `directUrls` (type: `array`):

Use this list in place of the single input. For profile reports and FastSocial lookups, enter 1–50 usernames, @handles or profile URLs. Each input keeps its position. For public-page lookup, enter 1–50 page URLs.

## `previousSnapshot` (type: `object`):

Optional. Supply the earlier output row for the same page to compare timestamped counts. Rounded and unavailable values have no exact delta.

## `entityId` (type: `string`):

Public directory lookup uses a Wikidata item ID. Q23548 identifies NASA.

## `accountId` (type: `string`):

Caller account for a Meta lookup.

## `metaAccessToken` (type: `string`):

Encrypted for this run. Use a Facebook Login token for professional and hashtag lookup, or an Instagram Login token for owned media. Public page and directory lookups do not need a token.

## `username` (type: `string`):

For an account feed or tagged-post lookup, enter one public account’s username or supply its profile URL in the single URL field. Professional lookup accepts a business or creator username.

## `mediaIds` (type: `array`):

Up to 50 media IDs for the owned media lookup.

## `includeComments` (type: `boolean`):

For owned media, request the first 10 comments and up to 5 replies per comment. Requires Instagram comment access. Each page indicates whether more results exist or coverage is unknown.

## `version` (type: `string`):

Graph API version enabled for the calling app.

## Actor input object example

```json
{
  "mode": "experimentPlan",
  "sourceAction": "preview",
  "maxCollectionChargeUsd": 0,
  "experimentPostsPerAccount": 48,
  "reportAction": "preview",
  "maxAgeHours": 24,
  "keepUndatedSelected": false,
  "contentType": "posts",
  "maxPages": 1,
  "topicType": "hashtag",
  "maxItems": 3,
  "includeRankedContext": true,
  "includePublisherArchive": false,
  "order": "recent",
  "mediaLimit": 12,
  "entityId": "Q23548",
  "includeComments": false
}
```

# Actor output Schema

## `results` (type: `string`):

No description

## `jsonl` (type: `string`):

No description

## `csv` (type: `string`):

No description

## `xlsx` (type: `string`):

No description

## `xml` (type: `string`):

No description

# 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 = {
    "mode": "experimentPlan",
    "entityId": "Q23548"
};

// Run the Actor and wait for it to finish
const run = await client.actor("apifmcpfactory/htf-instagram-discovery").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 = {
    "mode": "experimentPlan",
    "entityId": "Q23548",
}

# Run the Actor and wait for it to finish
run = client.actor("apifmcpfactory/htf-instagram-discovery").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 '{
  "mode": "experimentPlan",
  "entityId": "Q23548"
}' |
apify call apifmcpfactory/htf-instagram-discovery --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,apifmcpfactory/htf-instagram-discovery"
        }
    }
}
```

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/Kk5ImYhMCHoepZtiJ/builds/3XD3cUYUuHtSBH1yv/openapi.json
