Python PyPI

Python PyPI client package for Ayrshare

Overview of Python Client Package

Install the Social-Post-API PyPI Package if you use Python on the server-side. The package simplifies the calls by wrapping the RESTful calls.

Obtain your secret API Key at


pip install social-post-api

General Usage

Examples of Post, History, and Delete:

from ayrshare import SocialPost
social = SocialPost('8jKj782Aw8910dCN') # get an API Key at

# Post to Platforms Twitter, Facebook, and LinkedIn
postResult ={'post': 'Nice Posting 2', 'platforms': ['twitter', 'facebook', 'linkedin'], 'profileKey': 'JKSDJI-JKKJKKJ'})

# Delete
deleteResult = social.delete({'id': postResult['id']})

# History

Profile Key

You may specify the Profile Key for User Profile in the body of a POST or query of a GET with the profileKey field.

More Information and Documentation

Last updated