Documentation
Adhoc Extractions
Introduction
Kadoa’s Adhoc endpoint lets you extract a single page on-demand. It is synchronous, so you get your data in one step—no need to set up a full workflow.
Prerequisites
To get the most out of this guide, you’ll need to:
- Create a Kadoa account
- Get your API key
1. Choose the Result Format
Every Adhoc request includes templateId
in the URL path:
- Custom Template ID: Use your own workflow template
html
: Returns the page’s raw HTMLbody
: Returns a cleaned HTML bodymarkdown
: Returns the page in Markdown
2. Use A Proxy Location (Optional)
If you need to specify a proxy location, you can retrieve valid locations first:
Sample Response
Use the returned isoCode
values in your Adhoc requests for location.isoCode
.
3. Run an Adhoc Extraction
To initiate an adhoc extraction, send a POST request to the /adhoc
endpoint with the desired configuration.
A successful response should look like this: