x-api-key header.
Things to know before you send:
- Search APIs.
search.search(web pages and excerpts),images.search,places.search,flights.search,hotels.searchandshopping.searchare synchronous and priced per request.flights.searchtakes IATA codes (SFO,NYC) and returns itineraries linked to the airline’s booking page;hotels.searchreturns properties with each seller’s offers;shopping.searchreturns products linked to store pages, with the market set byadvanced_settings.location(usby default). fetch_policy.as_ofasks for results as the web stood on a date. Parallel enables it per account: without access it answers 422 “as_of is not enabled”.- Tasks, FindAll and Monitors run in the background.
tasks.createRun,findall.createRunandmonitors.createreturn an id at once; read the result later or pass awebhook. A monitor keeps running on its schedule, and billing, untilmonitors.cancel. - Managed pricing. With
authType: 'managed_pricing'the calls run on Corsair’s Parallel account and are billed in Corsair credits. Only the operations Corsair prices run that way; the rest (background runs, monitors, memory) are refused and nothing is charged. - Inbound webhooks. Parallel signs every delivery the Standard Webhooks way (
webhook-id,webhook-timestamp,webhook-signature: v1,<base64>) with your account’s webhook secret from Settings → Webhooks. SetwebhookSecret, or store it withkeys.set_webhook_signature. Verification needs the untouched request body, and deliveries more than five minutes old are refused. Events:taskRun.status,findall.candidateGenerated,findall.candidateMatched,findall.candidateEnriched,findall.runCompleted,findall.runCancelled,findall.runFailed,monitor.eventDetected,monitor.executionCompletedandmonitor.executionFailed. Subscribe a FindAll run with thefindall.*event names, nottask_run.status.
- 38 typed API operations
- 10 incoming webhook event types
Setup
1
Install
2
Add the plugin
corsair.ts
multiTenancy: true, scope calls with corsair.withTenant(id). See Quick start for KEK + Hub keys, and Multi-tenancy for account isolation.3
Choose authentication
- API Key (Recommended)
Store the Parallel API key before the first call: More: API Key
pnpm corsair setup --plugin=parallel --tenant=acme api_key=<your-key> (leave out --tenant without multiTenancy), or pass it as key in the plugin options. With Hub, each tenant enters their own key on the connect page. See API key auth.4
Connect a tenant
Mint a connect link and send the tenant to it. Hub hosts the page and delivers the result to your app — see Connect / OAuth.
Example API calls
extract.extract
chat.create
Webhooks
This plugin registers 10 webhook event types. Configure the provider to POST to your Corsair HTTP handler, then usewebhookHooks on the plugin factory.
See Webhooks for every event path and payload shape, and Webhooks concept for routing.
What’s next
API reference
Every
parallel.api.* operation with input and output types.Webhooks
Event paths, payloads, and
webhookHooks examples.Connect / OAuth
createLink, Hub delivery, and tenant connect flows.
Use with agents
Expose this plugin’s operations as MCP tools.