> ## Documentation Index
> Fetch the complete documentation index at: https://docs.nimbleway.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Introduction

> Get started with Nimble's API

Nimble API turns the live web into structured data through a simple REST API. Search the web, extract any page, run pre-built Extract Templates for popular platforms or generate one for any site, run Agents for cited research, map site structures, and crawl entire websites at scale.

> [!NOTE]
>
> **API v2.** This reference documents the v2 API surface. Pre-built extraction
> lives at `/v2/extract/templates` (**Extract Templates** — see the [Templates
> guide](https://docs.nimbleway.com/nimble-sdk/web-tools/extract/template.md)), and autonomous research at
> `/v2/agents` (**Agents** — see the [Agent guide](https://docs.nimbleway.com/nimble-sdk/web-search-agents/overview.md)).
> The legacy v1 endpoints keep working until they are deprecated, but new
> integrations should target v2.

## OpenAPI Specification

The full OpenAPI (Swagger) specification is available for download. Use it to generate clients, import into tools like Postman, or feed it to coding agents.

> [card] [Download OpenAPI spec](https://docs.nimbleway.com/api-reference/openapi.json)
>
> Get the complete OpenAPI 3.1 specification at
> [`/api-reference/openapi.json`](https://docs.nimbleway.com/api-reference/openapi.json).

## API Features

> [card] [Extract](https://docs.nimbleway.com/api-reference/extract/extract.md)
>
> Extract clean HTML and structured data from any URL with custom parsing and
> browser actions.

> [card] [Agent](https://docs.nimbleway.com/api-reference/extract-templates-api/run-extract-template.md)
>
> Run Agents for any website — pre-built for popular platforms, or
> create your own.

> [card] [Search](https://docs.nimbleway.com/api-reference/search/search.md)
>
> Search the web and retrieve full content from top results with optional AI
> summaries.

> [card] [Map](https://docs.nimbleway.com/api-reference/map/map.md)
>
> Discover all URLs on a website with metadata for planning crawl strategies.

> [card] [Crawl](https://docs.nimbleway.com/api-reference/crawl/create-crawl.md)
>
> Extract data from entire websites with async crawling across multiple pages.

> [card] [Tasks](https://docs.nimbleway.com/api-reference/tasks/task-status.md)
>
> Retrieve results from async operations (extract, search, map, crawl).

## Base URL

All API requests use the following base URL:

```bash theme={"system"}
https://sdk.nimbleway.com/v2
```

## Authentication

All requests require authentication using a Bearer token in the Authorization header:

```bash theme={"system"}
Authorization: Bearer YOUR_API_KEY
```

Get your API key from the [Nimble Dashboard](https://online.nimbleway.com/settings/api-keys).

### Example Request

```bash theme={"system"}
curl -X POST 'https://sdk.nimbleway.com/v2/extract' \
  --header 'Authorization: Bearer YOUR_API_KEY' \
  --header 'Content-Type: application/json' \
  --data-raw '{
    "url": "https://www.example.com",
    "render": true
  }'
```

## Response Codes

Nimble uses standard HTTP status codes to indicate the success or failure of requests.

| Status | Description |
| - | - |
| 200 | Request successful. |
| 400 | Bad request - check your parameters. |
| 401 | Unauthorized - invalid or missing API key. |
| 402 | Payment required - insufficient budget or trial expired. |
| 422 | Validation error - invalid request parameters. |
| 429 | Rate limit exceeded - slow down your requests. |
| 500 | Internal server error - Nimble infrastructure issue. |

## Rate Limits

Nimble enforces rate limits to ensure service stability and fair usage across all users.

### Default Rate Limits

| Driver Type | Rate Limit |
| - | - |
| `vx6`, `vx8`, `vx10` | 83 QPS (5,000 QPM) |

> [!TIP]
>
> **QPS** = Queries Per Second, **QPM** = Queries Per Minute. Rate limits apply
> per API key.

### Rate Limit Headers

Responses include headers showing your current rate limit status:

```bash theme={"system"}
ratelimit-limit: 5000
ratelimit-remaining: 4985
```

### Exceeding Rate Limits

When you exceed the rate limit, you'll receive a 429 status code with retry information:

```json theme={"system"}
{
  "error": {
    "code": "RATE_LIMIT_EXCEEDED",
    "message": "Rate limit exceeded. Current limit: 83 QPS",
    "retry_after": 2
  }
}
```

**Need higher limits?** Contact [sales@nimbleway.com](https://login.start-chat.com/modal/601e4da4-50a0-4dc7-8155-bb84f2952c40/27847549-dc04-4144-98a5-d40e568bf6af?magicLinkId=slFQ2j\&UID=65ab324c-ecde-4748-9f52-8e395054774b.1753267174019) for custom rate limits.

## Async Operations

Several endpoints support asynchronous processing for long-running operations:

* `/v2/extract/async` - Async data extraction
* `/v2/extract/templates/async` - Async template extraction
* `/v2/serp/async` - Async SERP retrieval
* `/v2/media/async` - Async media download
* `/v2/crawl` - Crawl operations (async only)

### Working with Async Tasks

1. **Start an async operation** - Returns a task ID
2. **Check task status** - Use `/v2/tasks/{id}` to check progress
3. **Retrieve results** - Get results from `/v2/tasks/{id}/results` when complete

```bash theme={"system"}
# Start async extraction
curl -X POST 'https://sdk.nimbleway.com/v2/extract/async' \
  --header 'Authorization: Bearer YOUR_API_KEY' \
  --header 'Content-Type: application/json' \
  --data-raw '{"url": "https://example.com"}'

# Returns: {"task_id": "8e8cfde8-345b-42b8-b3e2-0c61eb11e00f"}

# Check task status
curl 'https://sdk.nimbleway.com/v2/tasks/8e8cfde8-345b-42b8-b3e2-0c61eb11e00f' \
  --header 'Authorization: Bearer YOUR_API_KEY'

# Get results when complete
curl 'https://sdk.nimbleway.com/v2/tasks/8e8cfde8-345b-42b8-b3e2-0c61eb11e00f/results' \
  --header 'Authorization: Bearer YOUR_API_KEY'
```

## Next Steps

> [card] [Quickstart Guide](https://docs.nimbleway.com/nimble-sdk/getting-started/quickstart.md)
>
> Make your first API request in minutes

> [card] [Rate Limits](https://docs.nimbleway.com/nimble-sdk/admin/rate-limits.md)
>
> Understand rate limits and technical specifications


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.