When to use
Use the agent API when you need to:- Quick extraction: Get data without configuring selectors
- Production-ready: Use battle-tested extractors maintained by Nimble
- Simple params: Provide IDs or terms instead of constructing URLs
- Normalized data: Receive consistent schemas across requests
- Zero maintenance: Let Nimble handle site changes
API endpoint
Parameters
agent - Required
agent - Required
The name of the pre-built agent you want to use. Each agent is designed for a specific platform or data type.Popular agents:
amazon_pdp- Amazon product pagesamazon_serp- Amazon search resultsgoogle_search- Google search resultsgoogle_maps_search- Google Maps locationswalmart_pdp- Walmart productschatgpt- ChatGPT prompt resultsperplexity- Perplexity prompt resultsgemini- Google Gemini prompt results
params - Required
params - Required
Agent-specific parameters that tell the agent what data to fetch. Each agent has different requirements.Common param types:
- Product IDs (ASINs, SKUs)
- Search queries
- URLs or usernames
- Location information
- Page numbers
localization - Optional
localization - Optional
Controls if localization sould be enabled (default false).Some agent support localization based on
zip_code or store_id on the site it self. Relevant only when agent is supporting localizationCommon related param types:- Zip code - selecting localization based on ZIP code user input
- Store ID - selecting localization based on Store ID user input
localization input under params.Use the Agent’s Gallery to understand each agent’s capabilities, including localization support.
Usage
Product search results extraction
Extract search on product listings from e-commerce platforms:E-commerce extraction
Extract product data from popular platforms:Search engine extraction
Get search results from Google and Bing:Async agent extraction
Run agent extractions asynchronously for batch processing and long-running operations. Async-specific parameters: In addition to the standardagent and params parameters, async requests support optional parameters:
callback_url(string): Webhook URL to receive a POST notification when the task completesstorage_type(string): Storage provider for results (s3for Amazon S3 orgsfor Google Cloud Storage)storage_url(string): Repository URL where results will be saved (e.g.,s3://my-bucket/nimble-results/)storage_compress(boolean): Compress results using GZIP before saving to storagestorage_object_name(string): Custom name for the stored object instead of the default task ID

