Skip to content

Get Comment Sync ​

GEThttps://api.repliz.com/public/listener

Retrieve the comment syncs of your accounts, with the progress of each one.

Endpoint Details ​

  • Authentication: Basic Auth (Authorization: Basic Base64(AccessKey:SecretKey)) or Bearer token from Login with Repliz
  • Scope (Bearer only): listener:read (or listener:write)
  • Access Tier: Gold+

Parameters ​

ParameterTypeRequiredDescription
pagenumberYesPage to return, starting from 1. Comment syncs are sorted newest first.
limitnumberYesItems per page, from 1 to 100, for example 20. The response says how many pages there are in totalPages.
accountIdsstring[]NoOnly return items of these accounts, as _ids from Get Account. Send each one as accountIds[]=ID, which is what Axios does with an array. All accounts when left out.
searchstringNoMatches the title, caption, or URL of the post, case-insensitive.

Example Request ​

bash
curl -X GET "https://api.repliz.com/public/listener?page=1&limit=20" \
  -H "Authorization: Basic $(echo -n 'YOUR_ACCESS_KEY:YOUR_SECRET_KEY' | base64)"
javascript
import axios from 'axios';

const response = await axios.get('https://api.repliz.com/public/listener', {
  params: {
    page: 1,
    limit: 20,
  },
  auth: {
    username: 'YOUR_ACCESS_KEY',
    password: 'YOUR_SECRET_KEY',
  },
});

console.log(response.data);
javascript
const credentials = btoa('YOUR_ACCESS_KEY:YOUR_SECRET_KEY');

const response = await fetch('https://api.repliz.com/public/listener?page=1&limit=20', {
  headers: {
    Authorization: `Basic ${credentials}`,
  },
});

const data = await response.json();
console.log(data);

Response ​

FieldTypeDescription
_idstringID of the comment sync, used by Update Status and Remove.
platformstringPlatform of the account: instagram, facebook, threads, tiktok, youtube, or linkedin.
contentIdstringID of the post on the platform.
statusstringactive or paused.
contentobjectThe post as it was when the sync was created, the same shape as Get One Content.
cursor.isSweptbooleanfalse while Repliz is still going through the old comments, true once it only checks for comments the platform did not send.
cursor.scannednumberHow many old comments have been checked so far.
intervalnumberMinutes until the next check. It drops while missed comments are found and grows while it's quiet.
nextAtstringWhen the next check runs.
syncedAtstringWhen the last check ran. Missing until the first check.
totalSyncednumberHow many comments the sync has added to the comment inbox.
errorMessagestringThe last error from the platform, for example an expired token. Empty when the last check went fine.
heldUntilstringWhen a sync on hold continues by itself, or null. See Platform limits.
heldReasonstringWhy it's on hold: read_limit, action_limit, or rate_limit. Empty when it isn't.
json
{
  "docs": [
    {
      "_id": "6913a5c2e4b0a1f2c3d4e5f6",
      "platform": "instagram",
      "contentId": "18082157540400777",
      "status": "active",
      "content": {
        "id": "18082157540400777",
        "title": "",
        "description": "Episode 13",
        "topic": "",
        "type": "video",
        "owner": {
          "id": "17841400537754814",
          "name": "Misbahul Munir",
          "picture": ""
        },
        "medias": [],
        "url": "https://instagram.com/p/DfmMobMz8kB",
        "createdAt": "2026-11-11T08:00:00.000Z"
      },
      "cursor": {
        "scanned": 340,
        "isSwept": false
      },
      "interval": 5,
      "nextAt": "2026-11-11T14:05:00.000Z",
      "syncedAt": "2026-11-11T14:00:00.000Z",
      "totalSynced": 48,
      "errorMessage": "",
      "heldUntil": null,
      "heldReason": "",
      "accountId": "680affa5ce12f2f72916f67e",
      "account": {
        "_id": "680affa5ce12f2f72916f67e",
        "name": "Misbahul Munir",
        "username": "munir416",
        "type": "instagram",
        "id": "680affa5ce12f2f72916f67e"
      },
      "userId": "680aff8bce12f2f72916f67a",
      "createdAt": "2026-11-11T14:00:00.000Z",
      "updatedAt": "2026-11-11T14:00:00.000Z",
      "id": "6913a5c2e4b0a1f2c3d4e5f6"
    }
  ],
  "totalDocs": 1,
  "limit": 20,
  "totalPages": 1,
  "page": 1,
  "pagingCounter": 1,
  "hasPrevPage": false,
  "hasNextPage": false,
  "prevPage": null,
  "nextPage": null
}
json
{
  "code": 401,
  "message": "unauthorized"
}