This guide covers setting up the APIs for telespot.
Run the interactive wizard:
./telespot.py --setup| API | Required | Free Tier | Purpose |
|---|---|---|---|
| Google Custom Search | Recommended | 100/day | Best results |
| Bing Search | Recommended | 1,000/month | Good backup |
| DuckDuckGo | Built-in | Unlimited | Always works |
| Dehashed | Optional | Paid | Breach data |
Free tier: 100 searches/day
- Go to Google Cloud Console
- Create a new project (or select existing)
- Navigate to APIs & Services → Library
- Search for "Custom Search API" and Enable it
- Go to APIs & Services → Credentials
- Click Create Credentials → API Key
- Copy the API key
- Go to Programmable Search Engine
- Click Add to create a new search engine
- Under "Sites to search", enter
*.com(or leave empty) - Name your search engine
- Click Create
- Go to Control Panel for your search engine
- Enable Search the entire web
- Copy the Search engine ID (cx parameter)
./telespot.py --setup
# Enter your Google API Key
# Enter your CSE IDFree tier: 1,000 searches/month
- Go to Azure Portal
- Sign up for a free account (if needed)
- Click Create a resource
- Search for "Bing Search v7"
- Click Create
- Fill in:
- Subscription: Your subscription
- Resource group: Create new or select existing
- Name: Any name (e.g., "telespot-bing")
- Pricing tier: F1 (Free - 1,000 calls/month)
- Click Review + Create → Create
- Go to your Bing Search resource
- Click Keys and Endpoint
- Copy Key 1 or Key 2
./telespot.py --setup
# Enter your Bing API KeyNo setup required!
DuckDuckGo's Instant Answer API is free and doesn't require an API key. It's automatically included in every search.
Note: Results are limited to instant answers and related topics, not full web search results.
Paid service - For breach database searches
- Go to Dehashed
- Create an account and purchase credits
- Log into Dehashed
- Go to your account settings
- Find your API credentials
- Format:
email:api_key
./telespot.py --setup
# Enter: your_email@example.com:your_api_key./telespot.py 5555551234 --dehashedView your API status:
./telespot.py --api-statusOutput:
API Configuration Status:
----------------------------------------
[+] Google: CONFIGURED
[+] Bing: CONFIGURED
[+] DuckDuckGo: CONFIGURED
[-] Dehashed: NOT CONFIGURED
----------------------------------------
3/4 APIs configured
API keys are stored in .telespot_config:
# telespot Configuration
# Google Custom Search API
google_api_key=AIzaSy...
google_cse_id=017576...
# Bing Search API (Azure)
bing_api_key=a1b2c3...
# Dehashed API (optional)
dehashed_api_key=email@example.com:key123
# Settings
default_country_code=+1
delay_seconds=2Security: This file has 600 permissions (owner read/write only).
- Free tier: 100 queries/day
- Resets at midnight UTC
- Use Bing as backup
- Verify key in Azure portal
- Check if resource is still active
- Ensure you're using Bing Search v7
- DuckDuckGo returns instant answers only
- Works better for well-known topics
- Use Google/Bing for comprehensive results
- Check your API key format (email:key)
- Verify account has credits
- Check Dehashed service status
| API | Limit | Reset |
|---|---|---|
| 100/day | Midnight UTC | |
| Bing | 1,000/month | Monthly |
| DuckDuckGo | None | N/A |
| Dehashed | Based on plan | N/A |
- Start with Google + Bing - Best coverage
- Keep DuckDuckGo enabled - Free backup
- Use Dehashed sparingly - Save for important searches
- Monitor usage - Check API dashboards regularly
- Rotate if needed - Create multiple API keys if hitting limits