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:

ParamTypeDefaultMo ta
_sstring-Tim kiem
_pagenumber1Trang
_limitnumber10Items/trang
_orderstringdescasc | desc
_fbTargetIdUUID-Filter theo target cu the
_typestring-Filter 1 type: user | group | page | post | comment
_typesstring-Nhieu types, cach nhau boi dau phay
_has_urlboolean-Chi lay items co URL
_has_metadataboolean-Chi lay items co metadata
_start_datestring-ISO date, bat dau khoang thoi gian
_end_datestring-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
  }
}