Request
import {
Supadata,
Map
} from '@supadata/js';
// Initialize the client
const supadata = new Supadata({
apiKey: 'YOUR_API_KEY',
});
const siteMap: Map = await supadata.web.map('https://supadata.ai');
from supadata import Supadata, SupadataError
# Initialize the client
supadata = Supadata(api_key="YOUR_API_KEY")
site_map = supadata.web.map("https://supadata.ai")
print(f"Found {len(site_map.urls)} URLs")
curl 'https://api.supadata.ai/v1/web/map?url=https://example.com' \
-H 'x-api-key: YOUR_API_KEY'
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| url | string | Yes | URL of the website to map |
Response Format
{
"urls": [
"string" // List of URLs found on the webpage
]
}
Pricing
- 1 map request = 1 credit