Skip to main content

Buffer social media platform API

The easiest way to interact with the Buffer API - https://buffer.com

Functionality

We are currently developing the wrapper. By now it is only able to schedule post and notifications for Instagram, Facebook and Tiktok.

Explanation

Buffer platform has 2 main functionalities:

  • Schedule a POST that will be automatically published on the date and time you set.
  • Set a REMINDER that will send a notification to your app at that specific time so you can post it manually by yourself.

Usage

I recommend you to visit the tests in the code to see how it works, but here you have some examples:

  1. Schedule a post of a reel on Instagram:
client = BufferClient(API_KEY)

# Y, M, D, m, s
DATE = PublicationDate(2026, 8, 7, 16, 50)

post = client.instagram.schedule_reel_post(
    channel_id = INSTAGRAM_CHANNEL_ID,
    video_url = VIDEO_ASSET_DIRECT_LINK,
    text = 'Automated post from bufferpy python library 🚀',
    publish_at = DATE,
    # specific fields
    do_share_to_feed = True,
    is_ai_generated = True,
)
  1. Post a reel on Instagram right now:
client = BufferClient(API_KEY)

post = client.instagram.schedule_reel_post(
    channel_id = INSTAGRAM_CHANNEL_ID,
    video_url = VIDEO_ASSET_DIRECT_LINK,
    text = 'Automated post from bufferpy python library 🚀',
    publish_at = None,
    # specific fields
    do_share_to_feed = True,
    is_ai_generated = True,
)
  1. Schedule a post of a picture on Facebook:
client = BufferClient(API_KEY)

# Y, M, D, m, s
DATE = PublicationDate(2026, 8, 7, 16, 50)

post = client.facebook.schedule_post_post(
    channel_id = FACEBOOK_CHANNEL_ID,
    image_url = IMAGE_ASSET_DIRECT_LINK,
    text = 'Automated post from bufferpy python library 🚀',
    publish_at = DATE
)
  1. Set a notification reminder on Tiktok:
client = BufferClient(API_KEY)

# Y, M, D, m, s
DATE = PublicationDate(2026, 8, 7, 16, 50)

post = client.tiktok.schedule_reel_notification(
    channel_id = TIKTOK_CHANNEL_ID,
    video_url = VIDEO_ASSET_DIRECT_LINK,
    text = 'Automated post from bufferpy python library 🚀',
    publish_at = DATE
)

Annotations

The Buffer platform doesn't make a copy of the resources in their servers (by now) when using the API, thats why you have to provide a direct link to the resource you want to upload.

That link has to be public and accessible at the time the post will be actually published. If the link is down, the scheduled post will fail.

Testing

You can test the functionality through our different test files. Add the environment variables you need in the .env file to test it directly with your real data from Buffer. See the .env.example to know what to include.

Download files

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

Source Distribution

bufferpy-0.2.2.tar.gz (13.5 kB view details)

Uploaded Source

Built Distribution

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

bufferpy-0.2.2-py3-none-any.whl (24.7 kB view details)

Uploaded Python 3

File details

Details for the file bufferpy-0.2.2.tar.gz.

File metadata

  • Download URL: bufferpy-0.2.2.tar.gz
  • Upload date:
  • Size: 13.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.2.0 CPython/3.9.0 Windows/10

File hashes

Hashes for bufferpy-0.2.2.tar.gz
Algorithm Hash digest
SHA256 e462aaa16c509490b1cc31556f1c111da8161bef54fbabada638333a8afef300
MD5 1a34aaad0da9cbfa7a4ce59a597afa2d
BLAKE2b-256 d370b9c1cae090e0861674b66993c30f6b86b3e7b6f7e14e9ce446f74273be6e

See more details on using hashes here.

File details

Details for the file bufferpy-0.2.2-py3-none-any.whl.

File metadata

  • Download URL: bufferpy-0.2.2-py3-none-any.whl
  • Upload date:
  • Size: 24.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.2.0 CPython/3.9.0 Windows/10

File hashes

Hashes for bufferpy-0.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 64594733d08ded8df1084753c3a5eef2fc748271f6d92e5d8e5b81974db4901a
MD5 43633745cceb42bf5750800c33bd7621
BLAKE2b-256 1a0202d7f1c5091cfe2ab4e1abf04b0889d5cc9a018ec2ba0e5466c151d91a17

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 Sentry Error logging StatusPage Status page