Skip to main content

discord-sensor-api

Unofficial Python wrapper for the discord-sensor.com API. Easily access user and server data, history, stats, and more.

Installation

pip install discord-sensor-api

Quick Start

import discord_sensor_api as dsapi

# User Data
user_id = "1352144578395766825"
user_info = dsapi.get_user_info(user_id)
print(user_info)

# Server Data
guild_id = "1090281117740961922"
server_info = dsapi.get_server_info(guild_id)
print(server_info)

API Reference

User Methods

Function Arguments Description
get_user_info user_id Get general user information.
get_user_servers user_id Get mutual guilds.
get_user_nicknames user_id, page=0 Get username history.
get_user_friends user_id, page=0 Get friends list/history.
get_user_history_servers user_id, page=1, limit=20 Get server join/leave history.
get_user_history_boost user_id, page=1, limit=20 Get boost history.
get_user_history_bio user_id, page=1, limit=20 Get bio/about me history.
get_user_history_voice user_id, page=1, limit=20 Get voice channel history.
get_user_games_stats user_id Get gaming statistics.
get_user_avatars user_id, page=1 Get avatar history.
get_user_screenshots user_id, page=1 Get stream screenshots.
get_user_selfie user_id, page=1 Get selfie history.
get_user_deleted_images user_id, page=1 Get deleted images.
get_user_banners user_id, page=1 Get banner history.

Server Methods

Function Arguments Description
get_server_info guild_id Get general server information.
get_server_roles guild_id Get server roles.
get_server_stats guild_id, range="month" Get server statistics. Range: month, week, day, all.
get_server_avatars guild_id, page=1, limit=20 Get server icon history.
get_server_emoji guild_id, page=1, limit=50 Get server emojis.
get_server_channels guild_id Get server channels.
get_server_functions guild_id Get active server functions/features.
get_server_joins_leaves guild_id, page=1, limit=20 Get member join/leave logs.
get_server_boosts guild_id, page=1, limit=20 Get boost logs.
get_server_tags guild_id, page=1, limit=20 Get tag update logs.
get_server_names guild_id, page=1, limit=20 Get server rename logs.

License

MIT

Metadata

Release files for discord-sensor-api 1.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for discord-sensor-api 1.0.1
File Size Uploaded Provenance Actions
discord_sensor_api-1.0.1.tar.gz 2.9 kB Without provenance Details for discord_sensor_api-1.0.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for discord-sensor-api 1.0.1
File Interpreter ABI Platform Actions
discord_sensor_api-1.0.1-py3-none-any.whl Python 3 none any Details for discord_sensor_api-1.0.1-py3-none-any.whl

Total release size: 6.1 kB

Release files / discord_sensor_api-1.0.1.tar.gz

Download URL discord_sensor_api-1.0.1.tar.gz
Size 2.9 kB
Tags Source
SHA-256 checksum
How to use checksums
07d4beb38936b8e81eb324db735d4612929d7e460653fa823d5b1a955d5aa005
BLAKE2b-256 checksum
How to use checksums
e6e7d01d6f456f2764ad187b62b3c03ed34b440dc7c03403b4219c32cf8dcb0c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.2

Release files / discord_sensor_api-1.0.1-py3-none-any.whl

Download URL discord_sensor_api-1.0.1-py3-none-any.whl
Size 3.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1da8273058adac81eceffa470ca78fbce38100489589cdf0a3ba145e80996630
BLAKE2b-256 checksum
How to use checksums
86808e839594d86506a93fc4b6428ab205f73a4763602e8e630981c2dcd86809
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.2

Security for discord-sensor-api 1.0.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

1.0.1 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page