Menu

Integrations / Low-code builders

Botpress

MillionShort search as a step in Botpress, with one call to the API.

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

RecipeAn HTTP stepKey in a form fieldChecked 2026-11-19

1Call the API in an HTTP step

Save the key as a configuration variable: Bot Settings, Configuration Variables, +, name MILLIONSHORT_API_KEY. Then an Execute Code card (it has Axios; declare results as a workflow variable first):

Execute Code
const res = await axios.post(
  'https://api.millionshort.com/v1/search',
  { query: 'your query', remove_top_sites: 1000, num_results: 5 },
  { headers: { Authorization: `Bearer ${env.MILLIONSHORT_API_KEY}` } },
);
workflow.results = res.data.data.results;

2Try it

Ask Botpress's agent, or run the step with this as the query:

Search MillionShort for forum threads about restoring a cast iron skillet, with the 1,000 most popular sites removed. List the five most useful with their links.

A good answer comes from a search call (the client shows the tool call) and links to pages you may not have seen before.

Botpress has no search step of its own here, so say which search to use.

If the bot's AI reads the results, tell it:

Use the MillionShort search tool for anything recent, niche, or that needs a source. To reach lesser-known sites, set remove_top_sites (for example 1000). Cite the URLs it returns.

4Check it works

Run the flow in the Studio emulator and look at the results variable.

A search that worked returns data.results, each with a title, a url and a snippet, and usage.credits: what it cost.

Tools

ToolWhat it doesWithout a keyCost
searchSearches the web and the specialist sources, with the popularity, domain, page-type, topic, site and date filtersYes: one source, up to 5 results1 credit per source searched, first 10 results
get_domain_infoPopularity and risk for up to 25 sitesNo1 credit
list_sourcesThe sources, page types and topics search acceptsYes: source namesFree
The tools of the other endpointsextract, map, crawl, places and more: the MCP page lists themA few, such as placesWhat the API call behind each costs

Costs and limits

A tool call costs what the API call behind it costs: 1 credit per source searched for the first 10 results, 1 credit for a domain lookup, nothing for the list of sources, the price of the endpoint for the other tools, and nothing at all in the no-key mode. An agent that loops can make many calls: give it a step limit, and ask for fewer results when a few will do. Credits and limits has the numbers.

When it fails

What you seeWhyFix
401 AUTH_MISSING_KEY or AUTH_INVALID_KEYThe key is missing or wrongSet MILLIONSHORT_API_KEY; keys start with ms-
400 INVALID_PARAMA field name or value the API does not takeThe message names the field; the search reference lists them all
429 RATE_LIMITED or CAPACITYToo many calls a minute, or no free capacity right nowWait the Retry-After seconds, then retry
429 INSUFFICIENT_CREDITSThe plan's credits are used upStop and add credits; do not retry

This page as Markdown ยท llms.txt