# AskJozie > AskJozie is a search engine for AI agents. It does not write answers: it returns the source pages that answer a query, each with a citable URL, query-relevant highlights and the full page as markdown. Read the pages, use what you need, and cite their URLs. Content comes from documents and web pages curated by the AskJozie team. For a web page, `url` is AskJozie's copy (stable and citable) and `metadata.sourceURL` is the original page on the web. Public documents can be searched without a key (rate limited to 20 requests a minute). Internal documents need an API key with internal access. Auth: `Authorization: Bearer aj-…` ## MCP - Endpoint: https://askjozie.com/mcp (Streamable HTTP, stateless) - Claude Code: `claude mcp add --transport http askjozie https://askjozie.com/mcp --header "Authorization: Bearer aj-YOUR_KEY"` - Tools: askjozie_search, askjozie_search_code, askjozie_get_code, askjozie_read_page, askjozie_get_document, askjozie_list_collections, askjozie_feedback ## REST API - [Search](https://askjozie.com/v1/search): `POST /v1/search {"query": "...", "limit": 5, "collections": ["HR"], "formats": ["markdown"], "maxChars": 8000, "perDocument": 3, "updatedAfter": "2026-01-01"}` (or GET with ?query=). Returns `{success, id, query, data: [{position, url, title, description, highlights[], markdown, metadata{documentId, page, pageLabel, totalPages, citation, relevance, matchedBy, markdownURL, fileURL, sourceURL, updatedAt}}], tookMs}`. Set "formats": [] for links and highlights only. - [Code search](https://askjozie.com/v1/code/search): `POST /v1/code/search {"query": "...", "language": "python", "limit": 5}` returns code blocks WHOLE, never fragments: `{success, id, query, data: [{id, url, rawURL, language, kind, complete, issues[], heading, context, code, setup[], needs[], combined?, pageURL, citation, sourceURL, updatedAt}]}`. `setup` holds the install commands to run first; `needs` the earlier blocks of the same tutorial the code builds on (imports, a client created in a previous step); `combined` is needs + code in order, ready to use. `complete: false` means the example itself leaves parts out (`...`, "rest of code") or its brackets don't balance. - One code block: `GET /v1/code//`, or `https://askjozie.com/doc//code/` (`.txt` for the raw code, `.md` with its setup and earlier steps). Search results and pages list their code blocks in `metadata.code`. - Read a page: `POST /v1/read {"url": "https://askjozie.com/doc//page/"}`, or `GET /v1/documents//pages/` - Document outline: `GET /v1/documents/` - Collections: `GET /v1/collections` - Feedback: `POST /v1/search//feedback {"useful": ["", ...], "comment": "..."}` tells us which results helped. - Every page URL also serves markdown: append `.md` or send `Accept: text/markdown`. - Results and pages include `media`: images, video and audio on the page (`[{type, url, title, embed?, thumbnail?, start?}]`). In markdown they appear as `![alt](url)`, `![video: title](url)` and `![audio: title](url)`. Index: embeddinggemma-2 embeddings (768 dimensions) in PostgreSQL + pgvector, combined with full-text keyword search.