# TinyFish Web Automation Agent

Get Web Automation Agent (TinyFish) data via REST or OpenAny MCP—with pay-per-use pricing and no subscription. Powered by Tinyfish, pass parameters such as agent_config, goal, url, and retrieve structured data including returned price field, returned product field, reported status, returned error value, and returned finished at field to search interfaces and source review, and integration reference.

Documentation: https://openany.si/web/web-automation-agent-tinyfish/6416a40d-7561-403d-80b6-1aca3586de16/
API ID: 6416a40d-7561-403d-80b6-1aca3586de16
Provider: tinyfish
Contract revision: 5
Method: POST
Endpoint: https://api.openany.si/v1/agent-apis/tinyfish/v1/automation/run
Page update time: 2026-12-03T02:53:21.377Z
Access: OpenAny REST
OpenAny MCP: availability is not supplied by this REST contract. Check get_api on the configured OpenAny MCP server before execution.
Request content type: application/json
Execution mode: sync
Authentication: Authorization: Bearer $OPENANY_API_KEY

## Billing
Price: $0.016 / automation step
API-key calls use your shared balance. Review the published billing rules before making a paid request.
Price source: OpenAny public API contract.
Contract update time: 2026-12-03T02:53:15.350Z. This is not a price-change timestamp.
```json
{
  "currency": "USD",
  "mode": "usage",
  "priceMicroUsd": "16000",
  "rounding": "ceil",
  "unit": "step",
  "unitQuantity": "1"
}
```

## Usage and limits
## TinyFish Web Automation Agent API

Execute a natural-language goal on a website and return the final result through the synchronous automation endpoint. Provide url in body, goal in body. Read the response using the field paths below, preserving identifiers and the declared value types when mapping results.

## What You Can Build

- **Search interfaces and source review**: Keep returned sources and query context together.
- **Integration reference**: Use the selected request format and keep source identifiers with the returned result.

## Documented Response Fields

| Field | Meaning |
| --- | --- |
| `result.price` | Returned price field |
| `result.product` | Returned product field |
| `status` | Reported status |
| `error` | Returned error value (nullable in the reference) |
| `finished_at` | Returned finished at field |
| `num_of_steps` | Returned num of steps field |
| `run_id` | Returned run id field |
| `started_at` | Returned started at field |

## Request parameters
```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "TinyFish Web Automation Agent request inputs",
  "$comment": "Declared input types grouped by HTTP location. Path, query and header values describe decoded inputs and are serialized as text on the wire; body is the payload. This is not an exhaustive provider contract or a schema for the raw HTTP request.",
  "type": "object",
  "properties": {
    "path": {
      "type": "object",
      "properties": {}
    },
    "query": {
      "type": "object",
      "properties": {}
    },
    "headers": {
      "type": "object",
      "properties": {}
    },
    "body": {
      "additionalProperties": false,
      "allOf": [
        {
          "if": {
            "required": [
              "profile_id"
            ]
          },
          "then": {
            "properties": {
              "use_profile": {
                "const": true
              }
            },
            "required": [
              "use_profile"
            ]
          }
        },
        {
          "if": {
            "required": [
              "credential_item_ids"
            ]
          },
          "then": {
            "properties": {
              "use_vault": {
                "const": true
              }
            },
            "required": [
              "use_vault"
            ]
          }
        }
      ],
      "properties": {
        "agent_config": {
          "additionalProperties": false,
          "description": "Agent behavior configuration",
          "properties": {
            "cursor_style": {
              "description": "Cursor style for the browser agent.",
              "enum": [
                "fish",
                "standard",
                "green-pointer"
              ],
              "example": "standard",
              "type": "string"
            },
            "max_duration_seconds": {
              "description": "Maximum wall-clock seconds before the agent stops. Defaults to no limit.",
              "example": 300,
              "minimum": 1,
              "type": "integer"
            },
            "max_steps": {
              "description": "Maximum tool-call steps before the agent stops. Defaults to 150.",
              "example": 50,
              "maximum": 500,
              "minimum": 1,
              "type": "integer"
            },
            "mode": {
              "description": "Agent behavior mode. \"strict\" enables fail-fast for test automation.",
              "enum": [
                "default",
                "strict"
              ],
              "example": "strict",
              "type": "string"
            }
          },
          "type": "object"
        },
        "api_integration": {
          "description": "Name of the integration making this API call (e.g., \"dify\", \"zapier\", \"n8n\"). Used for analytics.",
          "example": "dify",
          "type": "string"
        },
        "browser_profile": {
          "description": "Browser profile for execution. LITE uses standard browser, STEALTH uses anti-detection browser.",
          "enum": [
            "lite",
            "stealth"
          ],
          "example": "lite",
          "type": "string"
        },
        "capture_config": {
          "additionalProperties": false,
          "description": "Configure which data to capture during the run.",
          "properties": {
            "elements": {
              "type": "boolean"
            },
            "html": {
              "type": "boolean"
            },
            "recording": {
              "type": "boolean"
            },
            "screenshots": {
              "type": "boolean"
            },
            "snapshots": {
              "type": "boolean"
            }
          },
          "type": "object"
        },
        "credential_item_ids": {
          "description": "Scope vault credentials to specific credential URIs. Requires use_vault to be true. If omitted with use_vault: true, all enabled items are used.",
          "example": [
            "cred:conn-abc:Work:item-123",
            "cred:conn-def:Personal:item-456"
          ],
          "items": {
            "minLength": 1,
            "type": "string"
          },
          "minItems": 1,
          "type": "array"
        },
        "goal": {
          "description": "Natural language description of what to accomplish on the website",
          "example": "Find the pricing page and extract all plan details",
          "minLength": 1,
          "type": "string"
        },
        "output_schema": {
          "additionalProperties": {},
          "description": "Optional provider-supported structured-output schema subset for the run result. Unsupported fields are rejected before the request is accepted.",
          "example": {
            "properties": {
              "price": {
                "type": "number"
              },
              "title": {
                "type": "string"
              }
            },
            "required": [
              "title",
              "price"
            ],
            "type": "object"
          },
          "properties": {},
          "type": "object"
        },
        "profile_id": {
          "description": "Browser Context Profile ID to use when use_profile is true.",
          "example": "prof_abc123def4567890",
          "minLength": 1,
          "type": "string"
        },
        "proxy_config": {
          "additionalProperties": false,
          "description": "Proxy configuration",
          "properties": {
            "country_code": {
              "description": "Proxy exit country (ISO 3166-1 alpha-2). Defaults to US.",
              "example": "US",
              "type": "string"
            },
            "enabled": {
              "description": "Enable proxy for this automation run",
              "example": true,
              "type": "boolean"
            }
          },
          "required": [
            "enabled"
          ],
          "type": "object"
        },
        "url": {
          "description": "Target website URL to automate",
          "example": "https://example.com",
          "format": "uri",
          "pattern": "^[Hh][Tt][Tt][Pp][Ss]?://",
          "type": "string"
        },
        "use_profile": {
          "description": "Opt-in to the default Browser Context Profile if Browser Context Profiles are enabled; legacy callers are silently ignored when the profiles feature is disabled. Returns 400 when enabled but no default profile is set.",
          "example": true,
          "type": "boolean"
        },
        "use_vault": {
          "description": "Opt-in to vault credentials for this run. When true, enabled vault items are included. Defaults to false.",
          "example": true,
          "type": "boolean"
        },
        "webhook_url": {
          "description": "HTTPS URL to receive webhook notifications for run lifecycle events. Must use HTTPS.",
          "format": "uri",
          "pattern": "^[Hh][Tt][Tt][Pp][Ss]://",
          "type": "string"
        }
      },
      "required": [
        "url",
        "goal"
      ],
      "type": "object",
      "description": "Execute a natural-language goal on a website and return the final result through the synchronous automation endpoint. Usage is measured by the reported number of steps."
    }
  },
  "required": [
    "path",
    "query",
    "headers",
    "body"
  ]
}
```

## Response fields
Source: Inferred from examples; not an exhaustive provider schema.
```json
{
  "type": "object",
  "properties": {
    "error": {
      "type": "null"
    },
    "finished_at": {
      "type": "string"
    },
    "num_of_steps": {
      "type": "integer"
    },
    "result": {
      "type": "object",
      "properties": {
        "price": {
          "type": "string"
        },
        "product": {
          "type": "string"
        }
      }
    },
    "run_id": {
      "type": "string"
    },
    "started_at": {
      "type": "string"
    },
    "status": {
      "type": "string"
    }
  }
}
```

## Request example
Scenario: Official example
```bash
curl \
  'https://api.openany.si/v1/agent-apis/tinyfish/v1/automation/run' \
  -X POST \
  -H "Authorization: Bearer $OPENANY_API_KEY" \
  -H 'Content-Type: application/json' \
  --data-raw '{
  "agent_config": {
    "max_duration_seconds": 90
  },
  "goal": "Find the pricing page and extract all plan details",
  "url": "https://example.com"
}'
```

## Response example
Example from the provider's documentation. Field values in your results will differ.
Sample response · Documented HTTP 200
```json
{
  "error": null,
  "finished_at": "2024-01-01T00:00:30Z",
  "num_of_steps": 5,
  "result": {
    "price": "$799",
    "product": "iPhone 15"
  },
  "run_id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
  "started_at": "2024-01-01T00:00:00Z",
  "status": "COMPLETED"
}
```

## Error handling
400: Check the request fields.
401 / 403: Verify credentials and access permissions.
402: Inspect payment requirements and balance.
429: Respect returned retry guidance.
5xx: Inspect the error and usage record before retrying a paid operation.

## Common questions
### Which inputs identify this request?
Provide url in body (string); goal in body (string). Keep identifiers and URLs in the formats documented for this implementation.

### How should I structure the JSON body?
Send the body according to its root JSON schema. Do not add a second body wrapper around the documented properties, and preserve the declared types of nested values.

### How should I map the returned fields?
Use the documented response paths with their returned types. Keep null, empty collections, false and zero distinct, and retain the identifiers needed to match results to the request.

### Can I reuse request parameters from another endpoint?
Use the selected implementation schema. Similar operation names, providers or versions do not establish identical input locations, types or response fields.

### Which API key should I use?
Use your OpenAny API key as Bearer authentication on the documented OpenAny route.

### Where can I check the current request price?
Check the pricing area for the selected API implementation. Follow its billing unit, quantity and any request-dependent rules before sending the request.

## Available implementations
- tinyfish: https://openany.si/web/web-automation-agent-tinyfish/6416a40d-7561-403d-80b6-1aca3586de16/

Integration guide: https://openany.si/docs/
Agent setup: https://openany.si/SKILL.md
