Endpoints
List Comments
List the comments on a post that you published with Mallary.
GET
/
api
/
v1
/
comments
List comments on a published post
curl --request GET \
--url https://mallary.ai/api/v1/comments \
--header 'Authorization: Bearer <token>'import requests
url = "https://mallary.ai/api/v1/comments"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://mallary.ai/api/v1/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://mallary.ai/api/v1/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://mallary.ai/api/v1/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://mallary.ai/api/v1/comments")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://mallary.ai/api/v1/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{
"status": "ok",
"data": {
"post_id": 123,
"platform": "facebook",
"remote_post_id": "<string>",
"comments": [
{
"id": "<string>",
"platform": "facebook",
"post_id": 123,
"remote_post_id": "<string>",
"text": "<string>",
"author_name": "<string>",
"author_id": "<string>",
"author_username": "<string>",
"created_at": "<string>",
"can_reply": true,
"is_own": true
}
],
"supported_platforms": [
"facebook"
],
"platforms": [
"facebook"
],
"unsupported_platforms": [
"<string>"
],
"platform_errors": [
{
"post_id": 123,
"platform": "facebook",
"http_status": 123,
"code": "<string>",
"message": "<string>"
}
]
}
}Available on all plans.
Use
post_id with the Mallary job/post ID returned by the posts API.
If that ID belongs to a grouped multi-platform post and you omit platform, Mallary reads every supported platform job in the group. It then returns a combined comment list.
The response uses platform: "multiple", and each comment includes its concrete platform and post_id. For platforms that Mallary cannot read, platform_errors can include the read failures.
If you want one platform from a grouped post, pass platform. Mallary then routes the request to the matching sibling job in that group.
When the platform returns them, Mallary includes own/initial comments. When Mallary identifies the author as the connected account, these comments have is_own: true and can_reply: false.
For a LinkedIn Page post, Mallary reads comments for the Page you selected when you connected LinkedIn. A comment can include the person’s name and LinkedIn ID when LinkedIn sends them. LinkedIn may ask you to reconnect once so Mallary can read Page comments.Query Parameters
Last modified on September 8, 2026
Was this page helpful?
List comments on a published post
curl --request GET \
--url https://mallary.ai/api/v1/comments \
--header 'Authorization: Bearer <token>'import requests
url = "https://mallary.ai/api/v1/comments"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://mallary.ai/api/v1/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://mallary.ai/api/v1/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://mallary.ai/api/v1/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://mallary.ai/api/v1/comments")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://mallary.ai/api/v1/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{
"status": "ok",
"data": {
"post_id": 123,
"platform": "facebook",
"remote_post_id": "<string>",
"comments": [
{
"id": "<string>",
"platform": "facebook",
"post_id": 123,
"remote_post_id": "<string>",
"text": "<string>",
"author_name": "<string>",
"author_id": "<string>",
"author_username": "<string>",
"created_at": "<string>",
"can_reply": true,
"is_own": true
}
],
"supported_platforms": [
"facebook"
],
"platforms": [
"facebook"
],
"unsupported_platforms": [
"<string>"
],
"platform_errors": [
{
"post_id": 123,
"platform": "facebook",
"http_status": 123,
"code": "<string>",
"message": "<string>"
}
]
}
}
