# Small web

Personal sites, blogs and small independent publishers.

```text
"sources": ["smallweb"]
```

The `smallweb` source is personal sites, blogs and small independent publishers: pages written by one person or a small group, most of them outside the 1,000,000 most popular sites. It is the long tail as a source of its own, with no popularity cut to set.

## Good for

- First-hand experience: build logs, field notes, long write-ups by the person who did the thing.
- Opinions and reviews that are not written to sell.
- Finding independent writers on a subject, to follow or to cite.

## Not the place for

- Reference facts and official documentation. Use `web`, with `page_types` if needed.
- Recency. Some results carry a date, many do not.

## What a result carries

Every result has the same fields whatever the source; the [Search reference](https://millionshort.com/docs/search/parameters#a-result) lists them. What differs is which of them are filled in:

| Field | In this source |
|---|---|
| `published_date` | Set on some results, `null` on many. |
| `page_type`, `topic` | Set. `page_type` is mostly `blogs`. |
| `popularity` | Mostly the `long-tail` bucket, with `rank: null`; some sites have a rank. |
| `signals` (with `explain`) | `text_rank`, `link_authority` and `words` are set. |
| `extra` | Usually empty. |

The `extra` keys are what this source returns today. Treat every one of them as optional: read it if it is there.

## Example queries

- `building a mechanical keyboard`
- `home server setup`
- `notes on learning to draw`

Ten results from small sites, with the reasons for each:

```bash
curl https://api.millionshort.com/v1/search \
  -H "Authorization: Bearer $MILLIONSHORT_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "query": "building a mechanical keyboard",
    "sources": ["smallweb"],
    "num_results": 10,
    "explain": true
  }'
```

```python
import os

from millionshort import MillionShort

client = MillionShort(api_key=os.environ["MILLIONSHORT_API_KEY"])

r = client.search(
    "building a mechanical keyboard",
    sources=["smallweb"],
    num_results=10,
    explain=True,
)
for hit in r.results:
    print(hit["site"], hit["title"], hit["why"])
print(r.usage.credits, "credit(s)")
```

```ts
import { MillionShort } from 'millionshort';

const client = new MillionShort({ apiKey: process.env.MILLIONSHORT_API_KEY });

const r = await client.search('building a mechanical keyboard', {
  sources: ['smallweb'],
  numResults: 10,
  explain: true,
});
for (const hit of r.results) {
  console.log(hit.site, hit.title, hit.why);
}
console.log(r.usage?.credits, 'credit(s)');
```

The same call as a tool of the MCP server:

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "search",
    "arguments": {
      "query": "building a mechanical keyboard",
      "sources": [
        "smallweb"
      ],
      "num_results": 10,
      "explain": true
    }
  }
}
```

## Combine it with

`web` with `remove_top_sites` for a wider long tail, `discussions` for the conversation around a subject. One call can ask up to five sources and returns one merged list; each result says which source it came from in `source`. See [Mixture of Experts](https://millionshort.com/docs/search/mixture-of-experts).

## Cost and limits

A search of this source costs 1 credit, like every source, and covers the first 10 results of the call. It is one of the **heavy** sources: each plan has a lower per-minute limit for searches that include it. [Credits and limits](https://millionshort.com/docs/credits-and-limits) has the numbers.

With [Monitor](https://millionshort.com/docs/monitor/parameters), query monitors are not offered on this source; watch a page with a URL monitor instead.
