-
Notifications
You must be signed in to change notification settings - Fork 4
API Reference.md
CrawlLama provides a robust REST API powered by FastAPI, allowing for seamless integration into custom applications and automated workflows.
Authentication is handled via an API Key passed in the X-API-Key header.
# Set in .env
CRAWLLAMA_API_KEY=your_secure_api_keyFor local testing, CRAWLLAMA_DEV_MODE=true can be set to bypass authentication.
Executes a research query.
-
Body Parameters:
-
query(string): The search query or question. -
use_tools(boolean): Enable web search and other tools. -
use_multihop(boolean): Enable LangGraph-based reasoning. -
max_hops(integer): Maximum reasoning steps (1-5).
-
Executes a specialized OSINT query using operators.
-
Examples:
email:test@example.com,ip:8.8.8.8,phone:+123456789.
Retrieves stored intelligence (emails, phones, IPs, domains, usernames).
Stores a new piece of intelligence.
-
Payload:
{"category": "email", "value": "target@example.com"}
Deletes specific entries or entire categories.
Returns the status of all system components (LLM, Cache, RAG, Agent).
Returns operational statistics, including token usage and performance metrics.
Retrieves the current active configuration (sensitive values are redacted).
- POST /cache/clear: Flushes the search and reasoning cache.
- POST /session/save: Persists the current session state to the database.
- POST /session/clear: Resets the current conversation history.
- GET /plugins: Lists all available and loaded plugins.
- POST /plugins/{name}/load: Dynamically loads a verified plugin.
- POST /plugins/{name}/unload: Safely unloads a plugin.
The API returns standard HTTP status codes:
-
200: Success. -
401: Unauthorized (Invalid or missing API key). -
429: Too Many Requests (Rate limit exceeded). -
500: Internal Server Error. -
503: Service Unavailable (Component initialization failure).
CrawlLama Research Agent | GitHub Repository | Project Website Privacy-focused, local AI intelligence for the modern researcher.