Skip to content
OSINTtools.io

Marginalia Search API

Independent open-source search engine run from Sweden; its API takes a query and returns result URLs, titles and descriptions as JSON.

Base URL
https://api2.marginalia-search.com
Sign-in
API key
Free tier
Free tier
Format
REST
Endpoints
1

Compiled by OSINTtools.io editors from about.marginalia-search.com · updated Nov 29, 2026Work on this API? Claim it to keep these docs currentReport a mistake

Introduction

The Marginalia Search API runs queries against the Marginalia search engine and returns the results as JSON: the query, the license text, and a list of results with url, title and description. It indexes small, independent sites, which makes it useful for finding personal pages and older web content that large engines rank low.

Send the key in the API-Key header. The shared key public works for experimentation but cannot create custom filters and often hits a rate limit. Free non-commercial keys are requested by email, paid non-commercial keys are a one-time payment, and commercial keys are metered. Free and paid non-commercial keys are provided under CC-BY-NC-SA 4.0.

Custom filters are XML documents (domain include and exclude, term rules, temporal bias, limits) created through the filter endpoints and then used through the filter search parameter. The older API at api.marginalia.nu, which puts the key in the path, is deprecated and gets no new features; it is not described here.

Quick start

  1. Get a key

    Create an account with Marginalia Search and copy your api key (free tier). Where to get it

  2. Make your first request

    Search the Marginalia index.. Replace YOUR_API_KEY and run it in a terminal, or use Try it on the endpoint.

    curl 'https://api2.marginalia-search.com/search?query=json%20api' \
      -H 'API-Key: YOUR_API_KEY'
  3. Read the response

    A 200 response looks like this.

    {
      "query": "json api",
      "license": "Example license text",
      "results": [
        {
          "url": "https://example.com/json-api-notes",
          "title": "Notes on a JSON API",
          "description": "A short example description of the page."
        }
      ]
    }

Authentication

Send your API key in the API-Key header of every request.

The shared key public is for experimentation only.

Get a key from Marginalia Search

Try it on this page keeps your key in your browser; it is never sent to OSINTtools.io.

Rate limits and pricing

Not stated in the docs

Free tier.

Errors

StatusMeaning
503The shared public key hit its rate limit (stated for the deprecated API)