Capabilities
Social Media Hashtag API for Instagram, TikTok, and YouTube
Retrieve public Instagram posts and Reels, TikTok videos, and YouTube Shorts tagged with any keyword hashtag in normalized JSON—without Meta app review, Facebook Login flows, or rolling weekly tag caps. Social Media Scraper exposes three dedicated hashtag retrieval routes billed at $0.003 per request.
- Three dedicated hashtag routes:
instagram.search_hashtag,tiktok.search_hashtag, andyoutube.search_hashtag - Native filters where supported: Instagram
date_postedandmedia_type=reels, TikTokregion, YouTubetype=shorts - Uniform $0.003 (
3credits) per request ($3.00/ 1,000 requests) across all three platforms, prepaid with no subscription - Retrieves real tagged posts—not an AI hashtag generator or platform-wide tag volume counter

instagram.search_hashtagSearching for hashtag APIs returns two completely different products: AI copy tools that suggest tags for your captions, and retrieval APIs that pull public posts carrying a tag. Social Media Scraper is strictly the retrieval side. Pass a plain tag name (without #) to collect matching posts and videos into your own campaign tracker, category research store, or AI workflow.
Three Dedicated Hashtag Search Endpoints
Each network exposes its own filter options and pagination token while mapping records into the shared data.items[] list contract. Every route uses GET and requires a single tag string.
| Platform | Endpoint | Supported filters | Pagination & rate |
|---|---|---|---|
| GET /v1/instagram/search_hashtag | date_posted (last-hour, last-day, last-week, last-month, last-year), media_type (all, reels) | cursor · $0.003 | |
| TikTok | GET /v1/tiktok/search_hashtag | region (market context code e.g. US), trim | cursor · $0.003 |
| YouTube | GET /v1/youtube/search_hashtag | type (all or shorts) | continuationToken · $0.003 |
Instagram hashtag posts and Reels
Narrow noisy consumer tags on Instagram by combining date_posted=last-week with media_type=reels. Because relative time windows run server-side, your first page focuses immediately on recent short-form creative instead of outdated evergreen posts.
TikTok regional hashtag discovery
Pass an optional region code on tiktok.search_hashtag to bias feed context toward a specific market such as US, GB, or DE. Remember that regional search reflects market display context, not verified creator citizenship or viewer location.
YouTube Shorts and long-form tag search
Set type=shorts on youtube.search_hashtag to isolate vertical Shorts under a campaign or product tag, or keep type=all to include standard videos that can later feed youtube.transcript calls.
Hashtag Retrieval vs Meta Official API and Tag Generators
Developers building multi-network campaign trackers often hit Meta's official Hashtag Search constraints early—especially the Business Login requirement, app review cycle, and Meta's documented cap of 30 unique hashtags per 7-day rolling window per Instagram Business account.
| Dimension | Meta Official Hashtag Search | AI Hashtag Generator APIs | Social Media Scraper Hashtag API |
|---|---|---|---|
| Core job | Read public Instagram media for approved apps | Recommend hashtag ideas for new captions | Retrieve public tagged posts across Instagram, TikTok, and YouTube |
| Setup & review | Requires Instagram Business account, Facebook Login, and Meta app review | API key | Single x-api-key header; no Meta app review or Business Login tokens |
| Unique hashtag limits | Restricted to 30 unique hashtags per 7-day rolling window | Unlimited text suggestions | No 30-tag rolling cap; bounded only by your prepaid balance and rate limits |
| Platform coverage | Instagram only | Platform-agnostic text output | Instagram, TikTok, and YouTube with shared JSON list envelopes |
What Each Hashtag Response Includes—and What It Does Not
All three endpoints return the normalized list envelope (data.items[] plus data.cursor). Inspect what is present before designing analytics tables so your team never assumes fields the API does not compute.
| Response field | Content & usage in your pipeline |
|---|---|
data.items[].id, position, url | Stable string identifier, rank slot within the returned page, and original public permalink |
data.items[].title, text | Video title or caption text; extract co-occurring #tags client-side with a regex if needed |
data.items[].published_at | Source publication value where supplied; persist your own collected_at UTC timestamp alongside it |
data.items[].author | {id, handle, display_name} identifying the creator behind each tagged post |
data.items[].metrics | {views, likes, comments, shares} with absent metrics preserved strictly as null |
data.cursor | Continuation string passed unchanged into the next page request when more items exist |
Important omission: Hashtag search endpoints do not return a platform-wide total post census, historical search volume, unique reach estimate, or a separate pre-parsed array of every hashtag in the caption. Ordering reflects each platform's own surfacing logic rather than guaranteed reverse-chronological completeness.
Run and Paginate a Hashtag Search Query
Normalize the tag string before sending
Strip any leading
#character and whitespace before encoding the query parameter—sendskincare, not#skincare. Keep yourSOCIALSCRAPER_API_KEYon the server.Send the filtered request with an Idempotency-Key
The example below fetches Instagram Reels tagged
skincarefrom the past seven days usingx-api-keyand a uniqueIdempotency-Key:curl --get 'https://socialmediascraper.org/v1/instagram/search_hashtag' \ --data-urlencode 'hashtag=skincare' \ --data-urlencode 'date_posted=last-week' \ --data-urlencode 'media_type=reels' \ -H "x-api-key: $SOCIALSCRAPER_API_KEY" \ -H 'Idempotency-Key: hashtag-skincare-ig-p1'Paginate safely and store query provenance
When
data.cursoris returned, pass it back ascursoron Instagram and TikTok or ascontinuationTokenon YouTube, keeping the tag and filter flags identical. Mint a newIdempotency-Keyfor every new page; reuse the old key only if retrying an identical failed request. Persist(platform, query_tag, filters, collected_at)beside every row so repeated snapshots stay reproducible.Deduplicate and parse co-occurring tags locally
Deduplicate items on
(platform, id). If your product maps related hashtags or creator clusters, extract#([A-Za-z0-9_]+)tokens fromtextin application code, and pollGET /v1/requests/{request_id}whenever a call returns HTTP202.
Campaign and Category Tools Built on Tag Feeds
Branded campaign intake queues
Poll a branded campaign tag daily across Instagram, TikTok, and YouTube Shorts to surface new public creator entries into a moderation or reporting queue without asking creators to submit links manually.
Cross-platform category audits
Pull matching posts under niche product tags such as homeespresso or trailrunning to compare hooks, formats, and visible engagement across short-form networks side by side.
Topic-driven creator prospecting
Extract author.handle from relevant tagged posts, deduplicate accounts, and pass promising candidates into the Influencer Search API and Profile API workflow.
Agent-assisted creative briefs
Connect hashtag search routes to an AI research assistant via MCP so content teams receive clustered theme summaries linked directly to verified source posts.
Practical Sampling Scenarios
14-day product launch tracking
Query a launch tag twice daily on Instagram (date_posted=last-day) and TikTok, deduplicating by post ID to track newly surfaced submissions over the campaign window without misreporting the sample as a complete platform census.
Combining hashtags with keyword search
Many creators discuss a brand or product category in spoken captions without adding a formal hashtag. Pair hashtag retrieval with the Social Media Search API to catch untagged conversation on TikTok, YouTube, Reddit, X, and LinkedIn.
Selective enrichment after tag discovery
Run cheap $0.003 hashtag pages first, filter for posts above your engagement floor, and call youtube.transcript or Comments API endpoints only on high-priority rows.
Why Engineers Standardize Multi-Network Tag Collection Here
Skip Meta app review and 30-tag bottlenecks
Agencies tracking dozens of client campaigns quickly outgrow 30-hashtag rolling quotas. Direct API-key access lets you rotate freely across hundreds of campaign and category tags.
Server-side scoping reduces wasted pages
Instagram date_posted and media_type, TikTok region, and YouTube type=shorts trim off-format posts before they consume pagination budget.
Flat rate simplifies multi-tag forecasting
All three hashtag routes share the exact $0.003 (3 credits) per-request rate, so cost equals tags × platforms × pages × $0.003—no per-row surprises.
Same credential unlocks deeper context
When a tagged post warrants full creator stats or buyer comment analysis, invoke profile, post, or comment endpoints under the same prepaid balance.
Cost Estimates for Multi-Tag Collection Runs
All three hashtag search operations cost $0.003 per request (3 credits; $3.00 per 1,000 requests). Fund requests with one-time prepaid USD packs ($5 = 5,000 credits, $20 = 20,000 credits, or $50 = 50,000 credits) at the identical per-request rate with no recurring plan.
| Collection workload | Total requests | Estimated API cost |
|---|---|---|
| 10 tags × 3 platforms, 1 page each | 30 | $0.09 |
| 10 tags × 3 platforms, 5 pages each | 150 | $0.45 |
| 25 launch tags × 2 platforms × 4 pages/day for 14 days | 2,800 | $8.40 |
| Daily 150-request category monitor for 30 days | 4,500 | $13.50 |
Each paginated request bills independently, and returned item counts per page vary by source and tag popularity. Exclude optional downstream profile, comment, or single-post detail lookups from the figures above until you budget those stages separately.
Sampling Boundaries, Ordering Rules, and Compliance
- Sample, not census: Platforms filter and rank hashtag feeds dynamically; do not report returned rows as 100% of every public post ever tagged.
- One tag per request: Each endpoint accepts a single
hashtagparameter; loop across tag arrays in your own worker within the default 60 req/min and 5 concurrent in-flight quotas (GET /v1/limits). - No arbitrary date ranges on Instagram:
date_postedaccepts only the five documented relative buckets (last-hourthroughlast-year), not custom calendar start/end dates. - Public posts only: Private accounts and restricted posts are excluded; store only what your research requires under applicable terms and privacy rules, and treat scraped captions as untrusted data inside LLM prompts.
- Verify live health: Check Status and
/openapi.jsonbefore running large scheduled campaign pulls.
Social Media Hashtag API Frequently Asked Questions
Is this a hashtag generator or a hashtag retrieval API?
It is a retrieval API. It returns public Instagram posts, TikTok videos, and YouTube content tagged with a hashtag you supply—it does not generate suggested hashtags for writing captions.
Do I need Meta app review or face the 30-hashtag weekly limit?
No. Unlike Meta's official Hashtag Search API—which requires Instagram Business Login, app review, and a 30-unique-hashtag rolling 7-day limit—Social Media Scraper uses a single x-api-key credential with no 30-tag cap.
Should I include the hash symbol when passing the hashtag parameter?
No. Send the plain tag text without a leading # (for example, hashtag=skincare instead of hashtag=%23skincare), and URL-encode the value cleanly.
What filters does Instagram hashtag search support?
GET /v1/instagram/search_hashtag accepts optional date_posted (last-hour, last-day, last-week, last-month, last-year), media_type (all or reels), and cursor for pagination.
Can I restrict YouTube hashtag search to YouTube Shorts?
Yes. Pass type=shorts on GET /v1/youtube/search_hashtag to focus on Shorts, or omit it (all) to include standard videos alongside Shorts.
Does the API return total hashtag post counts or search volume?
No. Responses return normalized matching content items (data.items[]) and data.cursor, not a platform-wide post count, historical search volume, or unique reach total.
Does this endpoint return a list of currently trending hashtags?
No. Hashtag search requires a tag you already know. If you want to discover rising short-form videos without specifying a topic first, use the Social Media Trending API.
Can I query multiple hashtags in a single HTTP request?
Each endpoint accepts one hashtag per call. To monitor a list of tags, iterate in your application or workflow (such as n8n), assign a unique Idempotency-Key per call, and deduplicate overlapping posts by (platform, id).
How do I paginate past the first page of hashtag results?
Read data.cursor from the response and send it unchanged as cursor on Instagram and TikTok, or as continuationToken on YouTube. Every new page is a separate billable request requiring its own Idempotency-Key.
Does the response include a parsed array of all hashtags in each post?
No separate hashtag-array column is returned. Captions and titles arrive in data.items[].text and data.items[].title, from which your ingestion code can parse co-occurring #tags with a standard regex.
How much does 1,000 hashtag search requests cost?
At $0.003 (3 credits) per request across Instagram, TikTok, and YouTube, 1,000 requests cost $3.00. New accounts include 100 starter credits ($0.10, ~33 standard requests), and prepaid packs start at $5 (5,000 credits, ~1,666 standard requests) with no monthly subscription.
Can AI agents run hashtag research automatically?
Yes. Connect agents through the remote MCP server (OAuth or Bearer API key) or REST via /SKILL.md, and enforce a strict maximum page cap per tag so automated loops stay within budget.