Search
Search both markets and events with combined relevance scoring
Runs a market search and/or event search depending on type, tags event rows with "type": "event", merges both result sets, sorts by relevance_score descending, and truncates to limit. Same provider-visibility post-filter as /search/markets.
GET
/
search
/
markets-and-events
Search both markets and events with combined relevance scoring
curl --request GET \
--url https://data.kairos.trade/search/markets-and-eventsimport requests
url = "https://data.kairos.trade/search/markets-and-events"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://data.kairos.trade/search/markets-and-events', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://data.kairos.trade/search/markets-and-events",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://data.kairos.trade/search/markets-and-events"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://data.kairos.trade/search/markets-and-events")
.asString();require 'uri'
require 'net/http'
url = URI("https://data.kairos.trade/search/markets-and-events")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"results": [
{
"market_id": "KXPRES-28-DJT",
"provider_id": 1,
"provider": "kalshi",
"relevance_score": 123,
"event_id": "<string>",
"event_name": "<string>",
"name": "<string>",
"symbol": "<string>",
"category": "<string>",
"status": "open",
"expires_at": "2023-11-07T05:31:56Z",
"volume_24h": 0,
"outcome_label": "<string>",
"series_key": "<string>",
"series_title": "<string>",
"text_score": 0,
"business_score": 0,
"penalty": 0,
"timing_boost": 1,
"price": 123,
"volume_1h": 0,
"liquidity": 0,
"image": "<string>",
"icon": "<string>",
"token_id": "<string>",
"condition_id": "<string>",
"token_ids": [
"<string>"
],
"outcomes": [
"<string>"
],
"type": "event"
}
],
"meta": {
"query": "<string>",
"returned": 123,
"requested": 123,
"search_type": "market",
"include_expired": true,
"provider_id": "<string>"
}
}{
"detail": "Invalid provider: acme"
}{
"detail": "Invalid API credentials"
}{
"detail": "Invite required"
}{
"detail": [
{}
]
}{
"error": "Rate limit exceeded: 100 per 1 minute"
}{
"detail": "Invalid provider"
}Query Parameters
Was this page helpful?
⌘I
Search both markets and events with combined relevance scoring
curl --request GET \
--url https://data.kairos.trade/search/markets-and-eventsimport requests
url = "https://data.kairos.trade/search/markets-and-events"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://data.kairos.trade/search/markets-and-events', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://data.kairos.trade/search/markets-and-events",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://data.kairos.trade/search/markets-and-events"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://data.kairos.trade/search/markets-and-events")
.asString();require 'uri'
require 'net/http'
url = URI("https://data.kairos.trade/search/markets-and-events")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"results": [
{
"market_id": "KXPRES-28-DJT",
"provider_id": 1,
"provider": "kalshi",
"relevance_score": 123,
"event_id": "<string>",
"event_name": "<string>",
"name": "<string>",
"symbol": "<string>",
"category": "<string>",
"status": "open",
"expires_at": "2023-11-07T05:31:56Z",
"volume_24h": 0,
"outcome_label": "<string>",
"series_key": "<string>",
"series_title": "<string>",
"text_score": 0,
"business_score": 0,
"penalty": 0,
"timing_boost": 1,
"price": 123,
"volume_1h": 0,
"liquidity": 0,
"image": "<string>",
"icon": "<string>",
"token_id": "<string>",
"condition_id": "<string>",
"token_ids": [
"<string>"
],
"outcomes": [
"<string>"
],
"type": "event"
}
],
"meta": {
"query": "<string>",
"returned": 123,
"requested": 123,
"search_type": "market",
"include_expired": true,
"provider_id": "<string>"
}
}{
"detail": "Invalid provider: acme"
}{
"detail": "Invalid API credentials"
}{
"detail": "Invite required"
}{
"detail": [
{}
]
}{
"error": "Rate limit exceeded: 100 per 1 minute"
}{
"detail": "Invalid provider"
}
