FreeSerp API and MCP documentation
Free Search for AI Agents

API & MCP

One free endpoint, two indexes — and Multi, both in one list. FreeSerp Main (index=sites, default, unchanged — main pages only): 20M+ homepage profiles with LLM summaries, Domain Rating and AI niche taxonomy, filterable and sortable on every field. FreeSerp Global (index=web): full-web search over 3.1B+ pages from our own engine — any URL, any language. No key, CORS-open, or wire it in as an MCP tool. Multi (index=multi) returns pages and site profiles together, one result per site.

Quickstart

A single GET request. No authentication. By default you search FreeSerp Main — main pages only, 20M+ site profiles with LLM summaries (exactly the API you may already use):

HTTP / cURL
curl 'https://freeserp.ai/api.php?q=ai+chatbot&ai_startups=1&sort=went_live&order=desc&size=3'

Add index=web to search the open web with FreeSerp Global — our own 3.1B+ page index. Results are ranked pages: url, title, snippet, language, publication date, and a site card (Domain Rating, category, live date) when we know the domain:

HTTP / cURL
curl 'https://freeserp.ai/api.php?index=web&q=how+to+fine-tune+llama+3&size=3'

Want both at once? index=multi returns FreeSerp Global pages and FreeSerp Main site profiles in one list — one result per site, each item labelled with source_index:

HTTP / cURL
curl 'https://freeserp.ai/api.php?index=multi&q=vector+database&size=10'

Python

Python
import requests
# FreeSerp Main (default): newest AI startups with LLM summaries
r = requests.get('https://freeserp.ai/api.php', params={
    'q': 'ai chatbot', 'ai_startups': 1, 'sort': 'went_live', 'order': 'desc', 'size': 5,
})
for hit in r.json()['results']:
    print(hit['domain'], '—', hit['ai_summary'][:120])

# FreeSerp Global: any page on the web
r = requests.get('https://freeserp.ai/api.php', params={'index': 'web', 'q': 'how to fine-tune llama 3', 'lang': 'en', 'size': 5})
for hit in r.json()['results']:
    print(hit['url'], '—', hit['snippet'][:120])

JavaScript (fetch)

JavaScript
const r = await fetch('https://freeserp.ai/api.php?' + new URLSearchParams({
  index: 'web', q: 'best crm for small business', size: 5,
}));
const { results } = await r.json();
results.forEach(h => console.log(h.url, h.title, h.site?.dr));
Built for agents: results come pre-cleaned — no HTML to scrape, no pagination games.
Discover it live: GET /api.php?help=1 returns a machine-readable usage guide — every parameter, both indexes and Multi, recommended queries and caveats. Great as the first call an agent makes.

Indexes: Global, Main and Multi

FreeSerp Global — index=webFreeSerp Main — index=sites (default)Multi — index=multi
WhatFull-web search: 3,132,469,027 pages from our own crawl (own extraction, own link graph), ranked by text relevance (title, headings, body, anchors), link authority and domain trust.Main pages only: homepage-level profiles of 20M+ live sites — LLM summary, Domain Rating, AI niche taxonomy, tech stack, live date. Every field filterable and sortable.Both indexes in one list: the best page of each domain from FreeSerp Global, alternating with FreeSerp Main site profiles. One result per site.
Unita page (any URL)a site (domain)a page or a site — see source_index
Paramsq (required), lang, fresh, published_from/to, ranking, size, fromq (optional), ai_startups, ai_categories, category, ai_source, dr_min/max, from_date/to_date, sort/order, content, all…q (required), lang, fresh, published_from/to (web side), all (sites side), size, from
Resulturl, domain, title, snippet, language, published_at, crawled_at, score, site{dr, category, ai_categories, ai_source, went_live, summary}, source{index, captured_at, digest}domain, url, title, ai_summary, category, ai_categories, ai_source, dr, went_live, first_seen, tld, http_status…source_index (web·sites), url, domain, title, snippet + the fields of that index
Depthtop 100 candidates (from+size ≤ 100); total = size of that pool, not an exhaustive countexact total; from+size ≤ 10,000from+size ≤ 200; totals{web, sites} gives both parts
Best forfacts, how-to, comparisons, grounding, any-language questionsdiscovering new sites & AI startups, competitor sets, domain lookups, niche browsingone call that gives an agent both answers and the sites behind them; broad research and discovery
How Multi works (index=multi, alias all): Web results (the best page of each domain) and Main site profiles alternate; every item carries source_index (web or sites) and the common fields url, domain, title, snippet, followed by the fields of its own index. Requires q; lang, fresh and published_from/to apply to the web side; from+size ≤ 200; totals reports both parts. Example: https://freeserp.ai/api.php?index=multi&q=vector+database&size=20
Default: when index is omitted the request goes to FreeSerp Main — nothing changes for existing integrations. Pass index=web (alias global) to search the open web with FreeSerp Global, or index=multi for both in one list (both require q). If FreeSerp Global is momentarily unavailable the request is served from FreeSerp Main with engine_fallback: true. On the search UI FreeSerp Global is the default tab.

Endpoint

GET https://freeserp.ai/api.php

Also reachable as /api. Read-only. Responses are cached ~30s at the edge.

Parameters

ParamTypeDefaultDescription
indexsites·web·multisitesWhich index to search (see Indexes). web = FreeSerp Global, full-web search, needs q (alias global); sites = FreeSerp Main (alias main); multi = both in one list, one result per site, needs q (alias all). Param alias: mode.
qstring—web: full-text query over any page (title, headings, body, anchors). sites: title, AI summary and homepage text; exact domain names are boosted. Omit q to browse/filter the sites index.
langiso—web and multi. Language filter: en ru de fr es ja zh it pt pl nl tr cs vi ko ar uk sv id th… Alias: language.
fresh0·10web and multi. 1 ranks fresher pages higher (same as sort=fresh).
published_from / published_todate—web and multi (web side). Publication-date window (YYYY-MM-DD).
rankingenumbm25_trustweb only, advanced. bm25_trust (text × domain trust), bm25 (text × link authority), bm25_rank, bm25_fresh.
sortenumrelevancesites: any sortable field (see Sorting); relevance = text score × Domain Rating. web: relevance or fresh.
orderasc·descdescsites. Sort direction (ignored for relevance).
sizeint20 · web 10 · multi 20Results per page, 1–100.
fromint0Offset for paging (sites: max 10,000; web: from+size ≤ 100; multi: from+size ≤ 200).
FreeSerp Main parameters (index=sites, the default index):
all0·101 also returns parked/empty domains. Default: real content sites only.
ai0·101 restricts to AI-built sites (ai_source ∈ ai_likely, lovable, base44, v0, bolt).
ai_startups0·10Recommended for discovering real AI startups. Keeps only genuine AI-product niches (see field values) and strips the noise that category=ai lets through — AI-flavoured Shopify shops, directories and casinos.
helpany—Present ⇒ ignore the search and return a machine-readable usage guide (params, recommended queries, caveats, field list). ?help=1.
content0·101 also returns the full extracted page text of each result under content (not just the AI summary).
content_maxint—Cap the returned page text to N characters. Omit for the full text.
dr_min / dr_maxint—Domain Rating range filter (0–100).
from_date / to_datedate—Filter by went_live (YYYY-MM-DD).
Plus an exact-match filter for every keyword field — pass the field name as a query param:
categorykeyword—e.g. ai, betting/casino
ai_sourcekeyword—e.g. shopify, nextjs, lovable
ai_categorieskeyword—AI sub-niche, e.g. Image Generation
tldkeyword—e.g. ai, io
webserverkeyword—e.g. cloudflare, nginx
http_statusnumber—e.g. 200

Response

FreeSerp Global (index=web)

JSON
{
  "ok": true,
  "index": "web",
  "query": "how to fine-tune llama 3",
  "total": 97,                      // de-duplicated candidate pool (≤ 100), not an exhaustive count
  "count": 3, "from": 0, "size": 3,
  "sort": "relevance", "ranking": "bm25_trust",
  "filters": { "lang": "en" },
  "took_ms": 412, "engine_ms": 388, "cached": false,
  "results": [
    {
      "url": "https://example.com/blog/fine-tune-llama-3",
      "domain": "example.com",
      "title": "How to fine-tune Llama 3 on your own data",
      "snippet": "… step-by-step guide to fine-tune Llama 3 with LoRA on a single GPU …",
      "language": "en",
      "published_at": "2026-05-14", "crawled_at": "2026-07-12",
      "score": 341.2,
      "site": { "dr": 41, "category": "ai", "ai_categories": ["Code & Dev Tools"], "ai_source": "nextjs", "went_live": "2026-08-22", "summary": "Example is …" },
      "source": { "index": "FreeSerp Global", "captured_at": "2026-07-18T03:05:37Z", "digest": "sha1:…" }
    }
  ],
  "related_apis": { … }
}

site is null when the domain is not in FreeSerp Main. source.captured_at / source.digest identify the exact capture the page came from — reproducible evidence for grounding.

FreeSerp Main (index=sites)

JSON
{
  "ok": true,
  "index": "sites",
  "query": "ai chatbot",
  "total": 48213,
  "count": 3,
  "from": 0, "size": 3,
  "sort": "relevance", "order": "desc",
  "filters": { "real_site": "1" },
  "took_ms": 34, "engine_ms": 21,
  "results": [
    {
      "domain": "example.ai",
      "url": "https://example.ai",
      "title": "Example — AI chatbot for support",
      "ai_summary": "Example is an AI chatbot platform that …",
      "category": "ai",
      "ai_categories": ["AI Chatbot & Assistant"],
      "ai_source": "nextjs",
      "dr": 41, "went_live": "2026-08-22", "first_seen": "2026-07-10",
      "tld": "ai", "http_status": 200,
      "content_length": 8123, "html_size": 40213,
      "_score": 3182.4
    }
  ]
}

Multi (index=multi)

JSON
{
  "ok": true,
  "index": "multi",
  "query": "vector database",
  "total": 200,                     // capped at 200
  "totals": { "web": 81, "sites": 5357 },
  "count": 20, "from": 0, "size": 20,
  "results": [
    {
      "source_index": "web",
      "url": "https://example.com/what-is-a-vector-database",
      "domain": "example.com",
      "title": "What is a vector database?",
      "snippet": "A vector database stores embeddings …",
      "language": "en", "published_at": null, "crawled_at": "2026-08-30",
      "site": { "dr": 71, "category": null, "went_live": "2026-08-07", "summary": "…" },
      "source": { "index": "FreeSerp Global", "captured_at": "…", "digest": "…" }
    },
    {
      "source_index": "sites",
      "url": "https://example-vectors.io",
      "domain": "example-vectors.io",
      "title": "Example Vectors — the edge vector database",
      "snippet": "Example Vectors provides an embedded vector database for …",
      "ai_summary": "…", "dr": 34, "category": "ai", "ai_categories": ["AI Infrastructure & API"], "went_live": "2026-08-07"
    }
  ]
}

Web results and site profiles alternate (web, site, web, site…); when one side runs out the other fills the page. Every domain appears once: a site already present as a web result is not repeated as a profile. Filter the list by source_index if you need only one kind.

Sorting — every field

FreeSerp Global: sort=relevance (default) or sort=fresh. Multi: relevance order of each index (use fresh=1 for the web side). FreeSerp Main: pass any of these as sort=, with order=asc|desc:

relevancedomaincategoryai_categoriesai_sourcedrwent_livefirst_seenreal_sitetldhttp_statuscontent_lengthhtml_sizewebserveripfetched_at

All fields

FreeSerp Global results always carry: url domain title snippet language published_at crawled_at score site{…} source{index, captured_at, digest}.

Sites index — every field returned per result, and whether you can filter or sort on it:

FieldTypeSortFilterDescription
domain keyword ✓ ✓ Registered domain (e.g. example.com)
title text — ✓ Page <title>
ai_summary text — ✓ LLM-generated factual overview of the site
category keyword ✓ ✓ High-level category: 'ai', 'betting/casino', or null
ai_categories keyword ✓ ✓ AI sub-niche taxonomy (multi-valued)
ai_source keyword ✓ ✓ Builder / stack signal: wordpress, shopify, nextjs, lovable, v0, bolt, base44, ai_likely, not_ai…
dr number ✓ ✓ Domain Rating 0–100 (authority proxy)
went_live date ✓ ✓ Date the liveness probe first confirmed the site live
first_seen date ✓ ✓ Date the domain was first discovered
real_site number ✓ ✓ 1 = real content site, 0 = parked/empty/error
tld keyword ✓ ✓ Top-level domain (com, ai, io…)
http_status number ✓ ✓ Last HTTP status of the homepage
content_length number ✓ ✓ Extracted text length (bytes)
html_size number ✓ ✓ Raw HTML size (bytes)
webserver keyword ✓ ✓ Server header (nginx, Apache, cloudflare…)
ip ip ✓ ✓ Resolved IP address
fetched_at date ✓ — When the HTML was last fetched

Field values

The keyword fields you filter on take a fixed set of values. The most useful:

category

Broad heuristic bucket. ai betting/casino (null)  — ai is deliberately wide; prefer ai_startups=1 / ai_categories for real AI products.

ai_source — builder / tech stack

AI-builder signals: ai_likely lovable v0 bolt base44  · classic stacks: wordpress shopify wix webflow nextjs react not_ai

ai_categories — AI sub-niche (multi-valued)

Counted as a real AI startup by ai_startups=1:
AI Agents & Autonomous Code & Dev Tools AI Infrastructure & API AI Automation & Workflows LLM & Prompt Tools AI Search & Answers AI Website Builder No-code / App Builder Image Generation Video Generation Voice & Text-to-Speech Data & Analytics Research & Science Design & UI Chatbot & Assistant

Also present but treated as noise for startup discovery: E-commerce, Directory / Aggregator, Marketing & Ads, Sales & CRM, Lead Gen & Outreach, Finance & Trading, Healthcare & Medical, Education & Tutoring, Other AI, …

Not sure what exists? GET /api.php?help=1 and the MCP freeserp_list_endpoints tool both enumerate the live surface — never hard-code, ask the API.

Caveats — read this

Field / filterWhat it really means
total (web)FreeSerp Global returns the top 100 candidates after de-duplication; total is the size of that pool, not how many pages match on the whole web. Page inside the window with from/size.
published_at (web)The page's own publication date when it declares one (meta / schema / visible date). Missing for many pages — then use crawled_at, the date we fetched it.
freshness (web)FreeSerp Global is refreshed in batches from our own crawl; a page changed or created after its last capture (crawled_at) is not reflected yet. FreeSerp Main is refreshed daily.
engine_fallbackPresent and true when the web engine was unavailable and the response was served from the sites index instead. On index=multi the list then contains site profiles only.
total (multi)Sites found on the web plus Main matches, capped at 200; totals{web, sites} gives each part. The web part is at most 100 candidates, reduced to one page per domain.
went_liveThe date FreeSerp's liveness probe first confirmed the site reachable — not the startup's official launch date. A domain can be registered or launched well before we first see it live.
category=aiA broad keyword heuristic (AI phrases in the HTML). It also flags AI-flavoured Shopify shops, directories and casinos. For genuine AI products use ai_startups=1 and/or ai_categories.
ai_source=ai_likelyA heuristic "looks AI-built" signal — useful but noisy on its own. Combine with ai_categories for precision.
drDomain Rating 0–100 from our own web-graph (Ahrefs-calibrated), not a live third-party API. Brand-new domains may still read dr: null until scored.
first_seenWhen the domain entered our discovery feed (often its NRD registration date), not when it went live.

Data & coverage

FreeSerp Global: 3,132,469,027 pages, built and ranked by us — own crawl, own extraction, own link graph for authority and domain trust. Languages: en 1,256M, ru 228M, de 187M, fr 162M, ja 160M, es 158M, zh 140M, it, pt, pl, nl, tr, cs, vi and more. Every result is reproducible down to the capture (source.captured_at, source.digest).

FreeSerp Main (main pages only): ~20M live sites from our own continuously-refreshed discovery pipeline (newly-registered domains are probed daily; live ones are crawled, LLM-summarised, categorised and DR-scored). Global — every TLD and language. Each record is the homepage: title, extracted text, ai_summary, tech stack, DR and live date. It is a discovery index of what is newly live on the web — not a crawl of every page of every site (that is what FreeSerp Global is for).

Limits, paging & errors

Rate limits

No hard limit and no key — the service is free and open. Please be reasonable (a few requests/second), cache when you can, and identify yourself so we can reach you before a change or ask you to ease off instead of blocking. Responses are edge-cached ~30s.

Paging

Web: from + size ≤ 100 — the engine returns the top-100 candidates for a query; refine the query or add lang/published_from instead of paging deeper. Sites: size ≤ 100 per page; from + size ≤ 10,000. To pull a large set, narrow with filters (date range, ai_categories, dr_min) rather than paging to the cap. Multi: size ≤ 100, from + size ≤ 200; pages never repeat a domain.

Errors

HTTP 200 with "ok": true on success. On failure you get a non-2xx with an error body:

JSON
{ "ok": false, "error": "upstream", "detail": "search_phase_execution_exception" }
StatusMeaning
200OK — results (may be empty; check total).
204CORS pre-flight (OPTIONS).
400query_required — index=web and index=multi need q; use index=sites to browse without a query.
502Upstream search error — retry with backoff (web-engine outages are normally masked by engine_fallback).

Bad params never error — unknown filters are ignored and an invalid sort falls back to relevance, so a query always returns something. The echoed filters object shows exactly what was applied.

Statistics

A live snapshot of the whole index, refreshed every 30 minutes — no heavy query on your side.

GET https://freeserp.ai/api.php?stats=1
JSON
{
  "ok": true,
  "generated_at": "2026-09-06T10:16:35+00:00",
  "web_index": { "name": "FreeSerp Global", "pages": 3132469027, "nodes": 18, "languages": { "en": 1256209788, "ru": 228281221, … }, "engine_ready": true },
  "totals":  { "real_sites": 16273795, "all_sites": 21086714 },
  "new":     { "today": 29247, "yesterday": 31800, "last_7d": 232787, "last_30d": 11289030 },
  "ai_startups": { "total": 33429, "today": 72 },
  "by_category": [ {"key":"ai","count":78674}, {"key":"betting/casino","count":806182} ],
  "top_ai_categories": [ {"key":"AI Agents & Autonomous","count":10467}, … ],
  "top_ai_source": [ … ], "top_tld": [ … ],
  "dr": { "avg": 8.4, "min": 0, "max": 99, "histogram": [ … ] },
  "by_day": [ {"key":"2026-09-06","count":29247}, … ],
  "gambling": { "today": {"original":…,"affiliate":…}, "total": {…} },
  "pipeline": { "summary_todo": …, "went_live_today": …, "probe_due": … }
}

Over MCP, the same snapshot is the freeserp_stats tool. The robot also keeps 30 days of half-hourly history in freeserp_stats for trend charts.

Examples & recipes

★ Answer a question from the web (index=web)

HTTP / cURL
curl 'https://freeserp.ai/api.php?index=web&q=how+does+chatgpt+search+choose+sources&size=5'

English results, fresher pages first

HTTP / cURL
curl 'https://freeserp.ai/api.php?index=web&q=best+link+indexing+services&lang=en&fresh=1'

Pages published this year only

HTTP / cURL
curl 'https://freeserp.ai/api.php?index=web&q=gpt-5+pricing&published_from=2026-01-01&size=10'

Grounding for an agent: ask, then read the site card

Python
r = requests.get('https://freeserp.ai/api.php', params={'index': 'web', 'q': 'best backlink indexing service', 'size': 8}).json()
for h in r['results']:
    site = h['site'] or {}
    print(h['url'], '| DR', site.get('dr'), '|', site.get('summary', '')[:80])

★ Pages and sites in one call (index=multi)

HTTP / cURL
curl 'https://freeserp.ai/api.php?index=multi&q=ai+video+generator&size=20'

Multi, German-language pages only, fresher first

HTTP / cURL
curl 'https://freeserp.ai/api.php?index=multi&q=elektroauto+laden&lang=de&fresh=1'

Split a Multi response by kind

Python
r = requests.get('https://freeserp.ai/api.php', params={'index': 'multi', 'q': 'vector database', 'size': 20}).json()
pages = [h for h in r['results'] if h['source_index'] == 'web']    # answers
sites = [h for h in r['results'] if h['source_index'] == 'sites']  # companies / products
print(len(pages), 'pages,', len(sites), 'sites, totals:', r['totals'])

★ Discover new AI startups in a niche (default index — recommended combo)

HTTP / cURL
curl 'https://freeserp.ai/api.php?ai_startups=1&ai_categories=AI%20Agents%20%26%20Autonomous&from_date=2026-09-01&sort=went_live&order=desc'

Newest AI sites, most authoritative first

HTTP / cURL
curl 'https://freeserp.ai/api.php?ai=1&sort=dr&order=desc&size=10'

All sites built on Shopify, most authoritative first

HTTP / cURL
curl 'https://freeserp.ai/api.php?ai_source=shopify&sort=dr&order=desc&size=25'

High-DR news sites that went live in the last two weeks

HTTP / cURL
curl 'https://freeserp.ai/api.php?q=news&dr_min=30&from_date=2026-08-16&sort=went_live&order=desc'

Browse by niche, no text query

HTTP / cURL
curl 'https://freeserp.ai/api.php?ai_categories=Image%20Generation&sort=dr&order=desc'

Return full page text, not just the summary

HTTP / cURL
curl 'https://freeserp.ai/api.php?q=ai+chatbot&content=1&content_max=4000&size=3'

Look up one exact domain (record, DR, stack, summary)

Pass the full domain (any TLD) as q — it is boosted to the top; take the first result and confirm results[0].domain matches. Add all=1 so parked/empty domains still resolve.

HTTP / cURL
curl 'https://freeserp.ai/api.php?q=mynewstartup.ai&all=1&size=1'
Scope: FreeSerp Main is a discovery index of recently-live / newly-registered domains — long-established sites (e.g. google.com) may not be in it. If results[0].domain ≠ your query, the domain isn't in that index; the web index still has its pages.

Is this a real site or parked/dead?

Check real_site and http_status on the returned record (1 = real content, 0 = parked/empty/error).

HTTP / cURL
curl 'https://freeserp.ai/api.php?q=somedomain.io&all=1&size=1'

Find competitors / similar sites in a space

HTTP / cURL
curl 'https://freeserp.ai/api.php?q=vector+database&ai_startups=1&dr_min=10&sort=dr&order=desc&size=25'
Tip for agents: to enumerate a whole niche, don't page to the cap — loop by from_date/to_date week-windows with a fixed ai_categories filter, or tighten with dr_min.

Identify yourself (optional)

There is no key and no signup — which also means that when something is about to change, we have no way to reach you. These four fields fix that. Every one is optional, nothing is validated, and none of them affect your results.

HTTP / cURL
curl 'https://freeserp.ai/api.php?q=ai&agent=MyAgent/1.0&[email protected]&project=Acme&website=https://acme.com'
FieldExamplePurpose
agentMyAgent/1.0Your agent name + version (also accepted as the X-Agent header).
email[email protected]Contact address — contact= works the same. Used only to reach a human about this API.
projectAcme ResearchThe project/product making the calls.
websitehttps://acme.comProject website.

Over MCP, pass the same fields as arguments to any freeserp_search call. Sending them once is enough. What it buys you: we can warn before a breaking change, ask what you are missing, and — if your traffic starts hurting the service — ask you to slow down instead of blocking you. Stored privately next to request counts; never published, never shared.

What we will never ask for: no key, no token, no account. If a page on this site ever asks you to register to make a request, it is not this site.

MCP connector

FreeSerp ships a hosted Streamable-HTTP MCP server — one URL, no install. Tools and their schemas are generated live from the field registry, so they never drift from the API.

MCP https://freeserp.ai/mcp

A plain GET on that URL returns the live tool catalog (server, transport, tool_count, and every tool with its description) — same shape your client discovers over JSON-RPC:

HTTP / cURL
curl 'https://freeserp.ai/mcp'

Add it to Claude (Desktop / Code / any MCP client)

Point the client at the remote endpoint via mcp-remote:

JSON
{
  "mcpServers": {
    "freeserp": {
      "command": "npx",
      "args": ["-y", "mcp-remote", "https://freeserp.ai/mcp"]
    }
  }
}

Restart the client — your agent now has these tools:

ToolWhat it does
freeserp_searchThe main search over both indexes. Default index: "sites" (FreeSerp Main) with ai_startups, ai_categories, sort, filters…; index: "web" with q, lang, fresh, published_from/to for the open web (FreeSerp Global). index: "multi" returns both in one list, one result per site.
freeserp_helpUsage guide: quickstart, every param, recommended AI-startup query, caveats. Call this first.
freeserp_statsLive index statistics — totals, new today/7d, AI-startup counts, top niches/TLDs, DR distribution (refreshed every 30 min).
freeserp_list_endpointsField catalog — every field with type and whether it is sortable/filterable.
freeserp_getEscape hatch: raw GET of the REST API with any query string.
Tip: have the agent call freeserp_help (or freeserp_list_endpoints) first — it learns every field and the recommended ai_startups combo, so it composes precise queries on its own instead of guessing.

Raw JSON-RPC

Talk to it directly — initialize, then tools/list / tools/call:

JSON
# discover tools
curl -s 'https://freeserp.ai/mcp' -H 'Content-Type: application/json' \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/list"}'

# run a search
curl -s 'https://freeserp.ai/mcp' -H 'Content-Type: application/json' \
  -d '{"jsonrpc":"2.0","id":2,"method":"tools/call","params":{
        "name":"freeserp_search",
        "arguments":{"q":"ai chatbot","ai_startups":true,"sort":"went_live","size":5}}}'

# FreeSerp Global: any page on the web
curl -s 'https://freeserp.ai/mcp' -H 'Content-Type: application/json' \
  -d '{"jsonrpc":"2.0","id":3,"method":"tools/call","params":{
        "name":"freeserp_search",
        "arguments":{"index":"web","q":"how to fine-tune llama 3","lang":"en","size":5}}}'

# Multi: pages and site profiles in one list
curl -s 'https://freeserp.ai/mcp' -H 'Content-Type: application/json' \
  -d '{"jsonrpc":"2.0","id":4,"method":"tools/call","params":{
        "name":"freeserp_search",
        "arguments":{"index":"multi","q":"vector database","size":10}}}'
Prefer plain HTTP? The REST endpoint above is the same backend — point any framework (LangChain, LlamaIndex, a raw tool-call) at /api.php and skip MCP entirely.

Frequently asked questions

15 answers. Something missing? Ask us

What is the base URL for the API?

https://freeserp.ai/api.php, also reachable as /api. It is read-only and takes GET requests with query-string parameters, and CORS is enabled. /api.php?help=1 returns a machine-readable usage guide. Responses are cached at the edge for about 30 seconds, and the same backend powers the MCP server.

Which index is used when I omit the index parameter?

FreeSerp Main (index=sites), the default, so existing integrations are unchanged. Pass index=web (alias global) for FreeSerp Global, which requires q. mode is accepted as an alias for index. If the web index is momentarily unavailable, a web request falls back to Main automatically and says so in the response. index=multi (alias all) returns both indexes in one list and also requires q.

What are the default and maximum values for size?

size ranges from 1 to 100. The default is 10 on index=web and 20 on index=sites. To go beyond one page, use from within the paging limits of the index you are querying. Remember that from+size must stay at or below 100 on web and 10,000 on sites. On index=multi the default is 20 and from+size stays at or below 200.

How does paging work on each index?

On web, from+size must be at most 100, since only the top 100 candidates are returned. On sites, from+size can reach 10,000 and total is exact. To pull large sets, narrow with filters such as date windows rather than paging to the cap. On multi, from+size can reach 200 and no domain repeats across pages.

What does total mean on the web index?

It is the size of the de-duplicated candidate pool, at most 100, not an exhaustive count of matching pages on the web. Use it to see how many results you can page through, and do not treat it as coverage.

Which errors can the API return?

400 query_required when index=web has no q, 502 for an upstream search error (retry with backoff), and 204 for CORS pre-flight. A 200 may hold empty results. Bad parameters never error; unknown filters are ignored.

What is engine_fallback in a response?

If FreeSerp Global is momentarily unavailable, a web request is served from FreeSerp Main and the response includes engine_fallback: true. Check it so your code knows the results are site profiles, not web pages. It is rare, but worth handling in production code.

How do I filter web results by date?

Use published_from and published_to in YYYY-MM-DD form, for example https://freeserp.ai/api.php?index=web&q=gpt-5+pricing&published_from=2026-01-01&size=10. Many pages have no declared date, so crawled_at may be the only date available. You can use only one bound if you like, such as published_from alone, and combine it with lang for tighter results.

How do I sort the site index?

Add sort= with a sortable field and order=asc|desc. Sortable fields include dr, went_live, first_seen, domain, tld, http_status, content_length and fetched_at. An invalid sort falls back to relevance. Sorting applies to the default index=sites; on web, only relevance and fresh are available.

How do I get the full page text of a site?

On the default index add content=1, and optionally content_max=4000 to cap characters per result. Without it you get the LLM ai_summary only. Example: https://freeserp.ai/api.php?q=ai+chatbot&content=1&content_max=4000&size=3. The text is the extracted homepage content, not the whole site, because Main holds main pages only.

How do I look up one exact domain?

Pass the full domain as q with all=1 and size=1, then confirm that results[0].domain matches. If it does not, the domain is not in FreeSerp Main, though the web index may have its pages. Check real_site and http_status on the record to tell a live site from a parked one.

What do the ranking presets do?

They apply to index=web only: bm25_trust (default, text relevance with domain trust), bm25 (text with link authority), bm25_rank and bm25_fresh. Most users should leave the default and use fresh=1 for recency. Presets are advanced options and are ignored on the sites index, where relevance is text score times Domain Rating.

How do I set up the MCP server?

Add a server entry running npx -y mcp-remote https://freeserp.ai/mcp in your client's MCP config, then restart it. Clients with native remote MCP support can connect to the URL directly. A GET on /mcp returns the tool catalog.

How do I identify my agent, and is it required?

It is optional. Add agent (or the X-Agent header), email (or contact), project and website. Nothing is validated, results are unaffected, and values are stored privately. Over MCP pass them once to freeserp_search. The purpose is to let us reach you before a change instead of blocking you without notice.

How can I check index statistics and rate limits?

Statistics: https://freeserp.ai/api.php?stats=1 or freeserp_stats, refreshed every 30 minutes. There is no hard limit or quota: use a few requests per second, cache, and note that responses are edge-cached for about 30 seconds. The snapshot shows page counts, languages, new sites per day and AI startup totals, useful before you rely on the index.