> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://customerhub.com/api/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://customerhub.com/api/_mcp/server.

# Get Product Comments

GET https://api.customerhub.com/web_api/products/{id}/comments

List the comment thread on a product, newest first.

**Authentication:** Public with visitor fallback — visitors may read when `public_content` is enabled.

**Feature gate:** Requires `products` feature enabled.

**Path parameters:**
- `id` (required) — Product ID

**Query parameters:**
- `page` (optional, default 1) — Page number (50 comments per page)

**Response:** A JSON array of comment objects (not wrapped in `data`). Each comment includes nested replies, the authoring user/admin, likes, and `parent_context`.

**Errors:**
- `404` — Product not found in this app

Reference: https://customerhub.com/api/api-reference/products-library/get-product-comments

## Authentication

- `Authorization` header (bearer token, required) — Bearer authentication of the form `Bearer <token>`, where token is your auth token.

## Request

### Path parameters

- `id` (string, required)

### Query parameters

- `page` (string, optional) — Page number (50 comments per page)

## Response

### 200

OK

## Examples

**Response**

```json
{
  "data": {
    "comments": [
      {
        "admin": null,
        "admin_comment": false,
        "admin_content": null,
        "admin_id": null,
        "app_id": "dc49d1a0-3ede-40fb-91c3-7198d7e9ebde",
        "attachments": [],
        "comments": [],
        "comments_count": 0,
        "content": "Helpful page.",
        "cosmic_id": "supernova-066e",
        "cosmic_tier": 1,
        "created_at": "2026-09-16T15:32:13Z",
        "date": "just now",
        "id": "5b1e961d-cd2a-41aa-8d06-ef23b9df2c1d",
        "likes": [],
        "likes_count": 0,
        "parent_context": {
          "product_slug": "getting-started",
          "slug": "welcome",
          "title": "Welcome",
          "type": "Page"
        },
        "parent_id": "61243d86-e5d5-466f-b4fe-c09787380316",
        "parent_type": "Page",
        "pinned": false,
        "pinned_at": null,
        "updated_at": "2026-09-16T15:32:13Z",
        "user": {
          "avatar_media_id": null,
          "avatar_url": null,
          "bio": null,
          "cdata": {},
          "cover_image_url": null,
          "created_at": "2026-09-16T15:32:12Z",
          "email": "jane@example.com",
          "engagement_score": 0,
          "facebook": null,
          "first_name": "Jane",
          "goal": null,
          "goal_author": null,
          "goal_highlights": [],
          "goal_history": [],
          "goal_updated_at": null,
          "id": "506e87d8-d848-4730-832a-9602f19d671d",
          "initials": "JS",
          "instagram": null,
          "last_name": "Smith",
          "last_seen_at": null,
          "linkedin": null,
          "name": "Jane Smith",
          "otp_enabled": false,
          "phone": null,
          "settings": {},
          "status": "active",
          "suspended_until": null,
          "updated_at": "2026-09-16T15:32:12Z",
          "website": null,
          "x_twitter": null
        },
        "user_comment": false,
        "user_id": "506e87d8-d848-4730-832a-9602f19d671d"
      },
      {
        "admin": null,
        "admin_comment": false,
        "admin_content": null,
        "admin_id": null,
        "app_id": "dc49d1a0-3ede-40fb-91c3-7198d7e9ebde",
        "attachments": [],
        "comments": [],
        "comments_count": 0,
        "content": "Loved this product.",
        "cosmic_id": "antares-5f3d",
        "cosmic_tier": 1,
        "created_at": "2026-09-16T15:32:13Z",
        "date": "just now",
        "id": "72b44003-5e86-489d-9a54-ae8c39e7802b",
        "likes": [],
        "likes_count": 0,
        "parent_context": {
          "slug": "getting-started",
          "title": "Getting Started",
          "type": "Product"
        },
        "parent_id": "276c0669-64b7-4294-a8d3-30e5f1f77b6c",
        "parent_type": "Product",
        "pinned": false,
        "pinned_at": null,
        "updated_at": "2026-09-16T15:32:13Z",
        "user": {
          "avatar_media_id": null,
          "avatar_url": null,
          "bio": null,
          "cdata": {},
          "cover_image_url": null,
          "created_at": "2026-09-16T15:32:12Z",
          "email": "jane@example.com",
          "engagement_score": 0,
          "facebook": null,
          "first_name": "Jane",
          "goal": null,
          "goal_author": null,
          "goal_highlights": [],
          "goal_history": [],
          "goal_updated_at": null,
          "id": "506e87d8-d848-4730-832a-9602f19d671d",
          "initials": "JS",
          "instagram": null,
          "last_name": "Smith",
          "last_seen_at": null,
          "linkedin": null,
          "name": "Jane Smith",
          "otp_enabled": false,
          "phone": null,
          "settings": {},
          "status": "active",
          "suspended_until": null,
          "updated_at": "2026-09-16T15:32:12Z",
          "website": null,
          "x_twitter": null
        },
        "user_comment": false,
        "user_id": "506e87d8-d848-4730-832a-9602f19d671d"
      }
    ],
    "paging": {
      "count": 2,
      "next": null,
      "page": 1,
      "pages": 1,
      "per_page": 30,
      "previous": null
    }
  }
}
```

**SDK Code**

```python Products & Library_getProductComments_example
import requests

url = "https://api.customerhub.com/web_api/products/id/comments"

querystring = {"page":"1"}

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

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

print(response.json())
```

```javascript Products & Library_getProductComments_example
const url = 'https://api.customerhub.com/web_api/products/id/comments?page=1';
const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go Products & Library_getProductComments_example
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "https://api.customerhub.com/web_api/products/id/comments?page=1"

	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(res)
	fmt.Println(string(body))

}
```

```ruby Products & Library_getProductComments_example
require 'uri'
require 'net/http'

url = URI("https://api.customerhub.com/web_api/products/id/comments?page=1")

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
```

```java Products & Library_getProductComments_example
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.get("https://api.customerhub.com/web_api/products/id/comments?page=1")
  .header("Authorization", "Bearer <token>")
  .asString();
```

```php Products & Library_getProductComments_example
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://api.customerhub.com/web_api/products/id/comments?page=1', [
  'headers' => [
    'Authorization' => 'Bearer <token>',
  ],
]);

echo $response->getBody();
```

```csharp Products & Library_getProductComments_example
using RestSharp;

var client = new RestClient("https://api.customerhub.com/web_api/products/id/comments?page=1");
var request = new RestRequest(Method.GET);
request.AddHeader("Authorization", "Bearer <token>");
IRestResponse response = client.Execute(request);
```

```swift Products & Library_getProductComments_example
import Foundation

let headers = ["Authorization": "Bearer <token>"]

let request = NSMutableURLRequest(url: NSURL(string: "https://api.customerhub.com/web_api/products/id/comments?page=1")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```