Before you begin!
Visit the Wetrocloud console to get your API key. If you have trouble obtaining it, refer to this guide.
Visit the Wetrocloud console to get your API key. If you have trouble obtaining it, refer to this guide.
Introduction
This quickstart guide will show you how to extract structured data from any website using the Wetrocloud API. In just a few minutes, you’ll be able to:- Extract data from any URL
- Define your own JSON schema for structured output
- Use AI-powered prompts to specify what data to extract
- An API key from the Wetrocloud Console
Your First Data Extraction
Let’s extract billionaire names and net worth from a news article.1
Make Your First Request
Extract structured data from a website by providing a link, prompt, and JSON schema.
2
Understanding the Response
The API returns a structured JSON response matching your schema:
| Field | Description |
|---|---|
response | Array of extracted data matching your JSON schema |
success | Boolean indicating if the extraction was successful |
3
Try Different Schemas or Plain Text
You can customize the JSON schema to extract different types of data, or omit it entirely for plain text responses.Here are some examples:Extract product information:Extract contact information:Get plain text response (without json_schema):Response:
Pro tip: The
json_schema parameter is optional. Omit it to get a plain text response instead of structured JSON.Next Steps
Great! You’ve successfully extracted structured data from a website. Now you can:- Learn more about the Data Extraction API and all available parameters
- Explore the complete API Reference
- Check out advanced features like custom delays and complex schemas
Need help? Email us at [email protected]