Before you start
- Python 3.12 or later
- CatchAll API key from platform.newscatcherapi.com
- LLM provider credentials (OpenAI, Anthropic, etc.) for agent features
Installation
- PyPI
- GitHub (development)
Quickstart
The
search() method handles submission, polling, and retrieval
automatically. Jobs typically complete in 10-15 minutes.CatchAllClient
CatchAllClient wraps the CatchAll Python SDK
with LangChain-friendly patterns: automatic polling, high-level search method,
and pagination handling.
Available as both sync (CatchAllClient) and async (AsyncCatchAllClient).
Basic usage
Jobs: Granular control
For data pipelines or complex workflows:Monitors
Automate recurring searches with scheduled execution. Monitor methods inCatchAllClient
mirror the CatchAll Python SDK interface directly.
Advanced: Cost optimization
Search once, analyze many times without additional API cost:CatchAllTools
Ready-to-use toolkit for LangGraph agents with built-in caching. The killer feature: search once, then analyze unlimited times for free (LLM costs only).| Tool | Duration | Cost | Description |
|---|---|---|---|
catchall_search_data | 10-15 min | API credits | Initialize new search |
catchall_analyze_data | Instant | LLM costs only | Query cached results |
Setup
Install the OpenAI integration package if you haven’t already:Create agent
Agent prompt
TheCATCHALL_AGENT_PROMPT
teaches the agent cost-effective operation by implementing a two-phase workflow:
- Search phase: Uses
catchall_search_datato gather initial dataset, then stop and wait for user input. - Analysis phase: Uses
catchall_analyze_datafor all follow-up questions (filtering, sorting, aggregation, Q&A).
Conversational pattern
The power of caching: perform one expensive search, then ask unlimited follow-up questions for free (LLM costs only).Error handling
Resources
Write effective queries
Construct queries that return focused results
API reference
Complete API endpoints documentation
GitHub repository
Source code and examples
PyPI package
Package installation and releases

