Reference example
# Fixed reference example. Playground inputs do not update this sample.
curl --request GET \
--url https://api.aisa.one/apis/v1/polymarket/rewards/markets/0xbd31dc8a20211944f6b70f31557f1001557b59905b7738480ca09bd4532f84af \
--header 'Authorization: Bearer <token>'curl --request GET \
--url https://api.aisa.one/apis/v1/polymarket/rewards/markets/{condition_id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.aisa.one/apis/v1/polymarket/rewards/markets/{condition_id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.aisa.one/apis/v1/polymarket/rewards/markets/{condition_id}', 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.aisa.one/apis/v1/polymarket/rewards/markets/{condition_id}",
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.aisa.one/apis/v1/polymarket/rewards/markets/{condition_id}"
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.aisa.one/apis/v1/polymarket/rewards/markets/{condition_id}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aisa.one/apis/v1/polymarket/rewards/markets/{condition_id}")
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{
"count": 1,
"data": [
{
"condition_id": "0xbd31dc8a20211944f6b70f31557f1001557b59905b7738480ca09bd4532f84af",
"event_slug": "will-trump-win-the-2024-iowa-caucus",
"image": "https://polymarket-upload.s3.us-east-2.amazonaws.com/trump1+copy.png",
"market_competitiveness": 0.42,
"market_slug": "will-trump-win-the-2024-iowa-caucus",
"question": "Will Trump win the 2024 Iowa Caucus?",
"rewards_config": [
{
"asset_address": "0x9c4E1703476E875070EE25b56A58B008CFb8FA78",
"end_date": "2500-12-31",
"id": 1,
"rate_per_day": 0.25,
"start_date": "2024-03-01",
"total_days": 174161,
"total_rewards": 0
},
{
"asset_address": "0x9c4E1703476E875070EE25b56A58B008CFb8FA78",
"end_date": "2024-05-31",
"id": 2,
"rate_per_day": 1,
"start_date": "2024-03-01",
"total_days": 92,
"total_rewards": 92
}
],
"rewards_max_spread": 99,
"rewards_min_size": 10,
"tokens": [
{
"outcome": "YES",
"price": 0.8,
"token_id": "1343197538147866997676250008839231694243646439454152539053893078719042421992"
},
{
"outcome": "NO",
"price": 0.2,
"token_id": "16678291189211314787145083999015737376658799626183230671758641503291735614088"
}
]
}
],
"limit": 100,
"next_cursor": "LTE="
}CLOB
Get raw rewards for a specific market
Returns an array of present and future rewards configured on a market.
When sponsored=true, sponsored daily rates are folded into each config’s
rate_per_day .
Results are paginated (100 items per page). Use next_cursor to fetch subsequent pages. A next_cursor value of “LTE=” indicates the last page.
Returns raw rewards configuration for a specific market.
GET
https://api.aisa.one
/
apis
/
v1
/
polymarket
/
rewards
/
markets
/
{condition_id}
Reference example
# Fixed reference example. Playground inputs do not update this sample.
curl --request GET \
--url https://api.aisa.one/apis/v1/polymarket/rewards/markets/0xbd31dc8a20211944f6b70f31557f1001557b59905b7738480ca09bd4532f84af \
--header 'Authorization: Bearer <token>'curl --request GET \
--url https://api.aisa.one/apis/v1/polymarket/rewards/markets/{condition_id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.aisa.one/apis/v1/polymarket/rewards/markets/{condition_id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.aisa.one/apis/v1/polymarket/rewards/markets/{condition_id}', 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.aisa.one/apis/v1/polymarket/rewards/markets/{condition_id}",
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.aisa.one/apis/v1/polymarket/rewards/markets/{condition_id}"
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.aisa.one/apis/v1/polymarket/rewards/markets/{condition_id}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aisa.one/apis/v1/polymarket/rewards/markets/{condition_id}")
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{
"count": 1,
"data": [
{
"condition_id": "0xbd31dc8a20211944f6b70f31557f1001557b59905b7738480ca09bd4532f84af",
"event_slug": "will-trump-win-the-2024-iowa-caucus",
"image": "https://polymarket-upload.s3.us-east-2.amazonaws.com/trump1+copy.png",
"market_competitiveness": 0.42,
"market_slug": "will-trump-win-the-2024-iowa-caucus",
"question": "Will Trump win the 2024 Iowa Caucus?",
"rewards_config": [
{
"asset_address": "0x9c4E1703476E875070EE25b56A58B008CFb8FA78",
"end_date": "2500-12-31",
"id": 1,
"rate_per_day": 0.25,
"start_date": "2024-03-01",
"total_days": 174161,
"total_rewards": 0
},
{
"asset_address": "0x9c4E1703476E875070EE25b56A58B008CFb8FA78",
"end_date": "2024-05-31",
"id": 2,
"rate_per_day": 1,
"start_date": "2024-03-01",
"total_days": 92,
"total_rewards": 92
}
],
"rewards_max_spread": 99,
"rewards_min_size": 10,
"tokens": [
{
"outcome": "YES",
"price": 0.8,
"token_id": "1343197538147866997676250008839231694243646439454152539053893078719042421992"
},
{
"outcome": "NO",
"price": 0.2,
"token_id": "16678291189211314787145083999015737376658799626183230671758641503291735614088"
}
]
}
],
"limit": 100,
"next_cursor": "LTE="
}Request contract
- Method and path: GET /apis/v1/polymarket/rewards/markets/{condition_id}
- Availability: enabled
- Request URL template:
https://api.aisa.one/apis/v1/polymarket/rewards/markets/{condition_id} - condition_id: path; required
- next_cursor: query; optional
- sponsored: query; optional
{
"operationId": "any_polymarket_clob_apis_v1_polymarket_rewards_ma_06def4",
"method": "GET",
"path": "/apis/v1/polymarket/rewards/markets/{condition_id}",
"servers": [
{
"url": "https://api.aisa.one"
}
],
"parameters": [
{
"description": "The condition ID of the market",
"example": "0xbd31dc8a20211944f6b70f31557f1001557b59905b7738480ca09bd4532f84af",
"in": "path",
"name": "condition_id",
"required": true,
"schema": {
"type": "string"
}
},
{
"description": "Pagination cursor from previous response",
"in": "query",
"name": "next_cursor",
"required": false,
"schema": {
"type": "string"
}
},
{
"description": "If true, folds sponsored daily rates into each config's rate_per_day",
"in": "query",
"name": "sponsored",
"required": false,
"schema": {
"default": false,
"type": "boolean"
}
}
],
"security": [
{
"bearerAuth": []
}
],
"x-aisa-status": "enabled",
"components": {
"securitySchemes": {
"bearerAuth": {
"scheme": "bearer",
"type": "http"
}
}
}
}
Cost and request rules
Published reference price: $0.012 USD per successful request. Your account price may differ; use a request quote where supported.Authorizations
Query Parameters
Response
Successfully retrieved rewards for market