List comments
curl --request GET \
--url https://gamma-api.polymarket.com/commentsimport requests
url = "https://gamma-api.polymarket.com/comments"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://gamma-api.polymarket.com/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://gamma-api.polymarket.com/comments",
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://gamma-api.polymarket.com/comments"
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://gamma-api.polymarket.com/comments")
.asString();require 'uri'
require 'net/http'
url = URI("https://gamma-api.polymarket.com/comments")
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[
{
"id": "<string>",
"body": "<string>",
"parentEntityType": "<string>",
"parentEntityID": 123,
"parentCommentID": "<string>",
"userAddress": "<string>",
"replyAddress": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"profile": {
"name": "<string>",
"pseudonym": "<string>",
"displayUsernamePublic": true,
"bio": "<string>",
"isMod": true,
"isCreator": true,
"proxyWallet": "<string>",
"baseAddress": "<string>",
"profileImage": "<string>",
"profileImageOptimized": {
"id": "<string>",
"imageUrlSource": "<string>",
"imageUrlOptimized": "<string>",
"imageSizeKbSource": 123,
"imageSizeKbOptimized": 123,
"imageOptimizedComplete": true,
"imageOptimizedLastUpdated": "<string>",
"relID": 123,
"field": "<string>",
"relname": "<string>"
},
"positions": [
{
"tokenId": "<string>",
"positionSize": "<string>"
}
]
},
"reactions": [
{
"id": "<string>",
"commentID": 123,
"reactionType": "<string>",
"icon": "<string>",
"userAddress": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"profile": {
"name": "<string>",
"pseudonym": "<string>",
"displayUsernamePublic": true,
"bio": "<string>",
"isMod": true,
"isCreator": true,
"proxyWallet": "<string>",
"baseAddress": "<string>",
"profileImage": "<string>",
"profileImageOptimized": {
"id": "<string>",
"imageUrlSource": "<string>",
"imageUrlOptimized": "<string>",
"imageSizeKbSource": 123,
"imageSizeKbOptimized": 123,
"imageOptimizedComplete": true,
"imageOptimizedLastUpdated": "<string>",
"relID": 123,
"field": "<string>",
"relname": "<string>"
},
"positions": [
{
"tokenId": "<string>",
"positionSize": "<string>"
}
]
}
}
],
"reportCount": 123,
"reactionCount": 123
}
]List comments
GET
/
comments
List comments
curl --request GET \
--url https://gamma-api.polymarket.com/commentsimport requests
url = "https://gamma-api.polymarket.com/comments"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://gamma-api.polymarket.com/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://gamma-api.polymarket.com/comments",
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://gamma-api.polymarket.com/comments"
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://gamma-api.polymarket.com/comments")
.asString();require 'uri'
require 'net/http'
url = URI("https://gamma-api.polymarket.com/comments")
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[
{
"id": "<string>",
"body": "<string>",
"parentEntityType": "<string>",
"parentEntityID": 123,
"parentCommentID": "<string>",
"userAddress": "<string>",
"replyAddress": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"profile": {
"name": "<string>",
"pseudonym": "<string>",
"displayUsernamePublic": true,
"bio": "<string>",
"isMod": true,
"isCreator": true,
"proxyWallet": "<string>",
"baseAddress": "<string>",
"profileImage": "<string>",
"profileImageOptimized": {
"id": "<string>",
"imageUrlSource": "<string>",
"imageUrlOptimized": "<string>",
"imageSizeKbSource": 123,
"imageSizeKbOptimized": 123,
"imageOptimizedComplete": true,
"imageOptimizedLastUpdated": "<string>",
"relID": 123,
"field": "<string>",
"relname": "<string>"
},
"positions": [
{
"tokenId": "<string>",
"positionSize": "<string>"
}
]
},
"reactions": [
{
"id": "<string>",
"commentID": 123,
"reactionType": "<string>",
"icon": "<string>",
"userAddress": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"profile": {
"name": "<string>",
"pseudonym": "<string>",
"displayUsernamePublic": true,
"bio": "<string>",
"isMod": true,
"isCreator": true,
"proxyWallet": "<string>",
"baseAddress": "<string>",
"profileImage": "<string>",
"profileImageOptimized": {
"id": "<string>",
"imageUrlSource": "<string>",
"imageUrlOptimized": "<string>",
"imageSizeKbSource": 123,
"imageSizeKbOptimized": 123,
"imageOptimizedComplete": true,
"imageOptimizedLastUpdated": "<string>",
"relID": 123,
"field": "<string>",
"relname": "<string>"
},
"positions": [
{
"tokenId": "<string>",
"positionSize": "<string>"
}
]
}
}
],
"reportCount": 123,
"reactionCount": 123
}
]Query Parameters
Required range:
x >= 0Required range:
x >= 0Comma-separated list of fields to order by
Available options:
Event, Series, market Response
200 - application/json
List of comments
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Was this page helpful?
⌘I