APIAI GenerationDeveloper

Web Automation Agent (TinyFish)

Execute a goal-directed website workflow with TinyFish and return its final result. Supply a goal and a URL. Sample fields include prices. Use it to integrate the capability into a content workflow.

Selected price
$0.016 / automation stepPublished pricing
Sellers / APIs
1 / 1
Requests · 30d
—Loading...
Success rate · 30d
—Loading...
USE THIS API

Web Automation Agent (TinyFish)

Prepare your request, then continue with your agent.

Selected price

$0.016 / automation step

Provider
API
Pricing
Connect your agent
On this page

Playground

Run sends a real API request. Charges follow the published API contract.

Request parameters
body*object

body

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.

Sample response

{
  "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"
}

Response result

Response structure

Inferred from examples
  • errornull
  • finished_atstring
  • num_of_stepsinteger
  • resultobject
    • pricestring
    • productstring
  • run_idstring
  • started_atstring
  • statusstring

Sellers

SellerPricingRequests · 30dPerformanceAccess
tinyfishCurrent
TinyFish Web Automation Agent · POST · View API reference
$0.016 / automation step—
—successP50—
Loading...
Selected pricing · tinyfishUSD / automation step
Unit price
$0.016

Estimated cost per automation step billing unit. Actual usage is rounded using ceil.

Statistics use persisted gateway logs from the last 30 days up to now, including today.
Success rate = successful requests / all requests;
P50 = median latency of successful requests.
Prices reflect the published API contract. Contract revision: 4. Price update time: not supplied.

× automation step

Total $1.6

API

Method
POST
Endpoint
https://api.openany.si/v1/agent-apis/tinyfish/v1/automation/run
Content type
application/json
Authentication
Authorization: Bearer $OPENANY_API_KEY
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"
}'

Input parameters

Fields in this listing; additional options and input encoding can vary by provider.

ParameterLocationTypeRequiredDescription
agent_configJSON request bodybodyobjectNoAgent behavior configuration

additionalProperties: false

Nested fields and variants
body.agent_config.cursor_style string · Optional

Parent object: body.agent_config

Cursor style for the browser agent.

enum: "fish", "standard", "green-pointer"

body.agent_config.max_duration_seconds integer · Optional

Parent object: body.agent_config

Maximum wall-clock seconds before the agent stops. Defaults to no limit.

minimum: 1

body.agent_config.max_steps integer · Optional

Parent object: body.agent_config

Maximum tool-call steps before the agent stops. Defaults to 150.

minimum: 1 · maximum: 500

body.agent_config.mode string · Optional

Parent object: body.agent_config

Agent behavior mode. "strict" enables fail-fast for test automation.

enum: "default", "strict"

api_integrationJSON request bodybodystringNoName of the integration making this API call (e.g., "dify", "zapier", "n8n"). Used for analytics.
browser_profileJSON request bodybodystringNoBrowser profile for execution. LITE uses standard browser, STEALTH uses anti-detection browser.

enum: "lite", "stealth"

capture_configJSON request bodybodyobjectNoConfigure which data to capture during the run.

additionalProperties: false

Nested fields and variants
body.capture_config.elements boolean · Optional

Parent object: body.capture_config

body.capture_config.html boolean · Optional

Parent object: body.capture_config

body.capture_config.recording boolean · Optional

Parent object: body.capture_config

body.capture_config.screenshots boolean · Optional

Parent object: body.capture_config

body.capture_config.snapshots boolean · Optional

Parent object: body.capture_config

credential_item_idsJSON request bodybodyarrayNoScope vault credentials to specific credential URIs. Requires use_vault to be true. If omitted with use_vault: true, all enabled items are used.

minItems: 1

Nested fields and variants

body.credential_item_ids[] · Array item · string

goalJSON request bodybodystringYesNatural language description of what to accomplish on the website

minLength: 1

output_schemaJSON request bodybodyobjectNoOptional provider-supported structured-output schema subset for the run result. Unsupported fields are rejected before the request is accepted.
Nested fields and variants

body.output_schema.{name} · Named entries · any

profile_idJSON request bodybodystringNoBrowser Context Profile ID to use when use_profile is true.

minLength: 1

proxy_configJSON request bodybodyobjectNoProxy configuration

additionalProperties: false

Nested fields and variants
body.proxy_config.country_code string · Optional

Parent object: body.proxy_config

Proxy exit country (ISO 3166-1 alpha-2). Defaults to US.
body.proxy_config.enabled boolean · Required

Parent object: body.proxy_config

Enable proxy for this automation run
urlJSON request bodybodystringYesTarget website URL to automate

format: uri · pattern: ^[Hh][Tt][Tt][Pp][Ss]?://

use_profileJSON request bodybodybooleanNoOpt-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.
use_vaultJSON request bodybodybooleanNoOpt-in to vault credentials for this run. When true, enabled vault items are included. Defaults to false.
webhook_urlJSON request bodybodystringNoHTTPS URL to receive webhook notifications for run lifecycle events. Must use HTTPS.

format: uri · pattern: ^[Hh][Tt][Tt][Pp][Ss]://

Required markers inside a nested object or variant apply when that object or variant is used.

Sample response

Sample response · Documented HTTP 200 Example from the provider's documentation. Field values in your results will differ.

Official example
{
  "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"
}

Usage billing

$0.016 per automation step. Rounding: ceil.

Agent integration

Copy the resource contract without sharing an API key.

View API Markdown
API Markdown
# Web Automation Agent (TinyFish)

Execute a goal-directed website workflow with TinyFish and return its final result. Supply a goal and a URL. Sample fields include prices. Use it to integrate the capability into a content workflow.
## Available implementations
tinyfish · TinyFish Web Automation Agent: https://openany.si/markets/apis/capabilities/web-automation-agent-tinyfish?offering=6416a40d-7561-403d-80b6-1aca3586de16 · $0.016 / automation step

## Selected API contract
Documentation: https://openany.si/apis/6416a40d-7561-403d-80b6-1aca3586de16
Method: POST
Endpoint: https://api.openany.si/v1/agent-apis/tinyfish/v1/automation/run
Price: $0.016 / automation step
Provider: tinyfish
Contract revision: 4
Price source: OpenAny public API contract and documented provider unit rates. Price update time: not supplied.

Use OPENANY_API_KEY from the environment. API Key calls use your shared balance.

## Prepared request
```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"
}'
```

## API contract
```json
{
  "resource_type": "api",
  "name": "TinyFish Web Automation Agent",
  "endpoint": "https://api.openany.si/v1/agent-apis/tinyfish/v1/automation/run",
  "method": "POST",
  "content_type": "application/json",
  "execution_mode": "sync",
  "authentication": {
    "type": "bearer",
    "environment_variable": "OPENANY_API_KEY"
  },
  "inputs": [
    {
      "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.",
      "json_schema": {
        "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"
      },
      "location": "body",
      "name": "body",
      "nullable": false,
      "pointer": "",
      "required": true,
      "type": "object"
    }
  ],
  "billing": {
    "currency": "USD",
    "mode": "usage",
    "priceMicroUsd": "16000",
    "rounding": "ceil",
    "unit": "step",
    "unitQuantity": "1"
  },
  "examples": [
    {
      "http_status": 200,
      "name": "Official example",
      "request": {
        "body": {
          "agent_config": {
            "max_duration_seconds": 90
          },
          "goal": "Find the pricing page and extract all plan details",
          "url": "https://example.com"
        },
        "headers": {},
        "path": {},
        "query": {}
      },
      "response_body": {
        "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

StatusNext step
400Check the offering and request fields.
401 / 403Verify your credentials and access permissions.
402Inspect the selected access mode and returned payment requirements.
429Respect the returned rate limit and retry guidance.
5xxInspect the error and usage record before retrying a paid operation.

Examples

Official example

Example from the provider's documentation. Field values in your results will differ.

  1. Prepare your environment

    Use a terminal with cURL installed.

    Use an OpenAny API key with shared-balance access. Confirm availability and price before running; a call may charge your balance.

    Set the key in your terminal using the hidden prompt below. Keep its value out of source files and logs.

    Terminal · macOS / Linux
    printf 'OpenAny API key: '
    read -r -s OPENANY_API_KEY
    export OPENANY_API_KEY
    printf '\n'
  2. Run the request

    Paste the complete command below into your terminal.

    Values to replace before running 1

    Review these request fields before running. Keep the published provider and request method unchanged.

    body
    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.
    Terminal · cURL
    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"
    }'
  3. Check the response

    Sample response · Documented HTTP 200

    Sample response
    {
      "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"
    }

Common questions

Do I need a separate key for every provider?

Use your OpenAny API key for standard API access. Read it from OPENANY_API_KEY in your environment and keep it out of prompts, source code and logs.

Are these providers interchangeable?

No. Each offering has its own inputs, pricing and response contract. Selecting a catalog offering does not establish automatic routing or fallback. Confirm the service contract before calling.

How is this API billed?

API-key calls use your shared balance at the selected implementation's published rate. Check the billing unit and request-specific pricing rules before making a paid call. Recorded usage determines the final charge under that contract.

Where do the price and contract come from?

The selected implementation publishes its provider, request contract, revision and billing rules through OpenAny's public API catalog. A revision number identifies a contract version, not a price update date. A price update timestamp is not supplied; do not treat a page date as one.

How do OpenAny Balance and x402 differ?

OpenAny Balance uses an API key and one shared balance. Card, USDC and x402 top-ups, card auto top-up and USDC subscriptions fund that balance; available routes appear on the Credits page. Direct x402 is a separate pay-per-request flow, available only on listings that show it and requiring an authorized payment client.

Does Playground send a paid request?

Yes. After you sign in, Run sends a real API request using an active OpenAny API key. Charges follow the published API contract and use your shared balance. Selecting an implementation, editing inputs and viewing sample responses do not send requests.

Use Web Automation Agent (TinyFish) with your agent

Inspect endpoint contracts and confirm availability and pricing before a paid call.