Code Examples
Learn how to use the Agent Toolkit API with practical examples
Code Examples
Explore these examples to learn how to integrate the Agent Toolkit API into your applications.
Basic Search and Extract Pipeline
This example demonstrates how to search for information and extract content from the top result:
Filtering Search Results
This example shows how to filter search results by domains and date ranges:
Batch Extract Multiple URLs
Extract content from multiple URLs in a single request:
Error Handling with Type Safety
This example demonstrates robust error handling with TypeScript:
Next Steps
Ready to build something amazing with the Agent Toolkit API? Check out our API Reference for complete documentation of all available endpoints.