# Initiate a web mapping from a base URL

Get Initiate a web mapping from a base URL data via REST or OpenAny MCP—with pay-per-use pricing and no subscription. Powered by Tavily, pass parameters such as limit, max_breadth, max_depth, and retrieve structured data including result collection, returned base url field, request identifier, returned response time field, and returned credits field to search interfaces and source review, and integration reference.

Documentation: https://openany.si/web/web-initiate-a-web-mapping-from-a-base-url/e5ad342e-f0c5-40fa-ab51-131c28671286/
API ID: e5ad342e-f0c5-40fa-ab51-131c28671286
Provider: tavily
Contract revision: 4
Method: POST
Endpoint: https://api.openany.si/v1/agent-apis/tavily/map
Page update time: 2026-12-03T02:53:41.982Z
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.008–$0.016 / 10 mapped pages
The displayed rate follows the published options and billing groups. Final charges follow reported usage.
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:40.690Z. This is not a price-change timestamp.
```json
{
  "currency": "USD",
  "mode": "usage",
  "priceMicroUsd": "8000",
  "rounding": "ceil",
  "unit": "credit",
  "unitQuantity": "1"
}
```

## Usage and limits
## Initiate a web mapping from a base URL API

Retrieve initiate a web mapping from a base URL via API. Provide url 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 |
| --- | --- |
| `results[]` | Result collection |
| `base_url` | Returned base url field |
| `request_id` | Request identifier |
| `response_time` | Returned response time field |
| `usage.credits` | Returned credits field |

## Request parameters
```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "Initiate a web mapping from a base URL 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": {
      "type": "object",
      "properties": {
        "url": {
          "type": "string",
          "description": "The root URL to begin the mapping."
        },
        "instructions": {
          "type": "string",
          "description": "Natural language instructions for the crawler. When specified, the cost increases to 2 API credits per 10 successful pages instead of 1 API credit per 10 pages."
        },
        "max_depth": {
          "type": "integer",
          "description": "Max depth of the mapping. Defines how far from the base URL the crawler can explore.",
          "minimum": 1,
          "maximum": 5
        },
        "max_breadth": {
          "type": "integer",
          "description": "Max number of links to follow per level of the tree (i.e., per page).",
          "minimum": 1,
          "maximum": 500
        },
        "limit": {
          "type": "integer",
          "description": "Total number of links the crawler will process before stopping.",
          "minimum": 1
        },
        "select_paths": {
          "type": "array",
          "description": "Regex patterns to select only URLs with specific path patterns (e.g., `/docs/.*`, `/api/v1.*`).",
          "items": {
            "type": "string"
          }
        },
        "select_domains": {
          "type": "array",
          "description": "Regex patterns to select crawling to specific domains or subdomains (e.g., `^docs\\.example\\.com$`).",
          "items": {
            "type": "string"
          }
        },
        "exclude_paths": {
          "type": "array",
          "description": "Regex patterns to exclude URLs with specific path patterns (e.g., `/private/.*`, `/admin/.*`).",
          "items": {
            "type": "string"
          }
        },
        "exclude_domains": {
          "type": "array",
          "description": "Regex patterns to exclude specific domains or subdomains from crawling (e.g., `^private\\.example\\.com$`).",
          "items": {
            "type": "string"
          }
        },
        "allow_external": {
          "type": "boolean",
          "description": "Whether to include external domain links in the final results list."
        }
      },
      "required": [
        "url"
      ]
    }
  },
  "required": [
    "path",
    "query",
    "headers",
    "body"
  ]
}
```

## Response fields
Source: Inferred from examples; not an exhaustive provider schema.
```json
{
  "type": "object",
  "properties": {
    "base_url": {
      "type": "string"
    },
    "request_id": {
      "type": "string"
    },
    "response_time": {
      "type": "number"
    },
    "results": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "usage": {
      "type": "object",
      "properties": {
        "credits": {
          "type": "integer"
        }
      }
    }
  }
}
```

## Request example
Scenario: Schema template · Basic request (HTTP assumed)
```bash
curl \
  'https://api.openany.si/v1/agent-apis/tavily/map' \
  -X POST \
  -H "Authorization: Bearer $OPENANY_API_KEY" \
  -H 'Content-Type: application/json' \
  --data-raw '{
  "limit": 5,
  "max_breadth": 5,
  "max_depth": 1,
  "url": "https://docs.tavily.com"
}'
```

## Response example
Response illustration only. Placeholder values and unknown business fields are not recorded API results. Replace request placeholders before use.
Response template · not a real response · Configured HTTP 200; actual status is unverified.
```json
{
  "base_url": "docs.tavily.com",
  "request_id": "123e4567-e89b-12d3-a456-426614174111",
  "response_time": 1.23,
  "results": [
    "https://docs.tavily.com/welcome",
    "https://docs.tavily.com/documentation/api-credits",
    "https://docs.tavily.com/documentation/about"
  ],
  "usage": {
    "credits": 1
  }
}
```

## 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). Keep identifiers and URLs in the formats documented for this implementation.

### Which pagination or result-size inputs are exposed?
limit is integer with minimum 1. Use only the exposed inputs and the continuation metadata returned by this endpoint; a size limit is not automatically a page or cursor.

### What type does max_depth use?
max_depth uses the JSON type integer in body. Preserve that type; strings, numbers, booleans and arrays are not interchangeable.

### Which request format should I follow?
Use POST on the documented OpenAny route with the selected implementation request content type. Do not change the method or move inputs to a different location.

### 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
- search1api: https://openany.si/web/web-initiate-a-web-mapping-from-a-base-url/5f3fb6ec-6e9a-4843-a7dd-b103408de00d/
- tavily: https://openany.si/web/web-initiate-a-web-mapping-from-a-base-url/e5ad342e-f0c5-40fa-ab51-131c28671286/

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