Overview
The Analysis API processes stored prompts to identify brand mentions, extract metrics, and provide insights into how AI providers reference your brand and competitors.Endpoints
analyzeMetrics
Analyze prompts for a workspace to extract brand mentions and generate metrics. Type: Mutation (Authorized Workspace) Rate Limit: 10 requests per minuteID of the workspace to analyze prompts for
Whether to analyze all prompts or only unanalyzed ones
true: Re-analyze all prompts in the workspacefalse: Only analyze prompts that haven’t been analyzed yet
Number of prompts that were analyzed
Total number of brand mentions found
Array of analyzed prompt results
When to Use analyzeAll
Incremental Analysis (analyzeAll: false)
- Use when you want to analyze only newly added prompts
- More efficient for workspaces with many prompts
- Recommended for regular/scheduled analysis
analyzeAll: true)
- Use when you’ve updated your brand tracking configuration
- Useful for backfilling analysis after adding new competitors
- Use when you want to ensure all prompts reflect the latest analysis logic
fetchAnalysis
Retrieve analyzed prompt data and brand mention metrics for the workspace. Type: Query (Authorized Workspace)ID of the workspace
Array of analyzed prompts with brand mentions
Total number of prompts analyzed
Total number of brand mentions found
Aggregated statistics per brand
Analysis Workflow
A typical workflow for analyzing brand mentions:1. Store Prompts
First, add prompts to your workspace:2. Run Analysis
Analyze the prompts to extract brand mentions:3. Fetch Results
Retrieve the analyzed data:Understanding Analysis Results
Brand Mentions
Each mention includes:- brand: The name of the brand or company mentioned
- context: The context in which the brand was mentioned
- sentiment: Sentiment analysis (positive, neutral, negative)
- position: Ranking position when mentioned in a list (1 = first mentioned)
Position Tracking
Position indicates where a brand appears in AI responses:- Position 1: First brand mentioned (highest visibility)
- Position 2+: Subsequent mentions
- Lower average positions indicate better visibility
Sentiment Analysis
Sentiment values:- positive: Brand mentioned favorably
- neutral: Brand mentioned without sentiment
- negative: Brand mentioned unfavorably
Performance Considerations
Incremental Analysis
For workspaces with many prompts, use incremental analysis:Complete Re-analysis
When you need to re-analyze all historical data:Related Resources
Prompts API
Store prompts for analysis
Agent API
Automate prompt collection and analysis
Workspace API
Configure workspace settings