postiz 2.0.7 → 2.0.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +29 -0
- package/SKILL.md +29 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -172,6 +172,26 @@ postiz posts:delete <post-id>
|
|
|
172
172
|
|
|
173
173
|
---
|
|
174
174
|
|
|
175
|
+
### Analytics
|
|
176
|
+
|
|
177
|
+
**Get platform analytics**
|
|
178
|
+
```bash
|
|
179
|
+
postiz analytics:platform <integration-id>
|
|
180
|
+
postiz analytics:platform <integration-id> -d 30
|
|
181
|
+
```
|
|
182
|
+
|
|
183
|
+
Returns metrics like followers, impressions, and engagement over time for a specific integration/channel. The `-d` flag specifies the number of days to look back (default: 7).
|
|
184
|
+
|
|
185
|
+
**Get post analytics**
|
|
186
|
+
```bash
|
|
187
|
+
postiz analytics:post <post-id>
|
|
188
|
+
postiz analytics:post <post-id> -d 30
|
|
189
|
+
```
|
|
190
|
+
|
|
191
|
+
Returns metrics like likes, comments, shares, and impressions for a specific published post.
|
|
192
|
+
|
|
193
|
+
---
|
|
194
|
+
|
|
175
195
|
### Media Upload
|
|
176
196
|
|
|
177
197
|
**Upload file and get URL**
|
|
@@ -483,6 +503,8 @@ The CLI interacts with these Postiz API endpoints:
|
|
|
483
503
|
| `/public/v1/integrations` | GET | List integrations |
|
|
484
504
|
| `/public/v1/integration-settings/:id` | GET | Get integration settings |
|
|
485
505
|
| `/public/v1/integration-trigger/:id` | POST | Trigger integration tool |
|
|
506
|
+
| `/public/v1/analytics/:integration` | GET | Get platform analytics |
|
|
507
|
+
| `/public/v1/analytics/post/:postId` | GET | Get post analytics |
|
|
486
508
|
| `/public/v1/upload` | POST | Upload media |
|
|
487
509
|
|
|
488
510
|
---
|
|
@@ -528,6 +550,7 @@ src/
|
|
|
528
550
|
└── commands/
|
|
529
551
|
├── posts.ts # Post management commands
|
|
530
552
|
├── integrations.ts # Integration commands
|
|
553
|
+
├── analytics.ts # Analytics commands
|
|
531
554
|
└── upload.ts # Media upload command
|
|
532
555
|
examples/ # Example scripts and JSON files
|
|
533
556
|
package.json
|
|
@@ -583,6 +606,12 @@ postiz posts:list # List posts
|
|
|
583
606
|
postiz posts:delete <id> # Delete post
|
|
584
607
|
postiz upload <file> # Upload media
|
|
585
608
|
|
|
609
|
+
# Analytics
|
|
610
|
+
postiz analytics:platform <id> # Platform analytics (7 days)
|
|
611
|
+
postiz analytics:platform <id> -d 30 # Platform analytics (30 days)
|
|
612
|
+
postiz analytics:post <id> # Post analytics (7 days)
|
|
613
|
+
postiz analytics:post <id> -d 30 # Post analytics (30 days)
|
|
614
|
+
|
|
586
615
|
# Help
|
|
587
616
|
postiz --help # Show help
|
|
588
617
|
postiz posts:create --help # Command help
|
package/SKILL.md
CHANGED
|
@@ -21,6 +21,7 @@ The fundamental pattern for using Postiz CLI:
|
|
|
21
21
|
2. **Fetch** - Use integration tools to retrieve dynamic data (flairs, playlists, companies)
|
|
22
22
|
3. **Prepare** - Upload media files if needed
|
|
23
23
|
4. **Post** - Create posts with content, media, and platform-specific settings
|
|
24
|
+
5. **Analyze** - Track performance with platform and post-level analytics
|
|
24
25
|
|
|
25
26
|
```bash
|
|
26
27
|
# 1. Discover
|
|
@@ -35,6 +36,10 @@ postiz upload image.jpg
|
|
|
35
36
|
|
|
36
37
|
# 4. Post
|
|
37
38
|
postiz posts:create -c "Content" -m "image.jpg" -i "<integration-id>"
|
|
39
|
+
|
|
40
|
+
# 5. Analyze
|
|
41
|
+
postiz analytics:platform <integration-id> -d 30
|
|
42
|
+
postiz analytics:post <post-id> -d 7
|
|
38
43
|
```
|
|
39
44
|
|
|
40
45
|
---
|
|
@@ -112,6 +117,24 @@ postiz posts:list --startDate "2024-01-01T00:00:00Z" --endDate "2024-12-31T23:59
|
|
|
112
117
|
postiz posts:delete <post-id>
|
|
113
118
|
```
|
|
114
119
|
|
|
120
|
+
### Analytics
|
|
121
|
+
|
|
122
|
+
```bash
|
|
123
|
+
# Get platform analytics (default: last 7 days)
|
|
124
|
+
postiz analytics:platform <integration-id>
|
|
125
|
+
|
|
126
|
+
# Get platform analytics for last 30 days
|
|
127
|
+
postiz analytics:platform <integration-id> -d 30
|
|
128
|
+
|
|
129
|
+
# Get post analytics (default: last 7 days)
|
|
130
|
+
postiz analytics:post <post-id>
|
|
131
|
+
|
|
132
|
+
# Get post analytics for last 30 days
|
|
133
|
+
postiz analytics:post <post-id> -d 30
|
|
134
|
+
```
|
|
135
|
+
|
|
136
|
+
Returns an array of metrics (e.g. Followers, Impressions, Likes, Comments) with daily data points and percentage change over the period.
|
|
137
|
+
|
|
115
138
|
### Media Upload
|
|
116
139
|
|
|
117
140
|
**⚠️ IMPORTANT:** Always upload files to Postiz before using them in posts. Many platforms (TikTok, Instagram, YouTube) **require verified URLs** and will reject external links.
|
|
@@ -608,6 +631,12 @@ postiz posts:list # List posts
|
|
|
608
631
|
postiz posts:delete <id> # Delete post
|
|
609
632
|
postiz upload <file> # Upload media
|
|
610
633
|
|
|
634
|
+
# Analytics
|
|
635
|
+
postiz analytics:platform <id> # Platform analytics (7 days)
|
|
636
|
+
postiz analytics:platform <id> -d 30 # Platform analytics (30 days)
|
|
637
|
+
postiz analytics:post <id> # Post analytics (7 days)
|
|
638
|
+
postiz analytics:post <id> -d 30 # Post analytics (30 days)
|
|
639
|
+
|
|
611
640
|
# Help
|
|
612
641
|
postiz --help # Show help
|
|
613
642
|
postiz posts:create --help # Command help
|