---
title: "Semantic Search"
method: GET
path: "/semantic-search"
tags: ["Market Intelligence"]
---

# Semantic Search

`GET /semantic-search`

## Request

- Base URL: `https://nzxplorer.co.nz/api/v1`
- URL: `https://nzxplorer.co.nz/api/v1/semantic-search`
- Auth: one of:
  - API key in header `X-API-Key`
  - API key in query parameter `api_key`

AI-powered search across 64,000+ NZX announcements. Supports 3 modes: keyword (BM25 FTS), semantic (pgvector cosine similarity), and hybrid (RRF fusion of both). Optional Cohere reranking for maximum relevance.

## Query parameters

- `q` string, required
- `mode` string
- `rerank` 'true' | 'false'
- `issuer_id` number
- `type` string
- `from` string
- `to` string
- `limit` number
- `threshold` number

## Response `200`

Semantic Search

- Envelope: Standard API response envelope
  - `data` unknown
  - `meta` object
    - `api_version` string
    - `timestamp` string, date-time
    - `format` 'standard' | 'llm' | 'fdc3' | 'toon'
    - `endpoint` string

## Other responses

- `401`: Missing or invalid API key
- `429`: Rate limit exceeded
- `500`: Internal server error

---

[API](https://skmtc.dev/nzxplorer/apis/nzxplorer-api.md) · [All operations](https://skmtc.dev/nzxplorer/apis/nzxplorer-api/llms.txt) · [OpenAPI document](https://skmtc.dev/nzxplorer/apis/nzxplorer-api/revisions/f3b95341783a?raw)
