# Site signals: popular where, traffic trends, site tech

Three more facts about the site behind a result, and a filter for each. Where its audience is, whether it is rising or falling, and what it is built with.

Every result says how popular its site is and whether it carries a risk label: see [Popularity and risk](https://millionshort.com/docs/search/popularity-and-risk). Three more fields complete the picture of the site, and each one is also a filter of [`POST /v1/search`](https://millionshort.com/docs/search/parameters). All of them are free.

| Result field | Request filter | What it says |
|---|---|---|
| `popular_in` | `popular_in` | The countries where the site is among the popular sites |
| `traffic_trend` | `traffic_trend` | Which way visits to the site are moving |
| `site_tech` | `site_tech` | What the site is built with |
| `popularity` | `popularity_buckets`, `remove_top_sites`, `only_top_sites` | How popular the site is overall |
| `risk` | `exclude_risky` | Whether the site carries a risk label |

```json
{
  "title": "Heat pump grants: what you can claim",
  "url": "https://example.co.uk/heat-pump-grants",
  "site": "example.co.uk",
  "popularity": { "rank": 48211, "bucket": "top-100k" },
  "risk": null,
  "traffic_trend": "rising",
  "popular_in": ["GB", "IE"],
  "site_tech": ["WordPress"]
}
```

The result is cut to the fields this page is about. Each of the three is `null` when we do not know it.

## Popular where

A site's worldwide rank hides where its audience is. A regional newspaper, a national retailer or a site in one language can be large in one country and unknown elsewhere.

`popular_in` on a result lists up to 12 two-letter country codes: the countries where the site is among the popular sites. As a filter, `popular_in` takes up to 10 codes and keeps the results whose site is popular in at least one of them.

```bash
curl https://api.millionshort.com/v1/search \
  -H "Authorization: Bearer $MILLIONSHORT_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{ "query": "heat pump grant", "popular_in": ["GB", "IE"] }'
```

```python
import os

import requests

r = requests.post(
    "https://api.millionshort.com/v1/search",
    headers={"Authorization": "Bearer " + os.environ["MILLIONSHORT_API_KEY"]},
    json={
        "query": "heat pump grant",
        "popular_in": [
            "GB",
            "IE"
        ]
    },
    timeout=30,
)
r.raise_for_status()
for hit in r.json()["data"]["results"]:
    print(hit["position"], hit["title"], hit["url"])
```

```ts
const res = await fetch('https://api.millionshort.com/v1/search', {
  method: 'POST',
  headers: {
    Authorization: `Bearer ${process.env.MILLIONSHORT_API_KEY}`,
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({
    "query": "heat pump grant",
    "popular_in": [
      "GB",
      "IE"
    ]
  }),
});
if (!res.ok) throw new Error(`POST /v1/search failed: ${res.status}`);
const { data } = (await res.json()) as {
  data: { results: { position: number; title: string; url: string }[] };
};
for (const hit of data.results) console.log(hit.position, hit.title, hit.url);
```

The same call as a tool of the MCP server:

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "search",
    "arguments": {
      "query": "heat pump grant",
      "popular_in": [
        "GB",
        "IE"
      ]
    }
  }
}
```

What an agent can do with it:

- Prefer sources that are well known in the user's own country.
- Find sites that are strong in one country and small worldwide, the local long tail: `popular_in` with `remove_top_sites`.
- Explain a source: "a major site in Portugal, little known elsewhere".

`popular_in` is about the site's audience. It is not the same as `country`, which keeps sites by their country domain ending, such as `.de`.

## Traffic trends

Popularity says where a site stands. A trend says which way it is moving.

`traffic_trend` on a result is one of `rising`, `spiking`, `steady`, `falling`, `dropped`, `new`, or `null`:

| Value | Meaning |
|---|---|
| `rising` | Visits are growing |
| `spiking` | Visits jumped sharply in the last days |
| `steady` | No clear change |
| `falling` | Visits are shrinking |
| `dropped` | Visits fell sharply in the last days |
| `new` | The site appeared recently |

As a filter, `traffic_trend` takes a list of those values and keeps the results whose site is moving that way.

```bash
curl https://api.millionshort.com/v1/search \
  -H "Authorization: Bearer $MILLIONSHORT_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{ "query": "best running shoes", "traffic_trend": ["rising", "spiking", "new"], "num_results": 20 }'
```

```python
import os

import requests

r = requests.post(
    "https://api.millionshort.com/v1/search",
    headers={"Authorization": "Bearer " + os.environ["MILLIONSHORT_API_KEY"]},
    json={
        "query": "best running shoes",
        "traffic_trend": [
            "rising",
            "spiking",
            "new"
        ],
        "num_results": 20
    },
    timeout=30,
)
r.raise_for_status()
for hit in r.json()["data"]["results"]:
    print(hit["position"], hit["title"], hit["url"])
```

```ts
const res = await fetch('https://api.millionshort.com/v1/search', {
  method: 'POST',
  headers: {
    Authorization: `Bearer ${process.env.MILLIONSHORT_API_KEY}`,
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({
    "query": "best running shoes",
    "traffic_trend": [
      "rising",
      "spiking",
      "new"
    ],
    "num_results": 20
  }),
});
if (!res.ok) throw new Error(`POST /v1/search failed: ${res.status}`);
const { data } = (await res.json()) as {
  data: { results: { position: number; title: string; url: string }[] };
};
for (const hit of data.results) console.log(hit.position, hit.title, hit.url);
```

The same call as a tool of the MCP server:

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "search",
    "arguments": {
      "query": "best running shoes",
      "traffic_trend": [
        "rising",
        "spiking",
        "new"
      ],
      "num_results": 20
    }
  }
}
```

What to expect: most sites are steady, and many small sites have no trend at all. The filter is checked on the best matches for your query, not on the whole index, so a filter for `rising` keeps few results and often none. Use it with a broad query, ask for 20 or more results, and expect a short or empty list with a `short_results` warning. To see the trend without filtering, read `traffic_trend` on each result.

What an agent can do with it:

- Find rising sites in a field: search it broadly and keep the results whose site is rising. Add [`remove_top_sites`](https://millionshort.com/docs/search/remove-top-sites) only when the list is long enough to cut.
- Notice a falling site before relying on it.
- Tell new and growing from old and fading, which rank alone cannot do.

## Site tech

`site_tech` on a result lists what the site is built with, up to 8 names: the platform it runs on and the main tools it uses, for example `["WordPress", "WooCommerce"]`. An empty list means we looked and recognised nothing. `null` means we have not looked at that site.

As a filter, `site_tech` takes up to 10 names and keeps the results whose site is built with at least one of them. Names are matched without regard to case, so send them as the results show them or in lower case.

```bash
curl https://api.millionshort.com/v1/search \
  -H "Authorization: Bearer $MILLIONSHORT_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{ "query": "handmade ceramic mugs", "site_tech": ["woocommerce"], "page_types": ["products"] }'
```

```python
import os

import requests

r = requests.post(
    "https://api.millionshort.com/v1/search",
    headers={"Authorization": "Bearer " + os.environ["MILLIONSHORT_API_KEY"]},
    json={
        "query": "handmade ceramic mugs",
        "site_tech": [
            "woocommerce"
        ],
        "page_types": [
            "products"
        ]
    },
    timeout=30,
)
r.raise_for_status()
for hit in r.json()["data"]["results"]:
    print(hit["position"], hit["title"], hit["url"])
```

```ts
const res = await fetch('https://api.millionshort.com/v1/search', {
  method: 'POST',
  headers: {
    Authorization: `Bearer ${process.env.MILLIONSHORT_API_KEY}`,
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({
    "query": "handmade ceramic mugs",
    "site_tech": [
      "woocommerce"
    ],
    "page_types": [
      "products"
    ]
  }),
});
if (!res.ok) throw new Error(`POST /v1/search failed: ${res.status}`);
const { data } = (await res.json()) as {
  data: { results: { position: number; title: string; url: string }[] };
};
for (const hit of data.results) console.log(hit.position, hit.title, hit.url);
```

The same call as a tool of the MCP server:

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "search",
    "arguments": {
      "query": "handmade ceramic mugs",
      "site_tech": [
        "woocommerce"
      ],
      "page_types": [
        "products"
      ]
    }
  }
}
```

What an agent can do with it:

- Find sites of a kind: shops on a given shop platform, sites on a given publishing system.
- Qualify leads and research markets by technology.
- Read a source: a result from a site built with a wiki system is a different kind of source from a shop.

## Popularity buckets

`popularity_buckets` keeps the results whose site is in one of the buckets you name: `top-100`, `top-1k`, `top-10k`, `top-100k`, `top-1m`, `long-tail`. It is the same scale as `popularity.bucket` on every result. Use it when you want a band that `remove_top_sites` and `only_top_sites` cannot describe, such as "between the top 10,000 and the top 1,000,000".

```json
{ "query": "restoring a cast iron skillet", "popularity_buckets": ["top-100k", "top-1m"] }
```

## Exclude risky sites

`exclude_risky: true` drops every result whose site carries a risk label, so that `risk` is `null` on all that remain. Without it, results from labelled sites come back with their label and your agent decides.

```json
{ "query": "free vpn comparison", "popularity_buckets": ["long-tail", "top-1m"], "exclude_risky": true }
```

## Things to know

- **These are facts about the site, not the page.** A good site can host a wrong page.
- **They apply to every source.** A result with no site of its own, such as a post on a platform, has no site facts and does not pass a site filter.
- **The filters are checked on the best matches for the query.** `summary.removed.filters` says how many results they took out. A narrow query with a rare filter can come back short.
- **`null` is "not known", not "no".** A site with `traffic_trend: null` is not steady; we have no trend for it.
- We do not say where a signal comes from, and the response never does either.

## Over MCP and in the SDKs

The `search` tool of the [MCP server](https://millionshort.com/docs/mcp) takes the same fields under the same names. In the SDKs they are arguments of `search`: `popular_in`, `traffic_trend`, `site_tech`, `popularity_buckets` and `exclude_risky` in Python; `popularIn`, `trafficTrend`, `siteTech`, `popularityBuckets` and `excludeRisky` in TypeScript.

```bash
curl https://api.millionshort.com/v1/search \
  -H "Authorization: Bearer $MILLIONSHORT_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{ "query": "best running shoes", "traffic_trend": ["rising", "spiking", "new"], "num_results": 20 }'
```

```python
import os

from millionshort import MillionShort

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

r = client.search("best running shoes", traffic_trend=["rising", "spiking", "new"], num_results=20)
for hit in r.results:
    print(hit["traffic_trend"], hit["popular_in"], hit["site_tech"], hit["url"])
```

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

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

const r = await client.search('best running shoes', {
  trafficTrend: ['rising', 'spiking', 'new'],
  numResults: 20,
});
for (const hit of r.results) {
  console.log(hit.traffic_trend, hit.popular_in, hit.site_tech, hit.url);
}
```

The same call as a tool of the MCP server:

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "search",
    "arguments": {
      "query": "best running shoes",
      "traffic_trend": [
        "rising",
        "spiking",
        "new"
      ],
      "num_results": 20
    }
  }
}
```

## Related

- [Filters for agents](https://millionshort.com/docs/search/filters): every filter in one table.
- [Popularity and risk](https://millionshort.com/docs/search/popularity-and-risk): the two signals these build on.
- [Search reference](https://millionshort.com/docs/search/parameters): every field, with its limits.
