SuperAPI AI 工具集

postiz

营销与增长

查看项目

更新于 10-16 07:11

技能介绍

用途

Postiz 是一款用于社交媒体与聊天平台发帖排期的工具,可将内容定时发布到 28 个以上渠道,包括 X、LinkedIn、LinkedIn Page、Reddit、Instagram、Facebook Page、Threads、YouTube、Google My Business、TikTok、Pinterest、Dribbble、Discord、Slack、Kick、Twitch、Mastodon、Bluesky、Lemmy、Farcaster、Telegram、Nostr、VK、Medium、Dev.to、Hashnode、WordPress、ListMonk。

主要能力

通过公开 API,Postiz 提供以下操作:

  • 获取已添加的全部渠道(integrations)
  • 查询某个渠道的下一个可用发布时段(find-slot)
  • 上传新文件(form-data 方式)
  • 从已有 URL 上传文件
  • 获取帖子列表(可按起止日期与客户筛选)
  • 创建排期帖子
  • 删除帖子

使用方式

获取 API Key

访问 https://platform.postiz.com/settings ,点击 "Settings",再点击 "Reveal" 获取 API Key。

设置环境变量

export POSTIZ_API_KEY="your-api-key"

获取所有已添加渠道

curl -X GET "https://api.postiz.com/public/v1/integrations"
-H "Authorization: $POSTIZ_API_KEY"

获取渠道的下一个可用时段

curl -X GET "https://api.postiz.com/public/v1/find-slot/:id"
-H "Authorization: $POSTIZ_API_KEY"

上传新文件(form-data)

curl -X POST "https://api.postiz.com/public/v1/upload"
-H "Authorization: $POSTIZ_API_KEY"
-F "file=@/path/to/your/file.png"

从已有 URL 上传文件

curl -X POST "https://api.postiz.com/public/v1/upload-from-url"
-H "Authorization: $POSTIZ_API_KEY"
-H "Content-Type: application/json"
-d '{ "url": "https://example.com/image.png" }'

获取帖子列表

curl -X GET "https://api.postiz.com/public/v1/posts?startDate=2024-12-14T08:18:54.274Z&endDate=2024-12-14T08:18:54.274Z&customer=optionalCustomerId"
-H "Authorization: $POSTIZ_API_KEY"

创建排期帖子

不同渠道的设置可在 https://docs.postiz.com/public-api/introduction 的左侧底部菜单中查看。

curl -X POST "https://api.postiz.com/public/v1/posts"
-H "Authorization: $POSTIZ_API_KEY"
-H "Content-Type: application/json"
-d '{ "type": "schedule", "date": "2024-12-14T10:00:00.000Z", "shortLink": false, "tags": [], "posts": [ { "integration": { "id": "your-x-integration-id" }, "value": [ { "content": "Hello from the Postiz API! 🚀", "image": [{ "id": "img-123", "path": "https://uploads.postiz.com/photo.jpg" }] } ], "settings": { "__type": "provider name", rest of the settings } } ] }'

删除帖子

curl -X DELETE "https://api.postiz.com/public/v1/posts/:id"
-H "Authorization: $POSTIZ_API_KEY"

适用场景

  • 需要跨多个社交平台与聊天渠道统一排期发布内容的运营场景
  • 希望通过 API 自动化管理帖子创建、查询与删除的开发者
  • 需要查询渠道可用发布时段以优化发布节奏的用户

限制

资料中未提供关于收费、价格、平台支持范围之外的功能细节、效果数据或使用限制的更多说明。