AI Browser
Browser automation with natural language commands
AI Browser lets you automate web interactions using plain English. Describe what you want to do, and the AI configures click sequences, form fills, navigation, and data extraction.
POST /ai/browserFull API DocsFeatures
Natural language automation
Smart element detection
Form auto-fill
Action sequencing
Screenshot capture
Dynamic page handling
Example Use Cases
Login flow
"Click sign in, fill email with test@example.com, click submit"
Form submission
"Fill out the contact form with name John and message Hello"
Navigation
"Click on Products menu, then select the Enterprise plan"
Data entry
"Search for "laptop" and click on the first result"
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| url | string | required | Starting URL |
| prompt | string | required | Natural language automation instructions |
| wait_for | number | optional | Wait time between actions (ms) |
| screenshot | boolean | optional | Capture screenshot after actions |
| timeout | number | optional | Maximum execution time (ms) |
Code Examples
cURL
curl -X POST https://api.spider.cloud/ai/browser \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"url": "https://example.com/login",
"prompt": "Click sign in button, fill email with test@example.com, submit the form",
"screenshot": true
}'Python
from spider import Spider
spider = Spider()
result = spider.ai_browser(
url="https://example.com/login",
prompt="Click sign in button, fill email with test@example.com, submit the form",
screenshot=True
)
print(result['actions_performed'])JavaScript
import { Spider } from '@spider-cloud/spider-client';
const spider = new Spider();
const result = await spider.aiBrowser({
url: 'https://example.com/login',
prompt: 'Click sign in button, fill email with test@example.com, submit the form',
screenshot: true
});
console.log(result.actionsPerformed);