Customers do not always use a brand’s official name when discussing its products. They may tag an account, shorten the name, mention only a product, make a spelling mistake or describe the company without identifying it directly.

A brand mention API searches public conversations across social networks and other web data sources, then returns matching posts in a structured format. A reliable implementation must detect more than exact keyword matches while preventing unrelated conversations from overwhelming the results.

The solution is a layered query system combining handles, names, aliases, products, executives, misspellings and contextual signals. Each result can then be normalizedn, scored and routed according to its relevance and urgency.


Quick Answer

A brand mention API tracks tagged, untagged and misspelled references using handles, brand names, aliases and fuzzy matching. Text normalization, relevance scoring and exclusion rules help reduce false positives.


Define What Counts

Before building queries, define what qualifies as a brand mention. A narrow definition may miss important conversations, while an overly broad definition can make the monitoring feed unusable.

The classification should explain both how the mention was detected and how strongly it relates to the brand.

Tagged mentions

A tagged mention contains a recognized account handle, page identifier or platform-specific tag.

Examples include:


text

@northstarmobile Can you help with my order?

The camera is excellent. Thanks, @northstarmobile.

Has anyone compared @northstarmobile with other brands?

Tagged mentions generally have high precision because the author intentionally referenced an account. However, the system must distinguish official accounts from fan pages, parody profiles and impersonators.

Maintain a registry containing:

  • Official handles
  • Regional handles
  • Customer-support accounts
  • Product-specific accounts
  • Executive accounts
  • Previous or renamed handles
  • Platform and account identifiers
  • Known impersonator accounts

Whenever possible, match the platform-level account ID rather than depending exclusively on the displayed handle. Handles can change, while internal platform identifiers may remain stable.

Untagged mentions

An untagged mention refers to the brand without linking to an official account.

Examples include:

text

My Northstar Mobile order arrived today.

The new Northstar phone has a better camera.

I switched from another provider to Northstar.

Detecting these mentions requires keyword and entity matching. Queries may include official names, abbreviations, product names, slogans, campaigns and other phrases associated with the company.

Untagged mentions are particularly important for complaints, comparisons and recommendations. Customers may expect the brand to notice public conversations even when they do not know or use its official handle.

Misspelled mentions

Misspelled mentions contain typing errors, spacing changes, missing characters, transposed letters or phonetic variations.

For a fictional brand called Northstar Mobile, variations might include:


text

Northstar Moble

North Star Mobile

Nortstar Mobile

Northstr Mobile

NorthstarMobile

Northstar Mobil

Some variations are predictable and can be maintained in a curated dictionary. Others require fuzzy matching.

Fuzzy search commonly uses edit distance, which measures how many insertions, deletions, substitutions or transpositions are needed to change one term into another.

Product-led mentions

Customers frequently mention a product without identifying the parent company.

Examples include:


The Northstar Air battery lasts all day.

Is the NS One available in blue?

My new Northstar Pro keeps restarting.


A product mention API should connect models, nicknames and abbreviations to a canonical product and parent brand.

Maintain relationships such as:


northstar_mobile

├── northstar_one

│ ├── NS One

│ └── N1

├── northstar_air

│ ├── Air

│ └── NS Air

└── northstar_pro

├── Pro

└── NS Pro

Short product aliases such as “Air” or “Pro” should require additional context because they occur frequently in unrelated conversations.

Indirect mentions

An indirect mention describes the brand without using a registered name.

Examples might include:

text

The phone company with the star-shaped logo

That mobile brand sponsoring the tournament

The company that released the foldable model yesterday

Detecting indirect mentions usually requires semantic search, entity recognition and contextual information. These results should receive lower initial confidence than an exact name or handle match.


Mention classification

Mention typeDetection methodExpected precisionMain risk
Official handleAccount ID or exact-handle matchVery highHandle changes or impersonation
Exact brand namePhrase matchHighAmbiguous brand names
Alias or abbreviationCurated dictionaryMedium to highCommon abbreviations
Product nameProduct dictionary and contextMedium to highGeneric product names
Executive nameName plus company contextMediumPeople with identical names
Known misspellingCurated variant listHighDictionary maintenance
Fuzzy matchEdit-distance matchingMediumFalse positives
Phonetic variationPhonetic key or pronunciation modelMediumUnrelated similar-sounding words
Indirect mentionSemantic or entity modelLow to mediumWeak explainability
Mention Classification

This classification should be retained with every result. Analysts need to know whether a record came from an exact handle, product alias or probabilistic model.

Build the Query System

A strong query system uses several matching layers rather than one large Boolean expression. Each layer captures a different type of mention and can be scored separately.

A social listening API may provide public posts, comments, profiles, hashtags and engagement fields from several sources. Query behavior and available metadata will vary by platform and provider.

Create an entity registry

The entity registry is the authoritative list of brands, products, people and identifiers the system monitors.

A brand record might contain:

json

{

"entity_id": "brand_northstar_mobile",

"canonical_name": "Northstar Mobile",

"entity_type": "brand",

"exact_names": [

"Northstar Mobile"

],

"aliases": [

"North Star Mobile",

"NorthstarMobile"

],

"handles": [

"@northstarmobile",

"@northstarsupport"

],

"products": [

"Northstar One",

"Northstar Air",

"Northstar Pro"

],

"executives": [

"Avery Morgan"

],

"hashtags": [

"#NorthstarMobile",

"#NorthstarOne"

]

}

Version the registry so historical results can be linked to the query configuration used when they were collected.

Separate query layers

Construct queries in layers from the highest-confidence identifiers to the broadest discovery methods.

LayerQuery elementsExampleSuggested weight
Account identifiersOfficial handles and platform IDs@northstarmobile1.00
Exact brand namesOfficial name in quotation marks"Northstar Mobile"0.95
Known aliasesApproved variants and abbreviations"North Star Mobile"0.90
Product namesProduct name with optional context"Northstar Air"0.85
ExecutivesName combined with company terms"Avery Morgan" AND Northstar0.80
Known misspellingsCurated misspelling dictionary"Northstar Moble"0.80
Fuzzy matchesEdit distance with contextNorthstar~1 AND mobile0.65
Semantic matchesSimilarity to known brand descriptionsModel-based match0.50
Queries

The weights are illustrative. Adjust them after reviewing false positives and missed mentions.

Construct Boolean queries

Create separate inclusion, context and exclusion groups.

A simplified query might be:

text

(

"@northstarmobile"

OR "Northstar Mobile"

OR "North Star Mobile"

OR "NorthstarMobile"

OR "Northstar One"

OR "Northstar Air"

)

AND

(

phone OR mobile OR order OR camera OR battery OR service

)

NOT

(

astronomy OR navigation OR school OR sports

)

Do not require contextual terms for official handles or highly distinctive names. Apply stricter context rules to common aliases, short abbreviations and fuzzy matches.

A configurable custom data API can be useful when different sources require distinct query syntax, fields or delivery schedules. The monitoring application should still maintain its own canonical entity registry and processing rules.


Generate misspellings carefully

Curated misspellings should come from real customer conversations, search-query logs, customer-support records and analyst review.

Common error patterns include:

  • Missing characters
  • Repeated characters
  • Adjacent-key substitutions
  • Transposed characters
  • Removed spaces
  • Added spaces
  • Phonetic spelling
  • Regional transliteration
  • Abbreviation
  • Autocorrect substitutions

Fuzzy matching can expand beyond the curated list. Elasticsearch, for example, supports fuzzy queries based on Levenshtein edit distance, including substitutions, insertions, deletions and adjacent-character transpositions.

Keep the maximum edit distance small. Broad fuzzy matching on short or common names can generate many irrelevant results and increase query cost.


Use length-aware fuzziness

A one-character difference has a greater effect on a three-letter brand than on a fifteen-letter brand.

A practical policy could be:

text

1–3 characters: exact match only

4–7 characters: maximum edit distance of 1

8–12 characters: maximum edit distance of 1 or 2

13+ characters: maximum edit distance of 2

These are starting rules, not universal standards. Evaluate results separately for each monitored entity.

Prefix length can also reduce false matches by requiring the first characters to remain unchanged. However, this may miss errors occurring at the beginning of a brand name.


Add phonetic and transliteration variants

Edit distance does not capture every pronunciation-based error.

Consider:

  • Phonetic encodings
  • Speech-to-text variants
  • Regional transliteration
  • Alternative alphabets
  • Diacritic differences
  • Number and letter substitutions
  • Abbreviations spoken as words

For multilingual monitoring, keep language-specific aliases instead of translating every brand term automatically. Product and company names may be transliterated differently across markets.

Monitor executives with context

Executive names can generate large numbers of unrelated matches, particularly when a person has a common name.

Combine the name with:

  • Company name
  • Official title
  • Product names
  • Industry terms
  • Official account
  • Event name
  • Recognized publication
  • Known colleague names

An exact executive handle can receive high confidence. A text-only name match should require supporting context.


Maintain exclusion dictionaries

Exclusion dictionaries should contain known irrelevant meanings, accounts, locations and recurring spam phrases.

Do not permanently suppress a term after one false positive. An exclusion that improves one query may hide valid mentions in another context.

Store exclusions at several levels:

  • Global
  • Brand
  • Product
  • Platform
  • Language
  • Region
  • Campaign

This prevents one organization’s query rules from affecting unrelated entities.


Process and Validate Mentions

Query matching determines which records enter the pipeline. Normalization and validation determine whether those records become useful brand intelligence.

A practical processing flow is:

Collect → Normalize → Resolve Entity → Score Relevance → Enrich → Store and Alert

Normalize the text

Preserve the original content and create a separate normalized version for matching.

Normalization may include:

Converting text to a consistent Unicode form

Applying case folding

Standardizing whitespace

Separating hashtags and handles

Extracting links

Preserving emojis

Detecting language

Creating a diacritic-insensitive copy

Expanding approved abbreviations

Removing invisible formatting characters

Unicode normalization helps ensure that visually equivalent strings use comparable representations. The Unicode Standard defines forms such as NFC, NFD, NFKC and NFKD for this purpose.

Keep the unmodified source text. Compatibility normalization may remove distinctions that matter in some languages or contexts.

Resolve the entity

Entity resolution maps a matched term to its canonical brand, product, executive or competitor.

For example:

text

@northstarmobile → Northstar Mobile

North Star Mobile → Northstar Mobile

Northstar Moble → Northstar Mobile

NS Air → Northstar Air → Northstar Mobile

When one alias could refer to several entities, use surrounding text, author history, source category and geographic context to choose the most likely match.


Calculate relevance

A relevance score can combine several signals:

Where:

  • is match confidence
  • is contextual relevance
  • is entity-resolution confidence
  • is account or author relevance
  • is source quality

These weights are illustrative. Train and test the score using reviewed mentions from the actual brand and industry.

Suggested routing could be:

  • 0.85–1.00: automatically accept
  • 0.65–0.84: accept with lower priority
  • 0.40–0.64: send to review
  • Below 0.40: archive or reject

Retain the score components so analysts can understand why a mention was accepted.


Normalize the record

A common schema allows tagged, untagged and misspelled mentions to appear in the same reporting system.

FieldPurposeExample
mention_idInternal unique identifiermnt_72f93a
platformNormalized sourcereddit
source_idOriginal record identifiert1_a83fc2
mention_typeDetection categorymisspelled
matched_textText that triggered the matchNorthstar Moble
matched_ruleRule or model usedfuzzy_edit_1
canonical_entityResolved brand or productnorthstar_mobile
relevance_scoreMatch confidence0.91
textOriginal public contentMy Northstar Mobile order arrived
author_idSource-level author identifierusr_83921
published_atSource publication time2026-09-09T09:12:00Z
permalinkPublic source locationSource URL
sentimentEnriched sentiment labelpositive
topicClassified subjectdelivery
engagement_totalCalculated interactions214
Normalize Records

Store source-specific engagement fields separately because views, saves, replies and reposts have different meanings.

Remove duplicates without losing reach

The same message may appear through cross-posting, quotation, syndication or repeated API delivery.

Use source IDs and canonical URLs for exact deduplication. Text hashes, media hashes and similarity models can identify near-duplicates.

Maintain one canonical content record and attach amplification events. This prevents double counting while preserving evidence that a mention is spreading.

Add sentiment, topics and intent

Sentiment should be evaluated after relevance and entity resolution.

Useful labels include:

  • Positive
  • Neutral
  • Negative
  • Mixed
  • Unknown

The unknown label prevents uncertain content from being forced into an inaccurate category. Sarcasm, slang, comparisons and quoted statements may require human review.

Topic labels can include product quality, delivery, customer service, price, availability, security and advertising. Intent labels may include complaint, recommendation, support request, purchase consideration or cancellation risk.

Monitoring these classifications can support broader customer feedback analysis without treating every mention as a customer-service ticket.


Protect the pipeline

A production monitoring system should account for temporary source failures, malformed records and repeated events.

Include:

  • Idempotent ingestion
  • Schema validation
  • Maximum retry limits
  • Exponential backoff
  • Dead-letter queues
  • Rate-limit monitoring
  • Collection checkpoints
  • Replay capability
  • Query-version tracking
  • Processing-version tracking

If an enrichment service fails, collection should continue. Store the mention in a pending state and process it when the service recovers.


Turn Mentions Into Action

Brand mention tracking creates value when the results reach the correct team with enough context to support a decision.

Not every mention requires an alert. Low-priority records can contribute to trends, while high-risk events need immediate review.


Define alert rules

Trigger alerts using multiple signals rather than sentiment alone.

Useful signals include:

  • Relevance confidence
  • Negative sentiment
  • Author reach
  • Engagement velocity
  • Mention-volume increase
  • Complaint-topic match
  • Executive mention
  • Product-safety terminology
  • Misinformation pattern
  • Cross-platform spread

A single negative post from a low-relevance account may not justify an alert. A rapidly spreading cluster of similar complaints probably does.

Route by mention type

Tagged support requests can go to customer service. Product defects can go to product and quality teams, while executive or legal-risk mentions may require communications review.

A structured social listening workflow can separate reputation monitoring, customer feedback, campaign analysis and trend detection instead of sending every mention into one queue.

Routing rules should include fallback ownership. If the primary recipient is unavailable, the alert should move to another approved team rather than remain unacknowledged.

Build useful reports

A brand mention dashboard should report more than total volume.

Include:

  • Tagged versus untagged mentions
  • Misspelled mention volume
  • Mentions by product
  • Mentions by platform
  • Relevant versus rejected matches
  • Sentiment distribution
  • Top complaint topics
  • Purchase-intent mentions
  • High-reach authors
  • Engagement velocity
  • Share of voice
  • Alert response time
  • Unresolved incidents

Trend reporting can support brand strategy analysis by showing whether visibility, sentiment and audience language are changing over time.

A separate competitor analysis view can apply the same query framework to competing names, products, executives and campaigns.

Measure detection quality

Create a manually reviewed evaluation set containing:

  • True tagged mentions
  • True untagged mentions
  • Genuine misspellings
  • Product-only references
  • Ambiguous brand names
  • Irrelevant fuzzy matches
  • Sarcasm
  • Multilingual mentions
  • Spam
  • Cross-posts

Use the set to calculate precision and recall.

Precision = Relevant mentions retrieved / All mentions retrieved

Recall = Relevant mentions retrieved / All relevant mentions available

High precision means the feed contains little noise. High recall means the system finds most relevant mentions.

A reputation dashboard may prioritize precision to avoid alert fatigue. A research dataset may accept lower precision to discover more weak or indirect signals.

Review queries continuously

Brand language changes as new products, campaigns and communities emerge.

Review the entity registry when:

  • A product launches
  • A campaign begins
  • An account handle changes
  • An executive joins or leaves
  • A new misspelling becomes common
  • A nickname appears
  • The brand enters a new country
  • A false-positive pattern develops
  • A competitor rebrands

Query maintenance should be an operational process rather than a one-time setup task.

FAQ

FAQs

A brand mention API returns structured public records that match brand names, handles, aliases, products, executives or related queries. The resulting data can power reputation dashboards, alerts, social-intelligence products and customer-feedback analysis.

An untagged mention refers to a brand without using its official social-media handle. It may contain the company name, a product, a slogan, an executive or another recognizable identifier.

Misspellings can be detected through curated dictionaries, edit-distance matching, keyboard-error models, phonetic similarity and language-specific transliterations. Fuzzy matches should use contextual terms and relevance scoring to reduce false positives.

No. The system should first confirm that the result is relevant to the monitored entity. Most low-risk mentions belong in trend reports. Immediate alerts should require additional signals such as negative sentiment, high reach or rapid amplification.

Maintain variations observed in real conversations, search data and support records. Do not generate and store every mathematically possible spelling. A small, reviewed dictionary combined with controlled fuzzy matching is usually more manageable than an unlimited variant list.

Yes, if the entity registry maps products, models and nicknames to the parent brand. Generic product names should require additional context before they are accepted.

eview high-volume and high-risk queries regularly, and update them whenever products, executives, handles, campaigns or markets change. False-positive reports and missed mentions should also trigger query revisions.

Begin with official handles, exact names and a small set of verified aliases. Measure precision before adding products, executives, misspellings and semantic matches. Expand the query system gradually, retaining the rule, score and entity resolution behind every result. This produces a more explainable and maintainable monitoring system than launching with broad fuzzy matching.