List comments
curl --request GET \
--url https://api.aisa.one/apis/v1/polymarket/comments \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.aisa.one/apis/v1/polymarket/comments"
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/comments', 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/comments",
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/comments"
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/comments")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aisa.one/apis/v1/polymarket/comments")
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[
{
"body": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"id": "<string>",
"parentCommentID": "<string>",
"parentEntityID": 123,
"parentEntityType": "<string>",
"profile": {
"baseAddress": "<string>",
"bio": "<string>",
"displayUsernamePublic": true,
"isCreator": true,
"isMod": true,
"name": "<string>",
"positions": [
{
"positionSize": "<string>",
"tokenId": "<string>"
}
],
"profileImage": "<string>",
"profileImageOptimized": {
"field": "<string>",
"id": "<string>",
"imageOptimizedComplete": true,
"imageOptimizedLastUpdated": "<string>",
"imageSizeKbOptimized": 123,
"imageSizeKbSource": 123,
"imageUrlOptimized": "<string>",
"imageUrlSource": "<string>",
"relID": 123,
"relname": "<string>"
},
"proxyWallet": "<string>",
"pseudonym": "<string>"
},
"reactionCount": 123,
"reactions": [
{
"commentID": 123,
"createdAt": "2023-11-07T05:31:56Z",
"icon": "<string>",
"id": "<string>",
"profile": {
"baseAddress": "<string>",
"bio": "<string>",
"displayUsernamePublic": true,
"isCreator": true,
"isMod": true,
"name": "<string>",
"positions": [
{
"positionSize": "<string>",
"tokenId": "<string>"
}
],
"profileImage": "<string>",
"profileImageOptimized": {
"field": "<string>",
"id": "<string>",
"imageOptimizedComplete": true,
"imageOptimizedLastUpdated": "<string>",
"imageSizeKbOptimized": 123,
"imageSizeKbSource": 123,
"imageUrlOptimized": "<string>",
"imageUrlSource": "<string>",
"relID": 123,
"relname": "<string>"
},
"proxyWallet": "<string>",
"pseudonym": "<string>"
},
"reactionType": "<string>",
"userAddress": "<string>"
}
],
"replyAddress": "<string>",
"reportCount": 123,
"updatedAt": "2023-11-07T05:31:56Z",
"userAddress": "<string>"
}
]Gamma
List comments
List comments.
GET
https://api.aisa.one
/
apis
/
v1
/
polymarket
/
comments
List comments
curl --request GET \
--url https://api.aisa.one/apis/v1/polymarket/comments \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.aisa.one/apis/v1/polymarket/comments"
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/comments', 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/comments",
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/comments"
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/comments")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aisa.one/apis/v1/polymarket/comments")
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[
{
"body": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"id": "<string>",
"parentCommentID": "<string>",
"parentEntityID": 123,
"parentEntityType": "<string>",
"profile": {
"baseAddress": "<string>",
"bio": "<string>",
"displayUsernamePublic": true,
"isCreator": true,
"isMod": true,
"name": "<string>",
"positions": [
{
"positionSize": "<string>",
"tokenId": "<string>"
}
],
"profileImage": "<string>",
"profileImageOptimized": {
"field": "<string>",
"id": "<string>",
"imageOptimizedComplete": true,
"imageOptimizedLastUpdated": "<string>",
"imageSizeKbOptimized": 123,
"imageSizeKbSource": 123,
"imageUrlOptimized": "<string>",
"imageUrlSource": "<string>",
"relID": 123,
"relname": "<string>"
},
"proxyWallet": "<string>",
"pseudonym": "<string>"
},
"reactionCount": 123,
"reactions": [
{
"commentID": 123,
"createdAt": "2023-11-07T05:31:56Z",
"icon": "<string>",
"id": "<string>",
"profile": {
"baseAddress": "<string>",
"bio": "<string>",
"displayUsernamePublic": true,
"isCreator": true,
"isMod": true,
"name": "<string>",
"positions": [
{
"positionSize": "<string>",
"tokenId": "<string>"
}
],
"profileImage": "<string>",
"profileImageOptimized": {
"field": "<string>",
"id": "<string>",
"imageOptimizedComplete": true,
"imageOptimizedLastUpdated": "<string>",
"imageSizeKbOptimized": 123,
"imageSizeKbSource": 123,
"imageUrlOptimized": "<string>",
"imageUrlSource": "<string>",
"relID": 123,
"relname": "<string>"
},
"proxyWallet": "<string>",
"pseudonym": "<string>"
},
"reactionType": "<string>",
"userAddress": "<string>"
}
],
"replyAddress": "<string>",
"reportCount": 123,
"updatedAt": "2023-11-07T05:31:56Z",
"userAddress": "<string>"
}
]请求规范
- 方法与路径: GET /apis/v1/polymarket/comments
- 可用状态: enabled
- 请求 URL 模板:
https://api.aisa.one/apis/v1/polymarket/comments - ascending: query; 可选
- get_positions: query; 可选
- holders_only: query; 可选
- limit: query; 可选
- offset: query; 可选
- order: query; 可选
- parent_entity_id: query; 可选
- parent_entity_type: query; 可选
{
"operationId": "any_polymarket_gamma_apis_v1_polymarket_comments",
"method": "GET",
"path": "/apis/v1/polymarket/comments",
"servers": [
{
"url": "https://api.aisa.one"
}
],
"parameters": [
{
"in": "query",
"name": "ascending",
"schema": {
"type": "boolean"
}
},
{
"in": "query",
"name": "get_positions",
"schema": {
"type": "boolean"
}
},
{
"in": "query",
"name": "holders_only",
"schema": {
"type": "boolean"
}
},
{
"in": "query",
"name": "limit",
"schema": {
"minimum": 0,
"type": "integer"
}
},
{
"in": "query",
"name": "offset",
"schema": {
"minimum": 0,
"type": "integer"
}
},
{
"description": "Comma-separated list of fields to order by",
"in": "query",
"name": "order",
"schema": {
"type": "string"
}
},
{
"in": "query",
"name": "parent_entity_id",
"schema": {
"type": "integer"
}
},
{
"in": "query",
"name": "parent_entity_type",
"schema": {
"enum": [
"Event",
"Series",
"market"
],
"type": "string"
}
}
],
"security": [
{
"bearerAuth": []
}
],
"x-aisa-status": "enabled",
"components": {
"securitySchemes": {
"bearerAuth": {
"scheme": "bearer",
"type": "http"
}
}
}
}
费用与请求规则
公开参考价格:每次成功请求 $0.00044 USD。 账户适用价格可能不同;支持报价的接口可按实际请求获取报价。授权
查询参数
响应
List of comments