Skip to main content

Social media automation API for AI agents, LLMs, and developers. Publish to 11 platforms programmatically.

Project description

BulkPublish Python SDK

Official Python SDK for the BulkPublish social media API. Automate publishing to 11 platforms — built for developers, scripts, AI agents, LLMs, and agentic workflows.

Installation

pip install bulkpublish

Requires Python 3.8+. Only dependency: httpx.

Quick Start

from bulkpublish import BulkPublish

bp = BulkPublish("bp_your_key_here")

# List connected social media channels
channels = bp.channels.list()

# Upload media
media = bp.media.upload("./photo.jpg")

# Schedule a post to multiple platforms
post = bp.posts.create(
    content="Hello from the BulkPublish API!",
    channels=[
        {"channelId": 1, "platform": "instagram"},
        {"channelId": 2, "platform": "x"},
    ],
    media_files=[media["file"]["id"]],
    scheduled_at="2026-04-10T09:00:00Z",
    timezone="America/New_York",
    status="scheduled",
)

Built for Automation

BulkPublish is designed for programmatic social media management — no browser sessions, no UI, no OAuth flows at runtime. Connect your accounts once in the dashboard, then automate everything:

  • AI agents — Use with Claude (MCP server), GPT (function calling), LangChain, or any LLM that supports tool use
  • Cron jobs & scripts — Schedule content pipelines, RSS-to-social, blog-to-social workflows
  • Bulk operations — Upload a CSV, iterate, and schedule hundreds of posts programmatically
  • Analytics extraction — Pull engagement data into your own dashboards or AI analysis pipelines

Async Support

import asyncio
from bulkpublish import AsyncBulkPublish

async def main():
    bp = AsyncBulkPublish("bp_your_key_here")
    channels = await bp.channels.list()
    post = await bp.posts.create(
        content="Async post!",
        channels=[{"channelId": 1, "platform": "x"}],
        status="draft",
    )

asyncio.run(main())

Available Resources

Resource Methods
bp.posts create, list, get, update, delete, publish, retry, bulk, queue_slot
bp.channels list, get, delete, health
bp.media upload, list, get, delete
bp.analytics summary, engagement, refresh, account
bp.labels list, create, update, delete
bp.schedules list, create, update, delete
bp.webhooks list, create, update, delete

Every method has docstrings with usage examples — works great with IDE autocomplete and LLM code generation.

Supported Platforms

Facebook, Instagram, X (Twitter), TikTok, YouTube, Threads, Bluesky, Pinterest, Google Business Profile, LinkedIn, Mastodon

Resources

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

bulkpublish-0.1.2.tar.gz (19.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

bulkpublish-0.1.2-py3-none-any.whl (25.9 kB view details)

Uploaded Python 3

File details

Details for the file bulkpublish-0.1.2.tar.gz.

File metadata

  • Download URL: bulkpublish-0.1.2.tar.gz
  • Upload date:
  • Size: 19.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.0

File hashes

Hashes for bulkpublish-0.1.2.tar.gz
Algorithm Hash digest
SHA256 d6e0b6eb0e5926018c35be5844ac29b5791facaf1261a065f9b429c180660b1f
MD5 9651b483f7ae350f41b43980f924f628
BLAKE2b-256 3a92b57a22318cac14930698f7e8a6b6868cb593b6df9c3dfb2b54148a9e2ee6

See more details on using hashes here.

File details

Details for the file bulkpublish-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: bulkpublish-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 25.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.0

File hashes

Hashes for bulkpublish-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 d8cc153e7d6c575d353a95484a1b5547f57bd170a2bf6b36202159a64e6134b9
MD5 cd430dfaf5af670b8202ea583a29b45d
BLAKE2b-256 89faa0be3b15738078e50e9cc54bdcea386bc547ebc9c44f898aaf59fe131a44

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page