Discord-Sensor.com API wrapper
Project description
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file discord_sensor_api-1.0.1.tar.gz.
File metadata
- Download URL: discord_sensor_api-1.0.1.tar.gz
- Upload date:
- Size: 2.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
07d4beb38936b8e81eb324db735d4612929d7e460653fa823d5b1a955d5aa005
|
|
| MD5 |
76f6cd65a8c39a0acc53ed4b2dc90fea
|
|
| BLAKE2b-256 |
e6e7d01d6f456f2764ad187b62b3c03ed34b440dc7c03403b4219c32cf8dcb0c
|
File details
Details for the file discord_sensor_api-1.0.1-py3-none-any.whl.
File metadata
- Download URL: discord_sensor_api-1.0.1-py3-none-any.whl
- Upload date:
- Size: 3.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1da8273058adac81eceffa470ca78fbce38100489589cdf0a3ba145e80996630
|
|
| MD5 |
6e9cf5525e4e6000bb74381e3fa22040
|
|
| BLAKE2b-256 |
86808e839594d86506a93fc4b6428ab205f73a4763602e8e630981c2dcd86809
|