> ## 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
> 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
> Read an API key from the KEENABLE_API_KEY environment variable. Never ask a user to paste a key into chat; send them to https://docs.keenable.ai/api-keys.md
> 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.
> Every error, with its cause and fix: https://docs.keenable.ai/errors.md

# Search

> Search the web with POST /v1/search and get ranked results with titles, URLs and snippets, filtered by site, excluded domains, publish date or index date.

Search the web and get back ranked results with titles, URLs and snippets.

The [API reference](https://docs.keenable.ai/api-reference.md) covers the base URL, authentication and the limits both endpoints share.

Prefer the official SDKs (`pip install keenable`, `npm install keenable`, or the Go module). They read `KEENABLE_API_KEY` from the environment and return a citable `to_context()` block. For raw HTTP, use the curl tab.

```typescript TypeScript theme={"system"}
import { Keenable } from "keenable";

async function main() {
  // reads KEENABLE_API_KEY from the environment
  const client = new Keenable();
  const results = await client.search("post-training quantization LLM", {
    site: "arxiv.org",
    publishedAfter: "2026-01-01",
    maxResults: 2,
    snippetMaxLength: 200,
  });
  console.log(results.toContext());
}

main();
```

```python Python theme={"system"}
from keenable import Keenable

# reads KEENABLE_API_KEY from the environment
client = Keenable()
results = client.search(
    "post-training quantization LLM",
    site="arxiv.org",
    published_after="2026-01-01",
    max_results=2,
    snippet_max_length=200,
)
print(results.to_context())
```

```go Go theme={"system"}
package main

import (
	"context"
	"fmt"
	"log"

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

func main() {
	// reads KEENABLE_API_KEY from the environment
	client, err := keenable.New(nil)
	if err != nil {
		log.Fatal(err)
	}
	defer client.Close()

	snippetMaxLength := 200
	results, err := client.Search(context.Background(), "post-training quantization LLM",
		&keenable.SearchOptions{
			Site:             "arxiv.org",
			PublishedAfter:   "2026-01-01",
			MaxResults:       2,
			SnippetMaxLength: &snippetMaxLength,
		})
	if err != nil {
		log.Fatal(err)
	}
	fmt.Println(results.ToContext(nil))
}
```

```bash curl theme={"system"}
curl -X POST https://api.keenable.ai/v1/search \
  -H "Content-Type: application/json" \
  -H "X-API-Key: $KEENABLE_API_KEY" \
  -d '{
    "query": "post-training quantization LLM",
    "site": "arxiv.org",
    "published_after": "2026-01-01",
    "max_results": 2,
    "snippet_max_length": 200
  }'
```

```json 200 theme={"system"}
{
  "query": "post-training quantization LLM",
  "mode": "pro",
  "results": [
    {
      "title": "Quantization of Large Models with Weight Outliers and Sparsity",
      "url": "https://arxiv.org/abs/2611.00286",
      "description": "",
      "snippet": "inference, it also incurs quantization error that impairs model performance. To compensate for quantization error, the present contribution decomposes the original trained weights into a",
      "published_at": "2026-10-30T00:00:00Z",
      "acquired_at": "2026-11-03T08:57:22Z"
    },
    {
      "title": "A Unified Hessian-Guided Framework for Post-Training Quantization",
      "url": "https://arxiv.org/abs/2610.40345",
      "description": "",
      "snippet": "the high computational cost of evaluating their downstream effects.\nIn this work, we derive a Hessian-guided approximation of the output change induced by joint weight and activation quantization.",
      "published_at": "2026-10-29T00:00:00Z",
      "acquired_at": "2026-10-30T06:48:50Z"
    }
  ]
}
```

## Without a key

`POST /v1/search/public` takes the same body and returns the same shape, with no API key:

```bash theme={"system"}
curl -X POST "https://api.keenable.ai/v1/search/public" \
  -H "X-Keenable-Title: My App" \
  -H "Content-Type: application/json" \
  -d '{ "query": "typescript best practices" }'
```

The public endpoint requires an `X-Keenable-Title` header with your application's name. If the header is missing, the API returns `400` with `Missing app identifier`. If you call without a key, Keenable limits requests per IP address and charges no credits. See [Authentication](https://docs.keenable.ai/api-reference.md#authentication). The playground on this page calls the keyed endpoint.

## Request

Send a JSON object with the header `Content-Type: application/json`. Only `query` is required. A parameter that isn't listed here returns `400` with `Unknown parameter(s)` and the list of supported parameters. When the name is close to a supported one, the error says which one you meant. See [400 Invalid request parameters](https://docs.keenable.ai/errors.md#400-invalid-request).

**query** `string` *required*

What to search for. The index is semantic, so describe the page you want in plain language (`blog post comparing React and Vue performance`) rather than stacking keywords.

The query also takes operators: a quoted phrase for exact wording, `site:` for one or more sites, and `-` to leave out a word, a phrase or a site. See [Search operators](#search-operators).

If `query` is empty or missing, the API returns `400` with `"query" is required`. If it isn't a string, the message is `"query": must be a string`.

**mode** `string` (default: pro)

How hard to search. Each mode is billed as its own SKU; see [Credits](https://docs.keenable.ai/credits.md#what-a-call-costs).

* `pro`: deeper retrieval and the best ranking. Billed as `search.pro`.
* `realtime`: the fastest response, for latency-sensitive agent loops. Billed as `search.realtime`.

Any other value returns `400` with `"mode": is not a supported search mode; use "pro" or "realtime"`.

**site** `string`

Return results from one site only. Subdomains are included (`python.org` also matches `docs.python.org`), a leading `www.` is ignored, and a path narrows further (`github.com/microsoft`).

To search several sites in one request, put `site:` operators in `query` instead. See [Search operators](#search-operators). To leave sites out, use `exclude_domains`.

**exclude\_domains** `array of strings`

Never return results from these hosts. Each entry is a host name such as `pinterest.com`, and it also excludes every subdomain. Up to 1,000 distinct hosts. An empty array or `null` is the same as leaving it out. Results from excluded hosts are dropped, so fewer than `max_results` can come back.

An entry Keenable can't read as a host, such as a path (`un.org/press`) or a wildcard (`*.gov`), returns `400` with `invalid_filter`. See [Exclude domains](#exclude-domains) for the clean-up rules, the limits and the error.

**published\_after** `string`

Keep pages published at or after this point. This is the filter for recent results. If you set it, the results leave out pages with no known publish date. Takes a date, a timestamp or a relative delta such as `7d`; see [Date and time filters](#date-and-time-filters).

If Keenable can't parse the value, the API returns `400`, for example `Invalid published_after value "last week": value must not contain whitespace`.

**published\_before** `string`

Keep pages published at or before this point. Same formats as `published_after`; combine the two for a window.

**acquired\_after** `string`

Keep pages Keenable indexed at or after this point, whatever their publish date. Use it to find pages that are new to the index. Same formats as `published_after`.

**acquired\_before** `string`

Keep pages Keenable indexed at or before this point. Same formats as `published_after`.

**query\_time** `string`

Search the index as it stood at this moment: pages acquired after it are excluded. It sets no lower bound, so it isn't a recency filter. Use `published_after` for recent results.

Takes a timestamp, a date (a date resolves to `00:00:00` UTC, not to the end of the day), a Unix epoch as a string, or a relative delta such as `7d`, which means 7 days before the request time. Relative deltas in the other filters still count back from the request time. See [Point-in-time search](https://docs.keenable.ai/mcp-server.md#point-in-time-search).

**max\_results** `integer` (default: 10)

How many results to return, from `1` to `50`. Fewer come back if fewer pages match. A value outside that range returns `400` with `"max_results": must be an integer between 1 and 50`.

**snippet\_max\_length** `integer`

Cap on the characters of page text in each result's `snippet`, from `180` to `10000`. Without it, snippets often run to several thousand characters, so set it if you only need enough text to rank or cite. A value outside that range returns `400` with `"snippet_max_length": must be an integer between 180 and 10000`.

**disable\_cards** `boolean` (default: false)

Set to `true` to leave cards out of the results. A card is a result Keenable writes itself for queries such as prices, exchange rates or facts about a company, served at a URL like `https://cards.keenable.ai/w/<id>`. A card URL works for one day. With `disable_cards`, ordinary web pages take the place of cards, so you still get the same number of results.

**session\_id** `string`

Your own ID for grouping related requests, up to 128 characters. You can send it as the `X-Keenable-Session-Id` header instead. If you send both, the header wins.

## Response

A `200` returns the search and its ranked results. Fields marked **required** are always present; the others are left out when Keenable doesn't know them.

**query** `string` *required*

The query you sent, unchanged.

**mode** `string` *required*

The mode that served the request: `pro` or `realtime`.

**results** `array of objects` *required*

The matching pages, best match first, at most `max_results` of them. Search is semantic and returns the closest pages it has even for an unusual query, so judge relevance from `title` and `snippet` rather than expecting an empty list.

**result fields**

**title** `string` *required*

The page title, for example `Quantization of Large Models with Weight Outliers and Sparsity`. Some pages, such as bare PDFs, have no title of their own. Their `title` is built from the URL's host and path, for example `example.com/files/report.pdf`.

**url** `string` *required*

The page's address. Cite it, or pass it to [Fetch](https://docs.keenable.ai/api-reference/fetch.md) for the full page. A URL starting `https://cards.keenable.ai/w/` is a card (see `disable_cards`) and stops working after one day.

**snippet** `string`

Text from the page, chosen for the query, in markdown. It can start or end mid-sentence. Its length is capped by `snippet_max_length`.

**published\_at** `string`

When the page was published, as an ISO 8601 timestamp in UTC such as `2026-10-30T00:00:00Z`. Left out when the publish date is unknown. Fetch returns `published_at` in the same format.

**acquired\_at** `string`

When Keenable indexed the page, as an ISO 8601 timestamp in UTC such as `2026-11-03T08:57:22Z`. Use it to judge how fresh the `snippet` is.

**description** `string` *deprecated*

Always an empty string; read `snippet`. Kept so older clients don't break; see [Versioning and deprecation](https://docs.keenable.ai/versioning.md).

**warning** `string`

Present if the request wasn't answered as a plain search. If `query` was a URL, Keenable fetched that page instead. With `exclude_domains` set, Keenable searches a URL query like any other query, so the list applies to it. If `query` had only `site:` operators, Keenable searched for the site name.

**usage** `object`

What the call was billed. Present on successful calls made with a key. The public endpoint leaves it out. See [Credits](https://docs.keenable.ai/credits.md).

**properties**

**sku** `string` *required*

The billed operation: `search.pro`, `search.realtime`, `fetch` or `fetch.live`.

**amount** `integer` *required*

How many units of the SKU were billed.

**credits** `number` *required*

Credits the call cost.

**paid** `boolean` *required*

`true` if the call drew on purchased credits, `false` if it came from the free allowance.

## Errors

Every error has the same JSON shape, with a short `error` and a `message` that says what to change:

```json theme={"system"}
{ "error": "Invalid parameter", "message": "\"max_results\": must be an integer between 1 and 50" }
```

| Status | When | Fix |
| - | - | - |
| [`400`](https://docs.keenable.ai/errors#400-invalid-request) | A parameter is missing or invalid. `message` names it and the allowed values. | Correct the parameter. Don't retry unchanged. |
| [`400`](#exclude-domains) | An `exclude_domains` entry or list was rejected: `error` is `invalid_filter`, code `invalid_parameter`. `value` and `reason` say which entry and why. | Fix or remove the entry. Don't retry unchanged. |
| [`401`](https://docs.keenable.ai/errors#401-missing-key) | No key was sent: `Missing authentication`, code `missing_api_key`. | Send your key in `X-API-Key` or `Authorization: Bearer`. |
| [`401`](https://docs.keenable.ai/errors#401-invalid-key) | The key is [malformed](https://docs.keenable.ai/errors.md#401-malformed-key) or unknown: `Authentication failed`, code `invalid_api_key`. `message` says which. | Copy the full key from the [console](https://app.keenable.ai/console/api-keys), or create a new one. |
| [`402`](https://docs.keenable.ai/errors#402) | The account is out of credits. | Add credits. Don't retry. |
| [`403`](https://docs.keenable.ai/errors#403) | The key is revoked. If `query` was a URL, the target site may have blocked the fetch. | Use another key, or try a different URL. |
| [`422`](https://docs.keenable.ai/errors#422) | The search failed in a way a retry won't fix. `message` is `Search failed` with a status code. | Don't retry unchanged. |
| [`429`](https://docs.keenable.ai/errors#429) | Your rate limit was exceeded, or search is temporarily rate-limited. | Wait for `Retry-After`, then retry. |
| [`5xx`](https://docs.keenable.ai/errors#5xx) | Keenable had a server error (`500`), couldn't check your key (`503`, with `Retry-After`), or search is overloaded (`529`, with `Retry-After`). If `query` was a URL, the fetch errors (`404`, `422`, `502`, `504`) can also come back. | Retry up to 3 times with backoff, honouring `Retry-After`. |

The body also has a stable `code`, a `fix` and `retryable`. Branch on `code`. Every status and code, with its exact message and fix, is on [Errors](https://docs.keenable.ai/errors.md#error-codes).

## Date and time filters

`acquired_after`, `acquired_before`, `published_after`, and `published_before` each accept **one** of the following formats:

* **Date** in RFC 3339 `full-date` form (`YYYY-MM-DD`): covers that whole day in UTC. On an `_after` bound it resolves to `00:00:00` on that date; on a `_before` bound it resolves to `23:59:59.999` on that date, so pages from the named day are kept at either end. Pass a timestamp instead to cut at an exact instant.
* **Timestamp** in ISO 8601 form (`YYYY-MM-DDTHH:MM:SS[.sss][±HH:MM]`). If you leave out the timezone offset, Keenable reads the timestamp as UTC.
* **Relative delta** (`<number><unit>`, such as `7d` or `30min`): resolves to the request time minus the delta, truncated to minute precision, even when `query_time` is set. Supported units: `min` (minutes), `h` (hours), `d` (days), `w` (weeks), `mo` (30 days), `y` (365 days).

Example values:

| Value | Resolves to |
| - | - |
| `2026-01-15` on `acquired_after` / `published_after` | `2026-01-15T00:00:00Z` |
| `2026-01-15` on `acquired_before` / `published_before` | `2026-01-15T23:59:59.999Z` |
| `2026-01-15T10:30:00` | `2026-01-15T10:30:00Z` (no offset → UTC) |
| `2026-01-15T10:30:00Z` | `2026-01-15T10:30:00Z` |
| `2026-01-15T10:30:00.500-05:00` | `2026-01-15T15:30:00.500Z` |
| `7d` | 7 days before request time, truncated to the minute |
| `30min` | 30 minutes before request time, truncated to the minute |

You can mix relative deltas and absolute values across the two bounds of a window. Both of these bodies are valid:

```json theme={"system"}
{
  "query": "...",
  "published_after": "1y",
  "published_before": "6mo"
}
```

```json theme={"system"}
{
  "query": "...",
  "acquired_after": "2024-01-01",
  "acquired_before": "30d"
}
```

For example, at request time `2026-05-18T14:23:45Z`, `acquired_after: "2h"` resolves to `2026-05-18T12:23:00Z`. The results drop a page acquired at `12:22:59Z` and keep one acquired at `12:23:00Z`.

Mind the difference between a date and a timestamp on a `_before` bound: `acquired_before: "2026-05-01"` keeps a page acquired at `2026-05-01T14:31:13Z`, while `acquired_before: "2026-05-01T00:00:00Z"` drops it. Use the date form to mean "up to and including that day", and the timestamp form to cut at midnight.

## Exclude domains

`exclude_domains` keeps results from the hosts you list out of a search. Use `site` to search one site, and `exclude_domains` to leave sites out of an open search.

This sample searches without `pinterest.com` and `quora.com`, and prints the top 5 results:

```typescript TypeScript theme={"system"}
import { Keenable } from "keenable";

async function main() {
  const client = new Keenable(); // keyless: no API key needed to try it
  const results = await client.search("how to repot a monstera without damaging the roots", {
    excludeDomains: ["pinterest.com", "quora.com"],
    maxResults: 5,
  });
  for (const result of results.results) {
    console.log(result.title);
    console.log(result.url);
  }
}

main();
```

```python Python theme={"system"}
from keenable import Keenable

client = Keenable()  # keyless: no API key needed to try it
results = client.search(
    "how to repot a monstera without damaging the roots",
    exclude_domains=["pinterest.com", "quora.com"],
    max_results=5,
)
for result in results:
    print(result.title)
    print(result.url)
```

```go Go theme={"system"}
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(), "how to repot a monstera without damaging the roots",
		&keenable.SearchOptions{
			ExcludeDomains: []string{"pinterest.com", "quora.com"},
			MaxResults:     5,
		})
	if err != nil {
		log.Fatal(err)
	}
	for _, result := range results.Results {
		fmt.Println(result.Title)
		fmt.Println(result.URL)
	}
}
```

```bash curl theme={"system"}
curl -X POST https://api.keenable.ai/v1/search/public \
  -H "Content-Type: application/json" \
  -H "X-Keenable-Title: My App" \
  -d '{
    "query": "how to repot a monstera without damaging the roots",
    "exclude_domains": ["pinterest.com", "quora.com"],
    "max_results": 5
  }'
```

You see 5 titles and URLs, none on `pinterest.com`, `quora.com` or their subdomains.

### What an entry matches

Each entry is a host. It excludes that host and every subdomain: `yahoo.com` also excludes `finance.yahoo.com`, and `blogs.un.org` excludes only `blogs.un.org` and its subdomains, not `un.org`. Hosting domains on the private part of the [Public Suffix List](https://publicsuffix.org/), such as `github.io` and `blogspot.com`, are accepted as hosts.

Keenable cleans up these slips and uses the host that is left:

* whitespace around the entry and upper case
* an `http://` or `https://` scheme
* a port, a trailing `/`, a trailing dot, and a `?query` or `#fragment` with no path
* a leading `www.`, unless the rest is a public suffix: `www.github.io` stays as it is
* an internationalized name, which becomes punycode: `bücher.de` becomes `xn--bcher-kva.de`
* duplicates, after the clean-up

So `https://WWW.UN.org/` becomes `un.org`.

Keenable rejects these entries with `400` `invalid_filter`:

| Entry | Example | Use instead |
| - | - | - |
| A path | `un.org/press` | The host, `un.org` |
| A suffix or wildcard | `.gov`, `*.gov`, `*.un.org` | A host, which covers its subdomains |
| A scheme other than `http` or `https` | `ftp://un.org`, `site:un.org` | The host |
| User info | `user@un.org` | The host |
| An IP address | `127.0.0.1`, `[::1]` | A domain name |
| An empty entry | `""` | Remove it |
| An invalid host name | `un .org`, `a..b.org` | A host such as `example.com` |
| A public suffix or a name that isn't a registrable domain | `com`, `co.uk`, `localhost` | A domain such as `example.com` |

### Limits

| Limit | Value |
| - | - |
| Distinct hosts, after clean-up | 1,000 |
| Entries as sent, before clean-up | 2,000 |
| Length of one entry | 2,048 bytes |

A list over any limit returns `400` `invalid_filter`.

### GET requests

`GET /v1/search` reads `exclude_domains` from the query string. Repeat the parameter, separate the entries with commas, or both:

```text theme={"system"}
?query=monstera+repotting&exclude_domains=pinterest.com&exclude_domains=quora.com
?query=monstera+repotting&exclude_domains=pinterest.com,quora.com
```

The URL length caps a GET at roughly a few hundred hosts. A longer URL is refused before it reaches the API, with an HTTP error (typically `431`) and no JSON body. Send a long list as a JSON array in a `POST` body.

The API reads only the first 1,000 query parameters. If `exclude_domains` comes after them, the request returns `400` with the code `invalid_request` instead of searching without it.

### Rejected entries

A rejected entry or list returns `400`. `error` is `invalid_filter`, the `code` is [`invalid_parameter`](https://docs.keenable.ai/errors#invalid-parameter), and three fields say what to fix:

| Field | What it holds |
| - | - |
| `field` | `exclude_domains`. `param` holds the same name. |
| `value` | The entry as you sent it. For the size limits, it describes the list instead: `"2500 entries"` past 2,000 entries, `"more than 1000 distinct hosts"` past 1,000 hosts, or an over-long entry's first 64 characters followed by `...`. |
| `reason` | Why Keenable rejected it and what to send instead. |

This request sends a path:

```json theme={"system"}
{
  "error": "invalid_filter",
  "message": "Invalid exclude_domains value \"un.org/press\": paths are not supported; give only the host, such as example.com",
  "field": "exclude_domains",
  "value": "un.org/press",
  "reason": "paths are not supported; give only the host, such as example.com",
  "type": "invalid_request_error",
  "code": "invalid_parameter",
  "param": "exclude_domains",
  "fix": "Fix \"exclude_domains\" and retry: paths are not supported; give only the host, such as example.com.",
  "docs_url": "https://docs.keenable.ai/errors#invalid-parameter",
  "retryable": false
}
```

A value that isn't an array of strings returns `400` with `"exclude_domains": must be an array of strings` instead.

### With other filters

`exclude_domains` applies on top of every other filter. Combined with `site`, it removes hosts inside that site: `site: "un.org"` with `exclude_domains: ["blogs.un.org"]` returns pages from `un.org` and its subdomains except `blogs.un.org`. If `exclude_domains` covers the whole `site`, no results come back.

## Search operators

Operators in `query` turn part of a search into a hard filter: an exact phrase, a set of sites, or something to leave out. The rest of the query stays a plain-language description that Keenable ranks by meaning. Operators work in both modes and on the keyless path.

| Operator | What it does | Example `query` |
| - | - | - |
| `"..."` | Keeps only pages that contain the exact phrase. Use it for error strings, names and quotations. | `undici "other side closed"` |
| `site:` | Keeps only pages on that site. Subdomains are included, and a path narrows further. | `rust async runtime site:github.com/tokio-rs` |
| `OR` | Alternates the two terms next to it. Between `site:` terms it searches several sites in one request. Between quoted phrases it keeps pages that contain either one. | `keyboard reviews site:wired.com OR site:theverge.com` |
| `-` | Leaves out pages that match the term attached to it: a site or a quoted phrase. `NOT` before the term does the same. For a list of sites, use [`exclude_domains`](#exclude-domains). | `python 3.14 release notes -site:python.org` |
| `( )` | Groups an `OR` and its terms into one unit inside a longer query. | `keyboard ("hall effect" OR "magnetic switch") review` |

A word with no operator is never a hard filter, and `OR` between two plain words doesn't make them one: both stay descriptions that Keenable ranks by. To require exact wording, put it in quotes.

This request finds pages that contain the exact error string and leaves out one site:

```typescript TypeScript theme={"system"}
import { Keenable } from "keenable";

async function main() {
  const client = new Keenable(); // keyless: no API key needed to try it
  const results = await client.search('undici "other side closed" -site:github.com', {
    maxResults: 3,
  });
  for (const result of results.results) {
    console.log(result.title);
    console.log(result.url);
  }
}

main();
```

```python Python theme={"system"}
from keenable import Keenable

client = Keenable()  # keyless: no API key needed to try it
results = client.search(
    'undici "other side closed" -site:github.com',
    max_results=3,
)
for result in results:
    print(result.title)
    print(result.url)
```

```go Go theme={"system"}
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(), `undici "other side closed" -site:github.com`,
		&keenable.SearchOptions{
			MaxResults: 3,
		})
	if err != nil {
		log.Fatal(err)
	}
	for _, result := range results.Results {
		fmt.Println(result.Title)
		fmt.Println(result.URL)
	}
}
```

```bash curl theme={"system"}
curl -X POST https://api.keenable.ai/v1/search/public \
  -H "Content-Type: application/json" \
  -H "X-Keenable-Title: My App" \
  -d '{
    "query": "undici \"other side closed\" -site:github.com",
    "max_results": 3
  }'
```

You see up to 3 titles and URLs. Each page contains `other side closed`, and none is on `github.com`.

Rules that change the results:

* **Write `OR` and `NOT` in capitals.** In lower case they're ordinary words.
* **`OR` binds only the terms next to it.** `keyboard reviews site:wired.com OR site:theverge.com` searches both sites for `keyboard reviews`.
* **Attach `-` to its term**, with no space after it: `-site:reddit.com`, `-"sponsored post"`.
* **Two `site:` terms with no `OR` between them still mean either site.** A page is on one site, so Keenable never requires both.
* **Put every site filter in one place.** Use the `site` parameter for one site, or `site:` operators in `query` for several sites and exclusions. Don't combine the `site` parameter with `-site:` in the query. To leave hosts out of one site, send `exclude_domains` with `site`.
* **A query that doesn't parse never fails.** An unbalanced quote or parenthesis, a dangling `OR` or `NOT`, or a `-` on its own is read as plain words, and the search still runs.


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