Menu

Get started

Quickstart

Get a key, send one request, read the results.

Copy as MarkdownOpen in ChatGPT (opens in a new tab)Open in Claude (opens in a new tab)

MillionShort searches the web and 13 sources in all from one endpoint, on our own independent index. This page takes you from nothing to a first result.

1. Get a key

Create a key in the dashboard. The Free plan needs no card. A key starts with ms- and is shown once, so copy it when it appears.

Keep the key in an environment variable so it stays out of your code:

Shell
export MILLIONSHORT_API_KEY="ms-YOUR_API_KEY"

An agent that cannot sign up can ask for a short-lived trial key instead. See Authentication.

This asks for five results from the web with the 10,000 most popular sites removed:

Example
Shell
curl https://api.millionshort.com/v1/search \
  -H "Authorization: Bearer $MILLIONSHORT_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "query": "restoring a cast iron skillet",
    "remove_top_sites": 10000,
    "num_results": 5
  }'

The SDKs install with pip install millionshort and npm install millionshort. Neither package is published yet, so until they are, use curl or any HTTP client as above. The SDK pages cover both: Python, TypeScript.

3. Read the response

Every success has the same four parts: data, usage, warnings and request_id.

JSON
{
  "data": {
    "results": [
      {
        "title": "Restoring a rusted skillet: notes from thirty years at a foundry",
        "url": "https://example.org/skillet-restoration",
        "site": "example.org",
        "source": "web",
        "snippet": "Strip the old seasoning down to bare iron before you start...",
        "highlights": ["Strip the old seasoning down to bare iron before you start..."],
        "published_date": null,
        "page_type": "articles",
        "topic": "home",
        "popularity": { "rank": null, "bucket": "long-tail" },
        "risk": null,
        "position": 1,
        "score": 1.0,
        "extra": {}
      }
    ],
    "summary": {
      "returned": 5,
      "removed": { "popularity": 41, "blocked": 0, "duplicates": 2, "risk": 0, "safe_search": 0 }
    },
    "warnings": []
  },
  "usage": { "credits": 1, "cost_usd": 0.001, "breakdown": { "search": 1 } },
  "warnings": [],
  "request_id": "req_..."
}

The values above are an illustration, and the list is cut to one result. popularity.bucket says how popular the result's site is, and summary.removed.popularity counts results the popularity cut took out of the list (for some sources, web and news among them, the cut is applied before results are counted and this stays 0). The SDKs unwrap data, so results and summary sit directly on the object they return.

4. Try more

The Search reference has every field. Credits and limits says what a call costs.

This page as Markdown ยท llms.txt