A comprehensive collection of practical examples, integration guides, and community showcases for building with Perplexity's Sonar API - the fastest, most cost-effective AI answer engine with real-time search capabilities.
🛠️ Examples
Ready-to-run applications demonstrating real-world use cases:
- Fact Checker CLI - Verify claims and articles for accuracy
 - Daily Knowledge Bot - Automated daily fact delivery system
 - Disease Information App - Interactive medical information lookup
 - Financial News Tracker - Real-time market analysis
 - Academic Research Finder - Literature discovery and summarization
 - Discord Bot - Discord integration example
 
Community-built applications including:
- News and finance apps
 - AI-powered search tools
 - Browser extensions
 - Educational platforms
 - And many more innovative projects
 
In-depth tutorials for advanced implementations:
- Memory management patterns
 - OpenAI agents integration
 - Multi-modal implementations
 
- Browse the documentation to find examples that match your needs
 - Clone this repository and navigate to any example directory
 - Follow the setup instructions in each example's README
 - Get your API key from Perplexity
 - Build and customize for your specific use case
 
All examples require a Perplexity API key:
export PPLX_API_KEY="your-api-key-here"Get your API key at docs.perplexity.ai.
Have a project built with Sonar API? We'd love to feature it!
This repository syncs to docs.perplexity.ai/cookbook on every commit.