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

> ## Agent Instructions
> Every page is listed in https://docs.keenable.ai/llms.txt. To pick a product for a job, read https://docs.keenable.ai/choose.md
> Setup steps for agents, covering the SDKs, the MCP server and the CLI: https://docs.keenable.ai/skill.md
> Keenable search and fetch work without an API key. To add them to code, use the official SDK for the project's language: https://docs.keenable.ai/sdks.md
> Without a key, call POST https://api.keenable.ai/v1/search/public or GET https://api.keenable.ai/v1/fetch/public with an X-Keenable-Title header that names your app.
> With a key, send it in the X-API-Key header and read it from the KEENABLE_API_KEY environment variable. Never ask a user to paste a key into chat. Every access method: https://docs.keenable.ai/auth.md
> To get an API key without the console, use device login: https://docs.keenable.ai/authentication.md#device-login
> MCP server: https://api.keenable.ai/mcp (no key, or X-API-Key; keyless Codex uses https://api.keenable.ai/mcp-public), or https://api.keenable.ai/mcp-oauth for OAuth sign-in. These docs are an MCP server at https://docs.keenable.ai/mcp and the OpenAPI spec is at https://docs.keenable.ai/api-reference/openapi.json
> Keenable searches and fetches public web pages. If a question needs no web information, skip the call.
> On 402 with an API key (code insufficient_credits), stop and ask a human to add credits; don't retry. On 429, wait the number of seconds in Retry-After, then retry. Before you ship, follow https://docs.keenable.ai/production.md
> Every error, with its cause and fix, is in https://docs.keenable.ai/errors.md and moving from another search API is covered in https://docs.keenable.ai/migrate.md
> Before you compare Keenable with another search API, read https://docs.keenable.ai/guides/evaluate-search-apis.md

# Migrate from Parallel to Keenable

> Move a Parallel Search or Extract integration to Keenable: map search_queries, advanced_settings and excerpts to /v1/search and /v1/fetch.

Replace Parallel Search and Extract calls with Keenable's `POST /v1/search` and `GET /v1/fetch`. This page maps each endpoint, parameter and response field to Keenable, and shows the same request on both APIs.

## Migrate with your coding agent

Paste this prompt into your coding agent. Your agent reads this page as markdown and rewrites your calls.

```text theme={"theme":{"light":"github-light-high-contrast","dark":"dark-plus"}}
Migrate this project from Parallel to Keenable. Read https://docs.keenable.ai/migrate/parallel.md for the endpoint, parameter and response maps. Replace every call with the Keenable SDK call or REST request it maps to, remove the parameters marked None, and read KEENABLE_API_KEY from the environment. Then run one request and show me the result. If a call fails, stop and show me the error.
```

Your agent finishes by running one Keenable request and showing you the result. The prompt works with Claude Code, Cursor, Codex and any other agent that can read a URL.

## What changes

| | Parallel | Keenable |
| - | - | - |
| Search request | `POST https://api.parallel.ai/v1/search` with a JSON body | `POST https://api.keenable.ai/v1/search` with a JSON body. Only `query` is required. |
| Page content | `POST https://api.parallel.ai/v1/extract` with up to 20 `urls` | `GET https://api.keenable.ai/v1/fetch?url=...`, one URL per request |
| Auth header | `x-api-key: $PARALLEL_API_KEY` | `X-API-Key: $KEENABLE_API_KEY`, or no key on `/v1/search/public` and `/v1/fetch/public` |
| Settings | Nested under `advanced_settings` | Top-level parameters |

## Endpoint map

| Parallel | Keenable | Match | Notes |
| - | - | - | - |
| `POST /v1/search` | `POST /v1/search` | Exact | |
| `POST /v1/extract` | `GET /v1/fetch` | Closest | One URL per request. The response is one page object, not a `results` list. |

## Parameter map

A parameter Keenable doesn't list returns `400` with `Unknown parameter(s)`, so remove Parallel parameters instead of sending them along. "Closest" means the Keenable parameter does a similar job with a different format or behavior, described in the notes.

### `POST /v1/search`

| Parallel parameter | Keenable | Match | Notes |
| - | - | - | - |
| `search_queries` | `query` | Closest | One query per request, written in plain language. Send one search per query to run several. |
| `objective` | `objective` | Closest | Keenable validates and logs `objective`. It doesn't change the results yet. |
| `mode` | `mode` | Closest | `realtime` for the fastest response, `pro` (the default) for deeper retrieval. |
| `session_id` | `session_id` | Exact | Keenable keeps the first 128 characters. Groups related requests. |
| `advanced_settings.max_results` | `max_results` | Exact | Keenable takes `1` to `50`. |
| `advanced_settings.source_policy.include_domains` | `site` | Closest | `site` takes one site, and a path narrows further. For several, put `site:a.com OR site:b.com` in `query`. |
| `advanced_settings.source_policy.exclude_domains` | `exclude_domains` | Exact | Host names, or a suffix such as `.gov`. Paths aren't accepted. |
| `advanced_settings.source_policy.after_date` | `published_after` | Exact | Same `YYYY-MM-DD` format. Also takes a relative delta such as `7d`. |
| `advanced_settings.excerpt_settings` | `snippet_max_length` | Closest | Caps the characters in each `snippet`, from `180` to `10000`, like `max_chars_per_result`. |
| `max_chars_total` | None | None | Cap each result with `snippet_max_length` instead. |
| `client_model` | None | None | Remove it. |
| `advanced_settings.location` | None | None | Remove it. |

### `GET /v1/fetch`

| Parallel parameter | Keenable | Match | Notes |
| - | - | - | - |
| `urls` | `url` | Closest | One URL per request. Send one request for each URL. |
| `objective` | `prompt` | Closest | `content` then holds only what the prompt asks for. At most 2,000 characters. |
| `max_chars_total` | `max_chars` | Closest | Caps the length of `content` for one page. |
| `advanced_settings.full_content` | None | None | Not needed. Without `prompt`, `content` is the full page. |
| `search_queries` | None | None | Put what you're looking for in `prompt`. |
| `session_id` | `session_id` | Exact | Keenable keeps the first 128 characters. |

## Response map

### `POST /v1/search`

| Parallel field | Keenable | Match | Notes |
| - | - | - | - |
| `results` | `results` | Exact | |
| `results[].url` | `results[].url` | Exact | |
| `results[].title` | `results[].title` | Exact | |
| `results[].publish_date` | `results[].published_at` | Closest | An ISO 8601 timestamp in UTC. Left out when unknown. |
| `results[].excerpts` | `results[].snippet` | Closest | One markdown string, not a list. |
| `search_id` | The `X-Request-Id` response header | Closest | |
| `warnings` | `warning` | Closest | One string, present only when the query wasn't run as a plain search. |
| `usage` | `usage` | Closest | One object on calls made with a key: `sku`, `amount`, `credits`, `paid`. |
| `session_id` | None | None | Keenable doesn't echo it. Keep the value you sent. |

### `GET /v1/fetch`

| Parallel field | Keenable | Match | Notes |
| - | - | - | - |
| `results[].full_content` | `content` | Exact | Markdown, at the top level of the response. |
| `results[].excerpts` | `content` | Closest | With `prompt`, `content` holds only the extraction. |
| `results[].title` | `title` | Exact | Left out when unknown. |
| `results[].publish_date` | `published_at` | Closest | An ISO 8601 timestamp in UTC. |
| `errors` | None | None | Read the HTTP status of each request. See [Fetch errors](https://docs.keenable.ai/api-reference/fetch.md#errors). |
| `extract_id` | The `X-Request-Id` response header | Closest | |

## Before and after

This search asks both APIs for 5 pages about one goal and leaves one site out. The Keenable request runs without a key and sends the goal as `objective`.

```bash Parallel (before) theme={"theme":{"light":"github-light-high-contrast","dark":"dark-plus"}}
curl -X POST https://api.parallel.ai/v1/search \
  -H "x-api-key: $PARALLEL_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "search_queries": ["solid state battery developments"],
    "objective": "Find 2026 announcements of solid state battery production lines.",
    "advanced_settings": {
      "max_results": 5,
      "source_policy": { "exclude_domains": ["reddit.com"] }
    }
  }'
```

```bash Keenable (after) theme={"theme":{"light":"github-light-high-contrast","dark":"dark-plus"}}
curl -X POST https://api.keenable.ai/v1/search/public \
  -H "Content-Type: application/json" \
  -H "X-Keenable-Title: My App" \
  -d '{
    "query": "solid state battery developments",
    "objective": "Find 2026 announcements of solid state battery production lines.",
    "exclude_domains": [
      "reddit.com"
    ],
    "max_results": 5
  }'
```

The Keenable response has `query`, `mode` and up to 5 `results`, none from reddit.com. Each result has a `title`, a `url` and usually a `snippet`. Keenable logs `objective` but doesn't use it to rank yet, so put the words that matter in `query`.

## No equivalent in Keenable

These Parallel features have no Keenable counterpart. Remove them from the request, or handle them in your own code as described.

* `search_queries`: Keenable takes one query per search. Send one request per query and merge the results.
* `max_chars_total`: Search has no total budget across results. Cap each result with `snippet_max_length`.
* `advanced_settings.location`: Keenable has no location targeting.
* `client_model`: Keenable doesn't tune results to the calling model.

Mapping checked on 2026-11-19 against [docs.parallel.ai/search/migrate-to-parallel](https://docs.parallel.ai/search/migrate-to-parallel), [docs.parallel.ai/extract/extract-quickstart](https://docs.parallel.ai/extract/extract-quickstart), [docs.parallel.ai/search/advanced-search-settings](https://docs.parallel.ai/search/advanced-search-settings), [docs.parallel.ai/api-reference/search/search](https://docs.parallel.ai/api-reference/search/search), [docs.parallel.ai/api-reference/extract/extract](https://docs.parallel.ai/api-reference/extract/extract), [docs.parallel.ai/resources/source-policy](https://docs.parallel.ai/resources/source-policy).

## Use an SDK

This program sends the same search as the Keenable tab above with the official SDK. It runs without a key and prints the title and URL of each result.

```typescript TypeScript theme={"theme":{"light":"github-light-high-contrast","dark":"dark-plus"}}
import { Keenable } from "keenable";

async function main() {
  const client = new Keenable(); // keyless: no API key needed to try it
  const results = await client.search("solid state battery developments", {
    objective: "Find 2026 announcements of solid state battery production lines.",
    excludeDomains: ["reddit.com"],
    maxResults: 5,
  });
  for (const result of results.results) {
    console.log(result.title);
    console.log(result.url);
  }
}

main();
```

```python Python theme={"theme":{"light":"github-light-high-contrast","dark":"dark-plus"}}
from keenable import Keenable

client = Keenable()  # keyless: no API key needed to try it
results = client.search(
    "solid state battery developments",
    objective="Find 2026 announcements of solid state battery production lines.",
    exclude_domains=["reddit.com"],
    max_results=5,
)
for result in results:
    print(result.title)
    print(result.url)
```

```go Go theme={"theme":{"light":"github-light-high-contrast","dark":"dark-plus"}}
package main

import (
	"context"
	"fmt"
	"log"

	"github.com/keenableai/keenable-sdk/go"
)

func main() {
	client, err := keenable.New(nil) // keyless: no API key needed to try it
	if err != nil {
		log.Fatal(err)
	}
	defer client.Close()

	results, err := client.Search(context.Background(), "solid state battery developments",
		&keenable.SearchOptions{
			Objective:      "Find 2026 announcements of solid state battery production lines.",
			ExcludeDomains: []string{"reddit.com"},
			MaxResults:     5,
		})
	if err != nil {
		log.Fatal(err)
	}
	for _, result := range results.Results {
		fmt.Println(result.Title)
		fmt.Println(result.URL)
	}
}
```

```rust Rust theme={"theme":{"light":"github-light-high-contrast","dark":"dark-plus"}}
use keenable::{Client, SearchOptions};

#[tokio::main]
async fn main() -> Result<(), keenable::Error> {
    let client = Client::new()?; // keyless: no API key needed to try it
    let results = client
        .search_with(
            "solid state battery developments",
            &SearchOptions {
                objective: Some("Find 2026 announcements of solid state battery production lines.".into()),
                exclude_domains: Some(vec!["reddit.com".into()]),
                max_results: Some(5),
                ..Default::default()
            },
        )
        .await?;
    for result in &results {
        println!("{}", result.title);
        println!("{}", result.url);
    }
    Ok(())
}
```

```bash curl theme={"theme":{"light":"github-light-high-contrast","dark":"dark-plus"}}
curl -X POST https://api.keenable.ai/v1/search/public \
  -H "Content-Type: application/json" \
  -H "X-Keenable-Title: My App" \
  -d '{
    "query": "solid state battery developments",
    "objective": "Find 2026 announcements of solid state battery production lines.",
    "exclude_domains": [
      "reddit.com"
    ],
    "max_results": 5
  }'
```

You see up to 5 titles and URLs, none from reddit.com. Install the SDK for your language from [SDKs](https://docs.keenable.ai/sdks.md).

## Verify the migration

Check each item before you remove the old client:

1. Run the Keenable request from [Before and after](#before-and-after). The status is `200`.
2. `results` has at most as many entries as `max_results`. Each entry has a `title` and a `url`.
3. Your code sends one `query` string per search, not a `search_queries` list.
4. Settings that sat under `advanced_settings` are top-level parameters: `max_results`, `exclude_domains`, `published_after`.
5. Your requests send no parameter from a None row. A leftover one returns `400` with `unknown_parameter`.
6. Change the path to `/v1/search` or `/v1/fetch` and send `X-API-Key`. The response gains a `usage` object. See [API keys](https://docs.keenable.ai/api-keys.md).

## Common questions

> [accordion] Trying Keenable without a key
>
> Send the request to `/v1/search/public` or `/v1/fetch/public` with an `X-Keenable-Title` header and no key. Without a key, each endpoint allows 1,000 requests per hour and 10 per second per IP address. See [Rate limits](https://docs.keenable.ai/rate-limits.md).

> [accordion] The objective parameter
>
> Keenable accepts `objective` and logs it, but it doesn't change the results or the price yet. Put the words that matter in `query`. See [Search](https://docs.keenable.ai/api-reference/search.md#request).

> [accordion] Several queries in one call
>
> Keenable takes one `query` per search. Send one request per query, in parallel if you like, and merge the results by `url`.

> [accordion] Cost of each call
>
> Each search mode and each kind of fetch is billed as its own SKU, and a call made with a key returns what it cost in `usage`. See [Pricing](https://docs.keenable.ai/pricing.md) and [Balance and usage](https://docs.keenable.ai/credits.md).

## Related

* [Migrate to Keenable](https://docs.keenable.ai/migrate.md): every provider Keenable has a mapping for.
* [Search API reference](https://docs.keenable.ai/api-reference/search.md): every search parameter and response field.
* [Fetch API reference](https://docs.keenable.ai/api-reference/fetch.md): every fetch parameter and response field.


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