PRODUCT — HEADLESS SEARCH API

SEMANTIC SEARCH,
EMBED ANYWHERE.
ZERO BACKEND.

Drop a fully-featured, sub-300ms semantic search directly into your frontend. One API key, one hook, ten lines of code. Your users search. You ship.

WHAT YOUR USERS SEE
how do I index a website?ESC
KnowledgeSDK Docs
Getting Started
Install the SDK with npm install @knowledgesdk/node and make your first API call…
API Reference
POST /v1/extract — Full AI Extraction
Extracts structured data from any URL: title, description, entities, key facts…
API Reference
Semantic Search over indexed knowledge
Query your knowledge base in natural language. Returns ranked results with scores…
HOW IT WORKS
01

Index your content

Use /v1/extract or /v1/crawl to index any URL, doc page, or knowledge base. Results are stored and vectorised automatically.

02

Get your API key

One knowledgesdk_live_* key controls everything. Pass it to the search hook — it never hits your backend.

03

Drop in the component

Install the SDK, call useSearch(), and render results. The whole integration is under 10 lines.

INTEGRATION

TEN LINES
OF CODE.

Install the SDK, call useSearch(), and render results. The hook handles debouncing, loading states, and error handling.

Use our publishable key — queries go directly from the browser to our API. No proxy, no server, no cold starts.

INSTALL

$ npm install @knowledgesdk/node

REACT — useSearch() HOOK

import { useSearch } from '@knowledgesdk/node';

export function SearchBar() {
  const { results, search, loading } = useSearch({
    apiKey: 'pk_ks_...',
  });

  return (
    <input
      placeholder="Search..."
      onChange={e => search(e.target.value)}
    />
    {results.map(r => <Result key={r.id} {...r} />)}
  );
}

VANILLA JS — DIRECT FETCH

const res = await fetch('https://api.knowledgesdk.com/v1/search', {
  method: 'POST',
  headers: { 'x-api-key': 'pk_ks_...' },
  body: JSON.stringify({ query }),
});
const { results } = await res.json();
WHAT YOU GET

Sub-300ms

Hybrid vector + keyword search returns results faster than a keypress.

Semantic

Understands meaning, not just keywords. Works across synonyms, rephrasing, and natural language.

No backend required

Query the API directly from the browser with your publishable key. No proxy, no server.

Framework agnostic

React hook, vanilla JS fetch, or any framework. If it can call fetch, it works.

Fully customisable UI

Headless by design. Bring your own styles, components, and layout. Zero opinion on the UI.

Keyboard + CMD-K ready

Built for ⌘K palette patterns out of the box. Just wire up the shortcut.

SHIP SEARCH
TODAY.

Free tier included. No credit card required.

GET API KEY →