Posts
API endpoint for retrieving workspace posts with optional filtering, sorting, and pagination. Requires authentication and posts:view permission.
/postsHeaders
x-api-keystringrequiredYour Track My Posts API key
Query Parameters
workspaceSlugstringrequiredWorkspace slug identifier
Example: my-workspace
querystringSearch query to filter posts by caption, mentions, or hashtags
Example: fitness
sincestringStart date filter for postedAt (YYYY-MM-DD or ISO 8601 format)
Example: 2024-01-01
untilstringEnd date filter for postedAt (YYYY-MM-DD or ISO 8601 format)
Example: 2024-12-31
platformsarrayFilter by platforms (comma-separated or array)
Example: tiktokinstagram
typesarrayFilter by post types (comma-separated or array). Alias: postTypes
Example: videophoto
postTypesarrayFilter by post types (comma-separated or array). Alias for types
Example: video
slugsarrayFilter by post slugs (comma-separated or array)
Example: 123456
creatorarrayFilter by creator slugs (comma-separated or array). Alias: creatorSlugs
Example: 123456
creatorSlugsarrayFilter by creator slugs (comma-separated or array). Alias for creator
Example: 123
accountarrayFilter by account slugs (comma-separated or array). Alias: accountSlugs
Example: 123456
accountSlugsarrayFilter by account slugs (comma-separated or array). Alias for account
Example: 123
pageintegerPage number (1-indexed)
Example: 1
limitintegerNumber of items per page
Example: 20
sortBystringField to sort by
Example: postedAt
sortOrderstringSort order
Example: desc
isTrackedstringFilter by tracked status. true = only tracked posts, false = only untracked posts, null or omitted = all posts
Example: true
isExportbooleanEnable export mode (removes pagination limits)
ignoreLimitbooleanIgnore the 5000 post limit in the base query
ignorePostedAtFilterbooleanDo not filter posts by postedAt range, but still use since/until for stats boundaries
Responses
curl "https://api.trackmyposts.com/posts?workspaceSlug=my-workspace&query=fitness&since=2024-01-01&until=2024-12-31&platforms=tiktok%2Cinstagram&types=video%2Cphoto&postTypes=video&slugs=123%2C456&creator=123%2C456&creatorSlugs=123&account=123%2C456&accountSlugs=123&page=1&limit=20&sortBy=postedAt&sortOrder=desc&isTracked=true&isExport=false&ignoreLimit=false&ignorePostedAtFilter=false" \
-H "x-api-key: YOUR_API_KEY"{
"items": [
{
"id": "post-123",
"workspaceId": "workspace-123",
"accountId": "account-123",
"slug": 123,
"platformPostId": "tiktok_123456",
"platform": "tiktok",
"type": "video",
"postUrl": "https://tiktok.com/@user/video/123456",
"thumbnailUrl": "https://example.com/thumb.jpg",
"videoUrl": "https://example.com/video.mp4",
"caption": "Check out this amazing video! #fitness",
"mentions": [
"@user1"
],
"hashtags": [
"fitness",
"workout"
],
"isPaidPartnership": false,
"postedAt": "2024-01-15T10:30:00.000Z",
"durationMs": 30000,
"soundTitle": "Original Sound",
"soundAuthor": "creator",
"isOriginalSound": true,
"isTracked": true,
"createdAt": "2024-01-15T10:30:05.000Z",
"updatedAt": "2024-01-15T10:30:05.000Z",
"views": 100000,
"likes": 5000,
"comments": 200,
"shares": 150,
"saves": 300,
"engagementRate": 5.5,
"revenueMin": 100,
"revenueMax": 150,
"rpmMin": 1,
"rpmMax": 1.5,
"cost": 50,
"cpm": 0.5,
"profitMin": 50,
"profitMax": 100,
"costSummary": null,
"stats": [],
"account": {
"id": "account-123",
"workspaceId": "workspace-123",
"creatorId": "creator-123",
"accountUrl": "https://tiktok.com/@user",
"platform": "tiktok",
"username": "@user",
"status": "active"
},
"creator": {
"id": "creator-123",
"workspaceId": "workspace-123",
"slug": 123,
"name": "John Doe"
},
"trackingStartedAt": "2024-01-15T10:30:05.000Z",
"lastStatsAt": "2024-01-15T12:00:00.000Z",
"limitedData": false
}
],
"page": 1,
"limit": 20,
"total": 150,
"totalPages": 8,
"hasNext": true,
"hasPrev": false
}Data Structures
Explore all data structures used in this API endpoint
curl "https://api.trackmyposts.com/posts?workspaceSlug=my-workspace&query=fitness&since=2024-01-01&until=2024-12-31&platforms=tiktok%2Cinstagram&types=video%2Cphoto&postTypes=video&slugs=123%2C456&creator=123%2C456&creatorSlugs=123&account=123%2C456&accountSlugs=123&page=1&limit=20&sortBy=postedAt&sortOrder=desc&isTracked=true&isExport=false&ignoreLimit=false&ignorePostedAtFilter=false" \
-H "x-api-key: YOUR_API_KEY"{
"items": [
{
"id": "post-123",
"workspaceId": "workspace-123",
"accountId": "account-123",
"slug": 123,
"platformPostId": "tiktok_123456",
"platform": "tiktok",
"type": "video",
"postUrl": "https://tiktok.com/@user/video/123456",
"thumbnailUrl": "https://example.com/thumb.jpg",
"videoUrl": "https://example.com/video.mp4",
"caption": "Check out this amazing video! #fitness",
"mentions": [
"@user1"
],
"hashtags": [
"fitness",
"workout"
],
"isPaidPartnership": false,
"postedAt": "2024-01-15T10:30:00.000Z",
"durationMs": 30000,
"soundTitle": "Original Sound",
"soundAuthor": "creator",
"isOriginalSound": true,
"isTracked": true,
"createdAt": "2024-01-15T10:30:05.000Z",
"updatedAt": "2024-01-15T10:30:05.000Z",
"views": 100000,
"likes": 5000,
"comments": 200,
"shares": 150,
"saves": 300,
"engagementRate": 5.5,
"revenueMin": 100,
"revenueMax": 150,
"rpmMin": 1,
"rpmMax": 1.5,
"cost": 50,
"cpm": 0.5,
"profitMin": 50,
"profitMax": 100,
"costSummary": null,
"stats": [],
"account": {
"id": "account-123",
"workspaceId": "workspace-123",
"creatorId": "creator-123",
"accountUrl": "https://tiktok.com/@user",
"platform": "tiktok",
"username": "@user",
"status": "active"
},
"creator": {
"id": "creator-123",
"workspaceId": "workspace-123",
"slug": 123,
"name": "John Doe"
},
"trackingStartedAt": "2024-01-15T10:30:05.000Z",
"lastStatsAt": "2024-01-15T12:00:00.000Z",
"limitedData": false
}
],
"page": 1,
"limit": 20,
"total": 150,
"totalPages": 8,
"hasNext": true,
"hasPrev": false
}