Appearance
Get One Content
GET/public/content/{contentId}Retrieve full details for a specific piece of content, including metadata, statistics, and media attachments.
Endpoint Details
- Authentication: Basic Auth (
Authorization: Basic Base64(AccessKey:SecretKey)) - Access Tier: Gold+
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
contentId | string | Yes | The unique identifier of the content/post. |
accountId | string | Yes | The unique ID of the account. |
Example Request
bash
curl -X GET "https://api.repliz.com/public/content/113958387982006_942538351814577?accountId=680affa5ce12f2f72916f67e" \
-H "Authorization: Basic $(echo -n 'YOUR_ACCESS_KEY:YOUR_SECRET_KEY' | base64)"javascript
import axios from 'axios';
const contentId = '113958387982006_942538351814577';
const response = await axios.get(`https://api.repliz.com/public/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 = '113958387982006_942538351814577';
const response = await fetch(`https://api.repliz.com/public/content/${contentId}`, {
headers: {
'Authorization': `Basic ${credentials}`
}
});
const data = await response.json();
console.log(data);