Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Use Instagram’s Graph API with a Professional account, cache hashtag IDs, collect top and recent public media, and score candidates against a research brief. The reliable workflow is: define your audience and exclusions, authenticate a Business or Creator account, resolve each hashtag with /{ig-user-id}/hashtag_search, retrieve evidence from top_media and recent_media, store raw responses, rank candidates, and manually approve the final set.

What you need before automating

Automation works best when the inputs and access model are explicit. Create a brief containing:

  • Niche and intent: the subject and whether the post is for discovery, education, a product, an event, or a community.
  • Audience: customer type, experience level, geography, language, and any regional spelling.
  • Campaign dates: launch, seasonal, or evergreen.
  • Exclusions: banned terms, sensitive subjects, misleading meanings, and competitor or trademark terms you cannot use.
  • Selection rules: target number of tags, acceptable competition, minimum relevance, and refresh interval.

Use an eligible Instagram account

The documented API route supports Instagram Professional accounts (Business and Creator). Consumer accounts are not supported. For the Facebook Login setup, the Instagram account must be linked to a Facebook Page. Obtain Meta authentication and the permissions required by your app before writing the collector.

Keep official and unofficial access separate

Official Graph API calls have defined permissions and limits. Scrapers, browser automation, and third-party MCP projects may expose additional operations, but they do not automatically have the same permissions, stability, or policy status. Keep any unofficial connector isolated from production data and review its terms before use.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
#1 Best Overall
Elebase USB to USB C Adapter for iPhone 18 Pro Max,USBC Car Charger Adapter
  • Read Before You Buy — No Video Output: These adapters support charging and USB 2.0 data transfer, but cannot transmit video signals. Except for standard USB webcams (which use USB data only), they are not compatible with HDMI/DisplayPort cables, video-capable USB-C hubs, or docking stations with video output.
  • Convert USB-A Ports to USB-C: Designed to connect USB-C earphones, cables, flash drives, card readers, and other USB-C accessories to standard USB-A ports. Plug-and-play with no drivers or software required.
  • Aluminum Alloy Housing: Built with a sturdy aluminum alloy shell that aids in heat dissipation and protects against daily wear and scratches. Designed to maintain a stable and secure connection.
  • Compact & Travel-Friendly: The ultra-compact design allows the adapter to stay plugged into your device without blocking adjacent ports or adding bulk, reducing wear and tear on your original USB ports.
  • 12-Month Warranty: Backed by a 12-month manufacturer warranty for peace of mind. Designed to meet strict quality control standards for reliable everyday performance.

How the official hashtag workflow works

  1. Resolve a hashtag. Call /{ig-user-id}/hashtag_search?q={hashtag}. Send the hashtag text without the # character and save the returned hashtag ID.
  2. Collect top media. Query /{ig-hashtag-id}/top_media for representative, high-visibility examples.
  3. Collect recent media. Query /{ig-hashtag-id}/recent_media to measure current usage and language.
  4. Paginate. Follow each response’s cursor or paging.next link until your collection rule is met. Do not assume the first page is the full result.
  5. Normalize. Store the hashtag ID, original query, retrieval time, media ID, caption, media type, permalink, timestamp, and any engagement or insight fields your permissions provide.
  6. Score and review. Rank candidates, retain raw responses for reproducibility, and manually approve tags before publishing.

The documented hashtag-media workflow represents public media. Posts from private accounts are not included, so a low result count does not prove that a hashtag is unused everywhere.

Minimal API requests

Set GRAPH_API_BASE to the current Graph API base and version used by your Meta app; keep the version in configuration so an API upgrade does not require code changes.

Resolve a hashtag with cURL

curl -G "$GRAPH_API_BASE/{ig-user-id}/hashtag_search" 
  -d "user_id=$IG_USER_ID" 
  -d "q=streetphotography" 
  -d "access_token=$ACCESS_TOKEN"

Save the returned hashtag ID rather than resolving the same spelling on every run.

Fetch top and recent media with cURL

curl -G "$GRAPH_API_BASE/{ig-hashtag-id}/top_media" 
  -d "user_id=$IG_USER_ID" 
  -d "fields=id,caption,media_type,permalink,timestamp" 
  -d "access_token=$ACCESS_TOKEN"

curl -G "$GRAPH_API_BASE/{ig-hashtag-id}/recent_media" 
  -d "user_id=$IG_USER_ID" 
  -d "fields=id,caption,media_type,permalink,timestamp" 
  -d "access_token=$ACCESS_TOKEN"

Python collector

import os
import requests

BASE = os.environ["GRAPH_API_BASE"].rstrip("/")
USER_ID = os.environ["IG_USER_ID"]
TOKEN = os.environ["ACCESS_TOKEN"]

def get(path, params):
    params.update({"user_id": USER_ID, "access_token": TOKEN})
    response = requests.get(f"{BASE}/{path.lstrip('/')}", params=params, timeout=30)
    response.raise_for_status()
    return response.json()

query = "streetphotography"
resolved = get(f"/{USER_ID}/hashtag_search", {"q": query})
hashtag_id = resolved["data"][0]["id"]
fields = "id,caption,media_type,permalink,timestamp"

for edge in ("top_media", "recent_media"):
    page = get(f"/{hashtag_id}/{edge}", {"fields": fields})
    while True:
        for item in page.get("data", []):
            print(item)
        next_url = page.get("paging", {}).get("next")
        if not next_url:
            break
        page = requests.get(next_url, timeout=30)
        page.raise_for_status()
        page = page.json()

In production, write each raw page to durable storage before transforming it. If a later parser changes, you can rebuild rankings without making duplicate API calls.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Rank #2
Anker USB-C Hub, 5-in-1 USB Hub for Laptops, 4K HDMI Multiport Adapter
  • 5-in-1 USB-C Hub: Experience comprehensive connectivity featuring a Power Delivery input, two USB-A 2.0 ports, a USB-A 3.0 port, and an HDMI port. (Note: The USB-C power delivery input port is only for connecting an external wall charger to power your laptop and cannot power peripheral devices.)
  • 90W Pass-Through Charging: Achieve optimal charging with 90W pass-through power to your laptop, supported by a total input of 100W, with the hub reserving 10W for operational efficiency. (Note: Wall charger not included.)
  • Quick Data Transfers: Accelerate your productivity with rapid data transfers using a high-speed 5Gbps USB 3.0 port and two 480Mbps USB 2.0 ports.
  • 4K HDMI Display: Enhance your visual experience with a hub capable of delivering 4K resolution at 30Hz in both mirror and extend modes. Please note that this hub is compatible with MacBook (macOS 12 and newer), Windows 10 and 11, ChromeOS, and laptops equipped with DP Alt Mode and Power Delivery. Note: This device is not compatible with Linux.
  • What You Get: Anker USB-C Hub (5-in-1, 4K HDMI), welcome guide, 18-month warranty, and our friendly customer service.

Node.js collector

const base = process.env.GRAPH_API_BASE.replace(//$/, '');
const userId = process.env.IG_USER_ID;
const token = process.env.ACCESS_TOKEN;

async function get(path, params = {}) {
  const q = new URLSearchParams({ ...params, user_id: userId, access_token: token });
  const res = await fetch(`${base}/${path.replace(/^//, '')}?${q}`);
  if (!res.ok) throw new Error(`${res.status} ${await res.text()}`);
  return res.json();
}

const resolved = await get(`/${userId}/hashtag_search`, { q: 'streetphotography' });
const hashtagId = resolved.data[0].id;
const fields = 'id,caption,media_type,permalink,timestamp';

for (const edge of ['top_media', 'recent_media']) {
  let page = await get(`/${hashtagId}/${edge}`, { fields });
  while (true) {
    for (const item of page.data ?? []) console.log(item);
    const next = page.paging?.next;
    if (!next) break;
    const res = await fetch(next);
    if (!res.ok) throw new Error(`${res.status} ${await res.text()}`);
    page = await res.json();
  }
}

Design a data model you can audit

A single flattened list loses the evidence needed to explain why a tag was selected. Keep a research table with these columns:

Column Purpose
query Exact spelling sent to hashtag search.
hashtag_id Stable API identifier used for media requests.
first_seen_at / last_checked_at Freshness and change tracking.
source_endpoint Top or recent media edge used.
result_count Items collected under your pagination rule.
median_engagement Comparable engagement statistic when permitted fields exist.
relevance_score Fit to the brief, scored by your team.
competition_proxy Relative saturation measure, not an Instagram universal metric.
risk_flags Sensitive meanings, off-topic clusters, or policy concerns.
decision Use, test, hold, or reject, with a reason.

Log failed and empty searches separately. An empty response can result from spelling, sensitivity filtering, permissions, or an access problem; treating it as zero popularity produces bad decisions.

Build a scoring system that matches your strategy

Instagram does not provide a universal hashtag score. Define a transparent policy and keep the components separate so an editor can override an automated rank. One practical 100-point model is:

Factor Example weight What to measure
Topical relevance 30 Caption and media fit to the brief.
Audience and geography 20 Language, region, and likely viewer intent.
Recency 15 How current the recent-media sample is.
Content quality 15 Originality, clarity, and brand suitability.
Observed engagement 10 Median or percentile engagement in your sample.
Competition proxy 10 Estimated saturation relative to similar tags.

Use portfolios instead of selecting only the biggest terms:

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Rank #3
Sale
Anker USB C Hub, 7in1 Multi-Port USB Adapter, 4K@60Hz USBC to HDMI Splitter
  • Sleek 7-in-1 USB-C Hub: Features an HDMI port, two USB-A 3.0 ports, and a USB-C data port, each providing 5Gbps transfer speeds. It also includes a USB-C PD input port for charging up to 100W and dual SD and TF card slots, all in a compact design.
  • Flawless 4K@60Hz Video with HDMI: Delivers exceptional clarity and smoothness with its 4K@60Hz HDMI port, making it ideal for high-definition presentations and entertainment. (Note: Only the HDMI port supports video projection; the USB-C port is for data transfer only.)
  • Double Up on Efficiency: The two USB-A 3.0 ports and a USB-C port support a fast 5Gbps data rate, significantly boosting your transfer speeds and improving productivity.
  • Fast and Reliable 85W Charging: Offers high-capacity, speedy charging for laptops up to 85W, so you spend less time tethered to an outlet and more time being productive.
  • What You Get: Anker USB-C Hub (7-in-1), welcome guide, 18-month warranty, and our friendly customer service.
  • Broad discovery: a small number of high-reach category terms.
  • Niche intent: specific problems, formats, or communities.
  • Branded: your brand, product, or recurring series.
  • Campaign: event or launch terms with a defined end date.

Record the formula and weights with every ranking run. That makes changes explainable when the same hashtag moves up or down.

Stay inside query limits and keep results fresh

A documented Instagram/Meta API review records a maximum of 30 unique hashtag queries in a rolling seven-day period (2026). Count unique search terms, not media pages, and queue new ideas when the window is full.

  1. Resolve each spelling once and cache its hashtag ID.
  2. Refresh high-value tags on a schedule; do not re-resolve unchanged names.
  3. Prioritize campaign tags and recently stale records when capacity becomes available.
  4. Use exponential backoff for transient failures and stop retrying authentication or permission errors until credentials are fixed.
  5. Monitor query usage, response latency, empty-result rates, and pagination failures.

Recent-media freshness depends on API delivery and your polling schedule. Store retrieval timestamps so readers of your internal report know when a result was observed.

Manual validation is the final safety gate

Before publishing a tag, open representative permalinks and check:

What’s actually slowing this PC down?

Pick the symptom - the matching free tool is one click away.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Rank #4
Sale
UGREEN USB to USB C Adapter Combo 4-Pack, 10Gbps USB C Converter Space Gray
  • Dual Converters, Infinite Potential:Includes 2× USB C male to USB A female adapters and 2× USB A male to USB C female adapters. Perfect for a wide range of uses—tablets with Bluetooth keyboards, expand USB ports on macbook, and more. Two different converters for all your daily needs
  • Next-Level 10Gbps & 3A Charging: No more slow 480Mbps, this usb to usb c adapter has a transfer speed of up to 10Gbps, allowing you to do more transferring in less time. This usb adapter fits both USB A and USB C charger, supporting up to 3A fast charging
  • Upgraded Exquisite Craftsmanship: With an aluminum alloy housing and metal connector, the usbc to usb adapter is extremely durable and sturdy. Rigorously tested to withstand more than 10,000 times of plugging and unplugging, ensuring long-lasting performance
  • Broad Compatible: The usb c to usb adapter widely supports all USB C/ USB A devices like laptops, tablets, cellphones, car chargers, and phone chargers. Such as compatible with MacBook Pro/Air 2023/2022, Thunderbolt 4/3 Devices,Apple MagSafe Watch 9/8/7/SE/Ultra, iPad Pro 2022/2021, Samsung Galaxy S23/S20/S10, and iPhone 17/16/15 Pro. Plug and play
  • Please Note: To reach 10Gbps speed, keep the cable under 3.3 ft. For USB A Male to USB C adapters, try flipping the USB C connector. USB C Male to USB A adapters support bidirectional 10Gbps transfer within 3.3 ft
  • The dominant meaning matches the post, not an unrelated community or slang term.
  • Images and captions are appropriate for your audience and geography.
  • The term does not carry an unexpected sensitive or political meaning.
  • The language and spelling match the campaign brief.
  • Your own post would remain truthful if a viewer searched the tag.

Automation narrows the candidate set; it does not replace editorial judgment.

Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Discovery tools and competitor research

Instagram’s search bar can reveal popularity and related ideas. The 2025 Instagram Playbook also identifies Hashtagify and RiteTag as discovery aids for generating ideas and analyzing tags used by industry leaders and competitors. Treat their suggestions as hypotheses: validate each final term with your account’s content, the official public-media evidence you can access, and your manual safety check.

Competitor analysis should focus on public hashtagged media and patterns, not copying captions or collecting private-account data. Compare posting context, recurring tag groups, content format, and apparent audience fit rather than assuming a competitor’s largest tag will work for you.

Common failures and fixes

No hashtag results

Check that the query omits #, uses the intended spelling, and is sent with a valid Professional-account token. Then determine whether filtering or permissions explain the empty response before labeling the tag unpopular.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Best Value
Anker USB C Hub, 5-in-1 USBC to HDMI Splitter with 4K Display
  • 5-in-1 Connectivity: Equipped with a 4K HDMI port, a 5 Gbps USB-C data port, two 5 Gbps USB-A ports, and a USB C 100W PD-IN port. Note: The USB C 100W PD-IN port supports only charging and does not support data transfer devices such as headphones or speakers.
  • Powerful Pass-Through Charging: Supports up to 85W pass-through charging so you can power up your laptop while you use the hub. Note: Pass-through charging requires a charger (not included). Note: To achieve full power for iPad, we recommend using a 45W wall charger.
  • Transfer Files in Seconds: Move files to and from your laptop at speeds of up to 5 Gbps via the USB-C and USB-A data ports. Note: The USB C 5Gbps Data port does not support video output.
  • HD Display: Connect to the HDMI port to stream or mirror content to an external monitor in resolutions of up to 4K@30Hz. Note: The USB-C ports do not support video output.
  • What You Get: Anker 332 USB-C Hub (5-in-1), welcome guide, our worry-free 18-month warranty, and friendly customer service.

Permission or authentication errors

Confirm the token owner, linked Facebook Page requirement for Facebook Login, app permissions, and token expiry. Do not silently retry a rejected request.

Only the first page is stored

Follow cursor pagination or paging.next until your explicit sample limit. Save every raw page and the retrieval time.

Duplicate media skews rankings

Deduplicate by media ID, not caption text. Keep separate top and recent samples so a post appearing in both edges is counted once in combined analysis.

Data changes between runs

That is expected for recent media. Version your scoring weights, preserve raw responses, and compare snapshots by retrieval date instead of overwriting history.

Free tools Windows power users keep installed

One-click scans. No signup required.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Unofficial connector breaks

Separate unofficial account access from the official Graph API path, monitor policy changes, and keep an exit plan that can run on documented endpoints alone.

Or skip the browser setup

If you only need a visual record of a public hashtag page for an audit or briefing, ScreenshotNeo can capture it through one API request. This is complementary to Graph API data collection, not a replacement for structured hashtag metrics.

curl -G "https://api.screenshotneo.com/v1/shot" -d access_key=YOUR_API_KEY --data-urlencode url=https://www.instagram.com/explore/tags/your-hashtag/ -o shot.webp

See the ScreenshotNeo API documentation for parameters and response handling. Cookie and consent banners, newsletter popups, and chat widgets are removed before capture. Bot checks, blank pages, failed loads, timeouts, and cache hits are not billed, and response headers identify the page verdict and billing result. An MCP server provides take_screenshot, get_page_info, and capture_pdf tools for Claude, Cursor, and other MCP clients. The Free plan includes 1,000 screenshots per month with no card; paid plans start at $5 for 3,000 shots. Create a free ScreenshotNeo account.

Cost, reliability, and governance checklist

  • Budget for API or software subscriptions separately from engineering time; current partner commissions and regional pricing are not established here.
  • Encrypt access tokens, restrict logs, and avoid storing credentials beside raw media.
  • Define retention for captions and permalinks, especially when reports include user-generated text.
  • Alert on authentication failures, query-cap exhaustion, unusual empty-result rates, and pagination gaps.
  • Review Meta policy and endpoint changes before each production release.
  • Keep a human approval field so sensitive or off-topic tags cannot flow directly to publishing.

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.