Threads Brand Mentions API. On each item you fetch.
For each of the caller's brands (brand=Notion,Linear, or JSON with aliases, handles and domains): whether the item mentions it, not something else of that name, and how it speaks of it. Add analysis=brand_mentions to any of 4 Threads endpoints that offer it.
GET /v1/threads/post?analysis=brand_mentions
One param on the request. Brand mentions on each item.
The Threads Post API returns each post with analysis.brand_mentions beside its fields.
curl -G 'https://socialtap.dev/v1/threads/post' \
--data-urlencode 'url=https://www.threads.com/@zuck/post/DeZtp-TkQHh' \
--data-urlencode 'analysis=brand_mentions' \
--data-urlencode 'brand=Notion,Linear' \
-H "x-api-key: $SOCIALTAP_API_KEY"// Node 18+: save this as app.mjs (an ES module) and run: node app.mjs
const params = new URLSearchParams({
url: "https://www.threads.com/@zuck/post/DeZtp-TkQHh",
analysis: "brand_mentions",
brand: "Notion,Linear",
});
const res = await fetch(`https://socialtap.dev/v1/threads/post?${params}`, {
headers: { "x-api-key": process.env.SOCIALTAP_API_KEY ?? "" },
});
const body = await res.json();
if (!res.ok) throw new Error(`${body.error.code}: ${body.error.message}`);
const { data, meta } = body;
console.log(data, meta.credits_charged);import os
import requests
res = requests.get(
"https://socialtap.dev/v1/threads/post",
params={"url": "https://www.threads.com/@zuck/post/DeZtp-TkQHh", "analysis": "brand_mentions", "brand": "Notion,Linear"},
headers={"x-api-key": os.environ["SOCIALTAP_API_KEY"]},
)
body = res.json()
if not res.ok:
raise RuntimeError(f"{body['error']['code']}: {body['error']['message']}")
data, meta = body["data"], body["meta"]
print(data, meta["credits_charged"]){
"brand_mentions": [
{
"brand": "…",
"is_mentioned": true,
"sentiment": "positive",
"probability": 0.95
}
]
}Values are examples.
GET https://socialtap.dev/v1/threads/postDocs What the value means.
A list of objects with the fields below. Each entry carries its own probability, from 0 to 1.
| Field | Meaning |
|---|---|
brand | The brand's name, as the caller gave it. |
is_mentioned | The item mentions this brand (not another thing of the same name). |
sentiment | How the item speaks of it; null when it doesn't mention it. (positive, negative, neutral) |
probability | How likely is_mentioned and sentiment are right, from 0 to 1. |
Keep only what matches.
On a list, where keeps the items that pass. Every item judged is charged whether or not it passes, so a page can be short.
https://socialtap.dev/v1/threads/posts?handle=zuck&analysis=brand_mentions&brand=Notion,Linear&where=analysis.brand_mentions[].is_mentioned=true4 Threads endpoints offer it.
Each adds the analysis to the posts and comments it returns. Text analyses cost one flat amount per request, or per page on a list, however many you ask for.
-
Post
Threads Post API
Post or reply with exact likes and reposts
1 credit$0.75–$1.97 per 1,000 requestsGET /v1/threads/post -
Post
Threads Posts API
Pinned first, with exact likes, replies and reposts
1 credit / page$0.75–$1.97 per 1,000 pagesGET /v1/threads/posts -
Post
Threads Search API
Public posts by keyword, best match or newest
1 credit / page$0.75–$1.97 per 1,000 pagesGET /v1/threads/search_posts -
Comment
Threads Comments API
Replies to a public post, newest first
1 credit / page$0.75–$1.97 per 1,000 pagesGET /v1/threads/comments
| Endpoint | Adds |
|---|---|
| Threads Post API | +2 credits per request |
| Threads Posts API | +44 credits per page of 25 |
| Threads Search API | +35 credits per page of 20 |
| Threads Comments API | +80 credits per page of 50 |
More analyses on Threads and beyond.
The same answer on other platforms, and other answers here.
Questions about Threads brand mentions
The analyses guide has the rest.
Which Threads endpoints offer brand mentions?
How much does an analysis cost?
Do I pay when an analysis can't answer?
Can I get only the items that match?
Which languages do analyses answer in?
Can I use my own categories or questions?
Send your first request in a minute.
Get a key, send a link you already have and see what comes back. The same key works on every platform.
- No credit card
- Failed requests are free
- Works on all 319 endpoints