SocialHolmes
Instagram TikTok

Collecting posts by hashtag or location for research

What the official APIs allow for hashtag and location research on Instagram and TikTok, what SocialHolmes covers, the data protection side and a costed pull.

The short answer

  1. Instagram's Graph API lets one business or creator account query 30 unique hashtags in any 7 days, after Meta's App Review.
  2. TikTok's Research API allows 1,000 requests and up to 100,000 records a day, but only for approved non-profit academic researchers.
  3. SocialHolmes has hashtag endpoints for both platforms and a location endpoint for Instagram. It has no TikTok location endpoint.
30
unique Instagram hashtags per account per rolling 7 days (Meta Hashtag Search docs, checked 8 Nov 2026)
100,000
TikTok Research API records per day, 1,000 requests (TikTok Research API FAQ, checked 8 Nov 2026)
12
data protection authorities behind the 2023 joint statement on scraping (ICO, 24 Aug 2023)
$2.50
5 hashtags times 1,000 posts at our rate

Read this as

Developer

Use instagram/hashtag with a tag, instagram/location with a place name or id, and tiktok/hashtag with a tag. Set a limit on each run; you pay only for rows returned.

Example A nightly pull of 200 posts for 10 tags is 2,000 rows a night: $1.

Marketer

Pull posts under your campaign and category hashtags each week to see who is posting, what gets engagement and which creators keep showing up.

Example Five hashtags, 500 posts each, every week for a month is 10,000 rows: $5.

Agency

Use Instagram location pulls for venue and event clients: posts tagged at a store, stadium or festival show who visited and what they shared.

Example Posts tagged at 3 venues, 500 each, is 1,500 rows: $0.75.

Researcher

If you qualify for TikTok's Research API, apply; it is free. Use a paid source for Instagram, for TikTok when you don't qualify, or to check the API's coverage. Either way, get ethics approval and write a data management plan first.

Example A sample of 1,000 posts for each of 20 hashtags is 20,000 rows: $10.

What do the official APIs allow?

Route Limit and who can use it
Instagram Graph API 30 unique hashtags per business or creator account in a rolling 7 days. Repeat queries of the same tag don't reset it. Needs App Review for Instagram Public Content Access. No Stories.
TikTok Research API 1,000 requests and up to 100,000 videos or comments a day, 100 per request. Follower lists: up to 2 million records a day.
TikTok eligibility Non-profit academic researchers in the US, EEA, UK and Switzerland, or not-for-profit research bodies in the EU. Approval per project. Commercial users are not eligible.
SocialHolmes Hashtag on Instagram and TikTok, location on Instagram. Pay per row returned, no approval step.

Meta's 30-hashtag cap suits monitoring a few brand tags. It does not suit a study across hundreds of tags. TikTok's Research API is generous on volume but closed to brands, agencies and most independent researchers. A June 2025 study found the API returned no data for about one in eight videos it should have known (arXiv 2506.09746).

Can you collect TikTok posts by location?

Not through SocialHolmes: our TikTok catalogue has hashtag, search and sound endpoints but no location endpoint. Location on TikTok mostly lives in captions and in tags creators choose to add, so the closest route is a keyword search for the place name, which will miss posts that don't mention it.

Instagram is different. Our instagram/location endpoint takes a place name such as "Wankhede Stadium", or the numeric id from a location page, and returns the posts tagged there.

TikTok

Public endpoints: 16

Endpoint What it returns Takes
profile Creator profile details. username
posts A creator's video feed. username
liked Videos a creator has liked. username
reposts Videos a creator has reposted. username
stories A creator's active stories. username
followers Accounts that follow this creator. username
following Accounts this creator follows. username
video A single video and its comments. video_id
comments Comments on a video. video_id
replies Replies to one comment. video_id, comment_id
hashtag Videos under a hashtag. tag
search Videos matching a search. query
search_users Creators matching a search. query
search_hashtags Hashtags matching a search, with their view counts. query
sound One sound — its title, artist and how many videos use it. music_id
sound_videos Videos using a sound. music_id

What does a hashtag pull return?

Post Caption Likes Comments Posted
C1a2B3cDEfG Morning run along the river #runningcommunity 412 18 2026-10-30
C1x9Y8zWvUt New shoes, first 10K #runningcommunity 96 4 2026-10-30
C1q7R6sTpOn Club night intervals #runningcommunity #track 1,288 61 2026-10-30
[
  {
    "code": "C1a2B3cDEfG",
    "caption": "Morning run along the river #runningcommunity",
    "like_count": 412,
    "comment_count": 18,
    "taken_at": "2026-10-30"
  },
  {
    "code": "C1x9Y8zWvUt",
    "caption": "New shoes, first 10K #runningcommunity",
    "like_count": 96,
    "comment_count": 4,
    "taken_at": "2026-10-30"
  },
  {
    "code": "C1q7R6sTpOn",
    "caption": "Club night intervals #runningcommunity #track",
    "like_count": 1288,
    "comment_count": 61,
    "taken_at": "2026-10-30"
  }
]
Source: Illustrative: example rows, not a real run Each row also carries the author and media fields. Field names here are simplified.

Hashtag study, one round

5 hashtags
1,000 posts each
5,000 rows
$2.50 at $0.50 per 1,000

Tags with fewer posts bill less. A run that returns nothing costs nothing.

Is collecting public posts legal under GDPR?

Point What it means for a study
Public is still personal The ICO's joint statement with 11 other authorities (24 Aug 2023) says publicly accessible personal data is still covered by data protection law.
Lawful basis You need one, usually legitimate interests or a public task for universities. Record it before you collect.
Collect less Most analysis needs text, time and engagement. Drop or hash usernames you don't need.
Retention Set a deletion date and keep to it. Don't publish identifiable posts without a reason.
Ethics review Most universities require it for social media data. Platform terms are a separate question from the law; check both.

This is general information, not legal advice. Ask your data protection officer or ethics board about your own project.

Sources

Source Link, date and what we used
Meta Instagram Hashtag Search docs, undated. 30 hashtags in 7 days, App Review.
TikTok Research API FAQ and Research API product page, undated. Quotas and eligibility, read via search results as the pages did not load for us.
arXiv study TikTok's Research API: Problems Without Explanations, arXiv, 11 Jun 2025. Missing-data finding.
ICO Joint statement on data scraping, 24 Aug 2023. Summarised from law-firm and news write-ups; the page refused our fetch.
SocialHolmes Endpoint list from our catalogue; rows priced at $0.50 per 1,000.
Checked 8 Nov 2026.

Questions people ask

How many hashtags can I search with the Instagram API?

30 unique hashtags per Instagram business or creator account in a rolling 7 days, per Meta's Hashtag Search documentation. Querying the same tag again doesn't use another slot.

Who can use the TikTok Research API?

Non-profit academic researchers in the US, EEA, UK and Switzerland, and not-for-profit research bodies in the EU, after TikTok approves a project application. Brands, agencies and other commercial users are not eligible.

Can I get TikTok posts by location?

SocialHolmes has no TikTok location endpoint. You can search for a place name, which finds posts that mention it. Instagram has a location endpoint that returns posts tagged at a place.

Is it legal to collect public social media posts for research?

It can be, but public data is still personal data under GDPR, as the ICO and 11 other regulators said in August 2023. You need a lawful basis, a retention limit and usually ethics approval.

How much does a hashtag dataset cost?

You pay per row returned. 1,000 posts for each of 5 hashtags is 5,000 rows, which costs $2.50 at our rate.

Posts are published in English only. The rest of the site reads in ten languages; these do not, because a translated archive is one nobody keeps current.

Try it on your own targets

The only comparison that settles anything is your own. A new account gets 1,000 credits, needs no card, and runs on the same endpoints and rate as a paying one.