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.3.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.3-py3-none-any.whl (7.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pyboostyapi-1.0.3.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.3.tar.gz
Algorithm Hash digest
SHA256 1a7b3ccbebec8434cee227dd1930b0513718bd3be27a1e8a52476c4a65efbf2b
MD5 985ad7ca1e842a5f4ac7179a91c363e5
BLAKE2b-256 1af60fcce7cc51d8632582b5637cbca992090e15be80345f80f41f94fbbf647d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pyboostyapi-1.0.3-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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 fb40abc72cbee473b13bd5fdfb9c0ffd2873d8b740dc541cfd8a0e1dcb75de47
MD5 9b2d4580ad0b2aa01d656fd420396e15
BLAKE2b-256 334905e558ad270e09942b458b8329b5f9ac8da39f964667126e7f1245d781dc

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