Target Data API#
API lay du lieu target voi nhieu bo loc.
Base URL: https://app.socialking.vn/api/v1
Rate Limit: 50 req/sec
1. Danh sach Target Data#
GET /fb/target-data/get-all
#
Auth: API Key
Query Parameters:
| Param | Type | Default | Mo ta |
|---|---|---|---|
_s | string | - | Tim kiem |
_page | number | 1 | Trang |
_limit | number | 10 | Items/trang |
_order | string | desc | asc | desc |
_fbTargetId | UUID | - | Filter theo target cu the |
_type | string | - | Filter 1 type: user | group | page | post | comment |
_types | string | - | Nhieu types, cach nhau boi dau phay |
_has_url | boolean | - | Chi lay items co URL |
_has_metadata | boolean | - | Chi lay items co metadata |
_start_date | string | - | ISO date, bat dau khoang thoi gian |
_end_date | string | - | ISO date, ket thuc khoang thoi gian |
Response (200):
{
"success": true,
"pagination": {
"page": 1,
"limit": 10,
"total": 50,
"totalPages": 5
},
"targetData": [
{
"id": "target-data-uuid",
"type": "group",
"status": "active",
"facebook_id": "123456789",
"name": "Nhom Mua Ban HN",
"url": "https://facebook.com/groups/123456789",
"note": "Nhom lon, nhieu thanh vien",
"createdAt": "2026-03-30T10:00:00Z",
"updatedAt": "2026-03-30T10:00:00Z",
"target": {
"id": "target-uuid",
"name": "Target Marketing",
"type": "group",
"status": "active"
}
}
],
"appliedFilters": {
"fbTargetId": null,
"type": null,
"types": [],
"hasUrl": true,
"hasMetadata": false,
"dateRange": null
}
}