Skip to main content
Back to all posts

Product Update: Official Node.js and Python SDKs

·1 min read·Yoav Mendelson
product updatesdknode.jstypescriptpythonapi

PostPeer now has official SDKs for Node.js and Python.

Both clients come from the same OpenAPI contract as the PostPeer API. That keeps request types, response models, resources, and errors aligned with the API.

Install

npm install @postpeer/node
pip install postpeer

Both SDKs read POSTPEER_API_KEY from your environment.

Publish with Node.js

import PostPeer from '@postpeer/node';
 
const client = new PostPeer();
 
await client.posts.create({
	body: {
		content: 'Hello from PostPeer!',
		platforms: [
			{ platform: 'twitter', accountId: 'acc_twitter' },
			{ platform: 'linkedin', accountId: 'acc_linkedin' },
		],
		publishNow: true,
	},
});

Publish with Python

from postpeer import PostPeer
 
client = PostPeer()
 
post = client.posts.create(
    content="Hello from PostPeer!",
    platforms=[
        {"platform": "twitter", "accountId": "acc_twitter"},
        {"platform": "linkedin", "accountId": "acc_linkedin"},
    ],
    publish_now=True,
)

The SDKs cover posts, scheduling, account connections, media, analytics, profiles, notifications, and AI tools. They also provide typed errors and configurable timeouts.

Prefer plain HTTP? The REST API stays unchanged. The SDKs are a faster, typed path into the same API.