Introduction
The Desearch API provides powerful AI-powered search capabilities that can be easily integrated into your applications. To simplify integration and reduce boilerplate code, we offer official SDK implementations for the most popular programming languages.
Our SDKs provide:
- Type safety: Full TypeScript/Python type definitions for all API responses
- Error handling: Consistent error handling across all endpoints
- Authentication: Simplified API key management
- Convenience methods: Helper functions for common use cases
- Documentation: Inline documentation and examples
Supported Languages
We currently offer official SDK implementations for the following languages:
Python SDK
Our Python SDK is ideal for:
- Data science and machine learning applications
- Backend services and APIs
- Automation scripts and bots
- Jupyter notebook integrations
- AI agent frameworks (LangChain, LlamaIndex, CrewAI)
Key features:
- Async and sync client support
- Pydantic models for type validation
- Compatible with Python 3.8+
- Easy integration with popular frameworks
View Python SDK Documentation →
JavaScript/TypeScript SDK
Our JavaScript SDK is perfect for:
- Node.js backend applications
- React, Vue, or Angular frontends
- Serverless functions (AWS Lambda, Vercel, Cloudflare Workers)
- Browser-based applications
- Full-stack TypeScript projects
Key features:
- Full TypeScript support with type definitions
- Works in both Node.js and browser environments
- Promise-based async API
- Tree-shakeable for optimal bundle size
View JavaScript SDK Documentation →
Quick Comparison
| Feature | Python SDK | JavaScript SDK |
|---|
| Async Support | ✅ asyncio | ✅ Promises |
| Type Safety | ✅ Pydantic | ✅ TypeScript |
| Browser Support | ❌ | ✅ |
| Node.js Support | ❌ | ✅ |
| Framework Integrations | LangChain, LlamaIndex | React, Vue, Next.js |
Common Features
Both SDKs support all Desearch API endpoints:
Search Endpoints
- AI Search: Semantic search with AI-powered understanding
- Basic Web Search: Fast, traditional web search
- Web Links Search: Search within specific URLs
- Basic X Search: Simple Twitter/X content search
- X Posts Search: Advanced Twitter/X analysis
Additional Features
- Deep Research: Multi-step research queries
- Date Filtering: Historical data access
- Rate Limit Handling: Automatic retry logic
- Error Recovery: Graceful degradation
Getting Started
Step 1: Get Your API Key
Before using any SDK, you'll need a Desearch API key:
- Visit console.desearch.ai
- Create an account or sign in
- Navigate to API Keys section
- Generate a new API key
- Copy and securely store your key
Step 2: Choose Your SDK
Select the SDK that matches your development environment:
- Python developers: Python SDK Guide
- JavaScript/TypeScript developers: JavaScript SDK Guide
Step 3: Install and Configure
Follow the installation instructions in your chosen SDK's documentation. Both SDKs can be installed via their respective package managers:
Python:
JavaScript:
npm install desearch
# or
yarn add desearch
Step 4: Make Your First Request
Each SDK documentation includes quick start examples to help you make your first API call within minutes.
Support and Resources
- API Reference: docs.desearch.ai/api-reference
- GitHub Issues: Report bugs or request features
- Discord Community: Get help from other developers
- Email Support: support@desearch.ai
Choosing the Right SDK
Use Python SDK if:
- You're building ML/AI applications
- You need integration with pandas, numpy, or scikit-learn
- You're using LangChain or LlamaIndex
- You're running automation scripts
- You prefer synchronous code patterns
Use JavaScript SDK if:
- You're building web applications
- You need browser compatibility
- You're using Node.js for backend
- You want TypeScript type safety
- You're building serverless functions
Both SDKs are maintained and updated regularly to support new API features and improvements. Check the respective documentation pages for version history and changelog information.