cURL
curl --request POST \ --url https://{subdomain}.mihu.ai/api/v1/data/import/website \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "name": "Website Content", "url": "https://www.example.com/sitemap.xml", "description": "Crawled content from company website", "depth": 1 } '
{ "success": true, "message": "Website crawling initiated", "data": { "uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a", "name": "<string>", "type": "<string>", "path_url": "<string>", "path_ext": "<string>", "status": 123, "process": "<string>", "created_at": "2023-11-07T05:31:56Z", "updated_at": "2023-11-07T05:31:56Z" } }
Crawls and imports data from a provided website URL (up to 3 layers deep).
Use a Bearer token to access these API endpoints. Example: "Bearer {your-token}"
"Website Content"
"https://www.example.com/sitemap.xml"
"Crawled content from company website"
Crawl depth (1-3)
1
Website crawling initiated
true
"Website crawling initiated"
Show child attributes