Skip to content

Get Content Threads by ID ​

GEThttps://api.repliz.com/public/research/threads/content/{contentId}

Get one Threads post from its id. Use it to read the post a reply answers: when a post from the Research API has additionalInfo.isReply true, pass its additionalInfo.parentId or additionalInfo.rootId as contentId.

Endpoint Details ​

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

Parameters ​

ParameterTypeRequiredDescription
contentIdstringYesID of the Threads post, numbers only: the id of a post from the Research API, or the additionalInfo.parentId or additionalInfo.rootId of a reply. The code in a post's link is not its ID; for a link, use Get Content Threads by URL.
accountIdstringYesID of a connected Threads account, the _id from Get Account. The lookup runs with its access.

Example Request ​

bash
curl -X GET "https://api.repliz.com/public/research/threads/content/18064773218402915?accountId=680affa5ce12f2f72916f67e" \
  -H "Authorization: Basic $(echo -n 'YOUR_ACCESS_KEY:YOUR_SECRET_KEY' | base64)"
javascript
import axios from 'axios';

const contentId = '18064773218402915';

const response = await axios.get(
  `https://api.repliz.com/public/research/threads/content/${contentId}`,
  {
    params: {
      accountId: '680affa5ce12f2f72916f67e',
    },
    auth: {
      username: 'YOUR_ACCESS_KEY',
      password: 'YOUR_SECRET_KEY',
    },
  },
);

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

const contentId = '18064773218402915';

const response = await fetch(
  `https://api.repliz.com/public/research/threads/content/${contentId}?accountId=680affa5ce12f2f72916f67e`,
  {
    headers: {
      Authorization: `Basic ${credentials}`,
    },
  },
);

const data = await response.json();
console.log(data);
javascript
import axios from 'axios';

const auth = { username: 'YOUR_ACCESS_KEY', password: 'YOUR_SECRET_KEY' };
const accountId = '680affa5ce12f2f72916f67e';
const url = 'https://api.repliz.com/public/research/threads/content';

const { data } = await axios.get(`${url}/search`, {
  params: { accountId, search: 'kopi', sort: 'RECENT' },
  auth,
});

for (const post of data.docs) {
  const { isReply, parentId } = post.additionalInfo;
  if (!isReply || !parentId) continue;

  const { data: parent } = await axios.get(`${url}/${parentId}`, {
    params: { accountId },
    auth,
  });

  console.log(parent.description, '→', post.description);
}

Response ​

The post has the same fields as in Search Content Threads. When it is a reply too, its own additionalInfo.parentId is the next post up, and additionalInfo.rootId the first post of the thread.

json
{
  "id": "18064773218402915",
  "title": "",
  "description": "Siapa yang malam ini masih kerja?",
  "topic": "Kerja",
  "type": "text",
  "owner": {
    "id": "",
    "name": "replizofficial",
    "picture": "https://scontent.cdninstagram.com/v/t51.82787-19/551871521_17926195818103788..."
  },
  "medias": [],
  "url": "https://www.threads.com/@replizofficial/post/DTF5xYzEshK",
  "additionalInfo": {
    "isReply": true,
    "parentId": "17921836450081276",
    "rootId": "17921836450081276"
  },
  "createdAt": "2026-01-04T14:32:07.000Z"
}
json
{
  "code": 400,
  "message": "contentId must be a Threads post id like 18439214386190993"
}
json
{
  "code": 404,
  "message": "account not found"
}
json
{
  "code": 404,
  "message": "content not found"
}
json
{
  "code": 401,
  "message": "unauthorized"
}

A post Threads doesn't let the account read, such as a deleted one, fails with Threads' own error and message. A repost returns 404 content not found.