Documentation
Adhoc Extractions
Introduction
Adhoc extractions let you instantly extract data from a single webpage. Unlike workflows which run on a schedule, these are one-time extractions that run instantly when requested.
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: