Purpose
Finds 5 competitors for a business URL using Exa’s AI-powered search. Used on the marketing website to show visitors their competitive landscape.Architecture
Two-Step Approach
- Fetch Content - Get the business website content via Exa
/contents - Find Competitors - Ask Exa
/answerto identify competitors based on the content
Internal Services
| Service | Purpose |
|---|---|
| fetch_website_content | Gets website content via Exa |
| fetch_competitors_from_exa | Uses Exa Answer to find competitors |
| parse_json_from_answer | Extracts JSON from Exa response |
| parse_competitors_from_text | Fallback text parsing |
| fallback_from_citations | Uses citations if parsing fails |
| add_favicon_urls_to_competitors | Adds favicon URLs |
Code Location
Rate Limiting
- 10 requests per minute per IP address