100 free credits. No credit card required.Start building
Logo
Back to blog

Social Listening Leads API: Find Buyers in Comments

··9 min read

A social listening leads API finds people asking for a product or comparing options in comments and posts. See the intent labels, ranked-leads calls and limits.

Social Listening Leads API: Find Buyers in Comments

A social listening leads API reads public conversations and returns the people who look ready to buy: someone asking for a recommendation, comparing two options, or writing "where can I get this?" under a video. SocialCrawl has two calls for this. GET /v1/prism/comment-leads finds buyers in TikTok comments, and GET /v1/prism/leads ranks web and forum posts where people are comparing or leaving a competitor. If you want to be alerted about every new mention of a keyword instead, that is a different job, covered in the social listening API guide.

What is a social listening leads API?

It is a listening API that scores intent. A keyword listener tells you that someone mentioned your category. A leads API reads the text, decides whether the author wants to buy, and returns only the rows that clear a threshold, with the scores attached so you can check the call yourself.

In SocialCrawl you describe what you sell in one or two plain sentences (offer). Every comment or post is then judged against it: does the author want to buy, would your offer help them, and is the row spam or a seller. Nothing is contacted. The output is a list for your own review.

How do intent labels work?

Each row carries probabilities from 0 to 1 and, for web posts, one intent label. Comment leads use three scores. A comment becomes a lead when purchase_intent is at least 0.5, spam is under 0.5 and fits_offer is at least 0.5. Web leads use a label chosen from a fixed list.

LabelMeaning
asking_for_recommendationAsks others to suggest a product, service or provider
comparing_optionsWeighs two or more named options against each other
switching_awaySays they are leaving or want to replace a product
complainingDescribes a problem without asking for alternatives
promotingAdvertises their own product
news_or_discussion, otherTalks about the topic with no buying signal
uncertainThe classifier had no clear winner

The first three are the strongest buying signals. Rows that are not about the product you named (a snowflake on a Christmas jumper when you searched for Snowflake) are dropped and their URLs listed in dropped_ids.

How do you find buyers in comments?

GET /v1/prism/comment-leads searches TikTok for your query, judges which posts are worth opening, reads the comments of those posts only, and labels each comment. Pass offer to say what you sell. It searches TikTok only.

bash
curl -G "https://www.socialcrawl.dev/v1/prism/comment-leads" \
  -H "x-api-key: $SOCIALCRAWL_API_KEY" \
  --data-urlencode "query=vitamin c serum acne" \
  --data-urlencode "offer=A vitamin C serum for acne." \
  --data-urlencode "posts=20" \
  --data-urlencode "open=5" \
  --data-urlencode "comments_per_post=30"

posts is how many posts to search (up to 90), open is the most posts whose comments are read (up to 20, default 12), and comments_per_post caps the comments read from each. An illustrative lead looks like this (values are examples, not results):

json
{
  "username": "shopper_abc",
  "text": "Adding to my cart!!",
  "kind": "buyer",
  "purchase_intent": 0.93,
  "fits_offer": 0.8,
  "spam": 0.04
}

kind is buyer, or asker if you add include=askers to also return comments that ask a question your offer would answer. The response also lists skipped_posts with the reason each post stayed closed (no_comments, no_url, below_gate, over_open_limit), and an economics block with posts opened, comments judged and credits held and refunded.

Comment leads from a short-video search: a few opened posts sit beside a small stack of shopping tags, while most videos stay closed.

How do you get a ranked list of people comparing or leaving a competitor?

GET /v1/prism/leads takes a competitor and returns a ranked feed of public posts where people ask for alternatives, compare options or say they are switching. It runs three exact phrases ("alternative to X", "X vs", "switching from X") plus Reddit and Hacker News, then ranks everything by lead_score.

bash
curl -G "https://www.socialcrawl.dev/v1/prism/leads" \
  -H "x-api-key: $SOCIALCRAWL_API_KEY" \
  --data-urlencode "competitor=figma" \
  --data-urlencode "product_category=design tool" \
  --data-urlencode "offer=A collaborative interface design tool for product teams." \
  --data-urlencode "limit=20" \
  --data-urlencode "freshness=30d"

An illustrative row from that call:

json
{
  "lead_score": 0.41,
  "title": "Canva vs Figma for a small team",
  "phrase_matched": "figma vs",
  "author_handle": null,
  "intent": { "label": "comparing_options", "about": 0.82, "fits_offer": 0.6, "seller": 0.1 }
}

lead_score combines how clearly the author is asking, comparing or switching, whether your offer fits, how urgent the need sounds, recency and engagement, then multiplies by the chance the post is about your competitor and not a vendor. product_category narrows noisy names, and freshness sets how recent posts must be (default 30 days). Web leads carry no author handle by design, so this call shows where the demand sits.

For people who say outright that they left a named brand, find customers switching from competitors goes deeper.

Are brand mentions leads?

No. A mention only shows that someone wrote your name. SocialCrawl keeps the two apart. GET /v1/prism/mentions takes a handle, a link or a name and returns public posts that mention it, from the first page of each search. It searches X and Reddit by default, with Instagram available for posts that tag a handle. Facebook, Threads and TikTok are accepted but not searched, and private or deleted posts are out of reach.

GET /v1/prism/brand-mentions takes a keyword and a date range and returns mention volume, a sentiment split and recent rows. Pass brand_description and each recent row gets an about_brand probability, so a name collision such as the action figure called figma reads near 0 when you mean the design tool. Those rows stay in the response with their score, so filter on about_brand yourself.

Brand mentions sorted on a table: a few design-tool artboards set apart from a larger pile of action-figure boxes that share the same name.

Use mentions to know who is talking about you and leads to know who might buy. Scoring every comment for sentiment and question type is covered in comment sentiment analysis.

What do these calls cost?

Credits depend on the call. Full tables are in endpoint pricing, and the Prism family is described in the Prism docs.

CallCredits
comment-leads1 per search page, 1 per comment page, 1 per started 25 comments labelled. A default request holds 37 and refunds what did not run
leads50, with half refunded if fewer than half of its core searches succeed
brand-mentions50
mentionsFrom 1 per platform searched

To start, create a SocialCrawl key, send comment-leads with a short query and an honest offer, and read the rows before anyone writes to a commenter.

What does it not do?

  • Price questions are not always buyers. A comment such as "price?" or "pp" can clear the intent threshold. Read the rows before you treat every lead as qualified.
  • A lead is a score. The person has not agreed to be contacted, and SocialCrawl contacts nobody.
  • Comment leads cover TikTok only, and only the posts it opened. A zero means none in that sample; TikTok may still have some.
  • Web leads have no author handle and come from a first page of search, not a full index.
  • Brand mentions give volume and context with no intent score, and total_count covers all time rather than your date range.

Frequently asked questions

How do I find leads on social media with an API?

Describe what you sell as an offer, then call GET /v1/prism/comment-leads with a keyword to find buyers in TikTok comments, or GET /v1/prism/leads with a competitor name to rank web posts where people compare or switch. Each row has intent scores, so you can set your own cutoff.

Is a price question a buying signal?

Often, but not always. A price question shows interest and is a sensible row to review. It can also come from someone comparing, a competitor or a bot. The intent score marks likelihood, so read the text before outreach.

What is the difference between a mention and a lead?

A mention means a post or comment includes your brand name. A lead means the author shows buying intent, such as asking for a recommendation or asking where to buy. Most mentions are not leads.

Is this the same as a social listening API?

No. A social listening API watches keywords on a schedule and sends each new mention once. A leads API judges intent and returns the rows that look like buyers.

Does the API contact the people it finds?

No. It returns public usernames and text for your own review, and nothing is sent to anyone.

Topics
#social-listening-leads-api#social-listening-api#brand-mention-api#comment-leads#social-media-lead-generation#brand-mention-tracking#brand-mentions#b2b-social-listening

Related posts

🤖 AI agent or LLM? Read this page as markdown