> 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 Page Comments

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

Get paginated comments for a page.

**Authentication:** Public with visitor fallback.

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

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

**Response:** Array of comment objects with author info, content, timestamps, and like counts.

**Errors:**
- `404` — Page not found

Reference: https://customerhub.com/api/api-reference/pages/get-page-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) — Page ID

### Query parameters

- `page` (string, optional)

## 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"
      }
    ],
    "paging": {
      "count": 1,
      "next": null,
      "page": 1,
      "pages": 1,
      "per_page": 30,
      "previous": null
    }
  }
}
```

**SDK Code**

```python Pages_getPageComments_example
import requests

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

querystring = {"page":"1"}

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

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

print(response.json())
```

```javascript Pages_getPageComments_example
const url = 'https://api.customerhub.com/web_api/pages/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 Pages_getPageComments_example
package main

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

func main() {

	url := "https://api.customerhub.com/web_api/pages/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 Pages_getPageComments_example
require 'uri'
require 'net/http'

url = URI("https://api.customerhub.com/web_api/pages/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 Pages_getPageComments_example
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

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

```php Pages_getPageComments_example
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

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

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

```csharp Pages_getPageComments_example
using RestSharp;

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

```swift Pages_getPageComments_example
import Foundation

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

let request = NSMutableURLRequest(url: NSURL(string: "https://api.customerhub.com/web_api/pages/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()
```