Skip to main content
GET
/
search
Search topics by keyword
curl --request GET \
  --url https://api.seesaw.fun/open/v1/search \
  --header 'Authorization: Bearer <token>'
import requests

url = "https://api.seesaw.fun/open/v1/search"

headers = {"Authorization": "Bearer <token>"}

response = requests.get(url, headers=headers)

print(response.text)
const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};

fetch('https://api.seesaw.fun/open/v1/search', 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://api.seesaw.fun/open/v1/search",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);

$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://api.seesaw.fun/open/v1/search"

req, _ := http.NewRequest("GET", url, nil)

req.Header.Add("Authorization", "Bearer <token>")

res, _ := http.DefaultClient.Do(req)

defer res.Body.Close()
body, _ := io.ReadAll(res.Body)

fmt.Println(string(body))

}
HttpResponse<String> response = Unirest.get("https://api.seesaw.fun/open/v1/search")
.header("Authorization", "Bearer <token>")
.asString();
require 'uri'
require 'net/http'

url = URI("https://api.seesaw.fun/open/v1/search")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'

response = http.request(request)
puts response.read_body
{
  "data": [
    {
      "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "title": "<string>",
      "created_at": "2023-11-07T05:31:56Z",
      "end_time": "2023-11-07T05:31:56Z",
      "comments_count": 123,
      "favorites_count": 123,
      "url": "<string>",
      "options": [
        {
          "id": "<string>",
          "name": "<string>",
          "probability": "<string>",
          "is_winner": true
        }
      ],
      "creator": {
        "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
        "handle": "<string>",
        "nickname": "<string>",
        "avatar_url": "<string>",
        "url": "<string>"
      },
      "total_volume": "<string>",
      "traders_count": 123,
      "voters_count": 123,
      "total_stake": "<string>",
      "votes_visible": true,
      "moderation_status": "<string>"
    }
  ],
  "next_cursor": "<string>",
  "has_more": true
}
{
"error": {
"message": "<string>",
"details": {}
}
}
{
"error": {
"message": "<string>",
"details": {}
}
}
{
"error": {
"message": "<string>",
"details": {}
}
}

Authorizations

Authorization
string
header
required

Personal API key issued per SeeSaw user account: Authorization: Bearer sspat_…. Manage keys on the app API (/v1/users/me/api-keys). Revocation propagates within ~60 seconds (validation cache window).

Query Parameters

query
string
required
type
enum<string>
default:all
Available options:
all,
prediction,
poll
cursor
string

Opaque pagination cursor from a previous response's next_cursor.

limit
integer
default:20

Page size (max 100).

Required range: 1 <= x <= 100

Response

Matching topics

Uniform list shape. next_cursor is null on the last page.

data
object[]
required
next_cursor
string | null
required
has_more
boolean
required