Skip to main content

PyBoostyAPI is a powerful asynchronous Python library for seamless interaction with the Boosty.to API

Project description

🚀 PyBoostyAPI

PyBoostyAPI is a powerful asynchronous Python library for seamless interaction with Boosty.to through its internal API. It supports posts, subscribers, dialogs, sales, donations, and detailed statistics.

PyPI - Python Version PyPI - License GitHub stars

PyPi page https://pypi.org/project/PyBoostyApi/


✨ Features

  • 🔐 Authentication with token auto-refresh
  • 📬 User dialog handling
  • 📊 Fetching statistics and sales data
  • 💬 Get free and paid subscribers
  • 📝 Create and delete posts
  • 💰 Get donation and subscription tier info

⚙️ Installation

pip install PyBoostyApi

Or manually:

git clone https://github.com/HOCKI1/py_boosty_api.git
cd py_boosty_api
pip install .

🔧 Basic Usage Example

import asyncio
from boosty_api import BoostyAPI

async def main():
    api = await BoostyAPI.create("auth.json")
    try:
        href = await api.get_blog_href()
        print("🔗 Blog href:", href)

        stats = await api.get_blog_stats() # Get stats of your Blog
        print("📊 Stats:", stats)

    finally:
        await api.close()

if __name__ == "__main__":
    asyncio.run(main())

🗂 auth.json Structure

{
  "access_token": "your_token",
  "refresh_token": "your_refresh_token",
  "expiresAt": 1722193100,
  "_clientId": "your_uuid"
}

To get this data:

  • Create auth.json file in your project
  • Login to Boosty(with any available method)
  • Press F12 -> Console
  • Puth there this code:
console.log(localStorage.getItem("auth"))
  • Copy the result to auth.json file
  • Profit!

📌 TODO

  • Posts
  • Subscribers
  • Dialogs
  • Donations
  • Sales
  • Auto token refresh
  • Media content (albums, images)
  • More common usable functions

📄 License

This project is licensed under the MIT License. See LICENSE for details.


🤝 Contact

Author: HOCKI1 Email: hocki1.official@yandex.ru Made with ❤️ for the Boosty creator community.

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

pyboostyapi-1.0.5.tar.gz (7.6 kB view details)

Uploaded Source

Built Distribution

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

pyboostyapi-1.0.5-py3-none-any.whl (7.8 kB view details)

Uploaded Python 3

File details

Details for the file pyboostyapi-1.0.5.tar.gz.

File metadata

  • Download URL: pyboostyapi-1.0.5.tar.gz
  • Upload date:
  • Size: 7.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.5

File hashes

Hashes for pyboostyapi-1.0.5.tar.gz
Algorithm Hash digest
SHA256 46a7763939f33a46be58c76f5a8601b60765eb6591465ca7f5e289bc5402f8ae
MD5 acdd94dcb2ebb0db253009f1add0b3ef
BLAKE2b-256 4ab912caa2dffa23a8df0cb789551e2b3ab2224fc65e7bdc341cbeca12150ba3

See more details on using hashes here.

File details

Details for the file pyboostyapi-1.0.5-py3-none-any.whl.

File metadata

  • Download URL: pyboostyapi-1.0.5-py3-none-any.whl
  • Upload date:
  • Size: 7.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.5

File hashes

Hashes for pyboostyapi-1.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 cfa59ed4f465e50009fb909d5803e525ad04b95e51c7cc2c3e2784bd236feb49
MD5 65c2d1339747c072f48296ceb46f1e03
BLAKE2b-256 df7a430facc7d492923e905727d6ea729ecd9fbd46e25c994ee7787e9a6246be

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