Skip to main content

Scenario

Your competitors appear in industry news daily — product launches, funding rounds, executive hires, partnerships. This job searches for competitor mentions across all news sources, aggregates them by competitor, then runs the corpus through Mave for structured competitive intelligence: what they’re doing, how the market reacts, and what opportunities emerge for your brand. Flow: NewsAPI GET /everything?q={competitor} → Aggregate by entity → Mavera POST /mave/chat → Competitive intelligence brief

Code

Example Output

Error Handling

Wrap competitor names in double quotes ("Competitor A") to avoid partial matches. For common names, add industry terms: "Acme" AND "marketing platform".
Free tier searches back 1 month. Business tier goes back to 2019. Adjust LOOKBACK_DAYS accordingly.
NewsAPI may return syndicated copies. Deduplicate by title similarity before sending to Mave.