discord / discord-api-docs

Official Discord API Documentation
https://discord.com/developers/docs/intro
Other
5.96k stars 1.26k forks source link

JSON API output data is limited #4639

Closed IceVSIce closed 2 years ago

IceVSIce commented 2 years ago

Description

JSON API output data limited to display only 100 active voice chat users.

Steps to Reproduce

Open a Discord servers' JSON API URL with 100+ active voice chat users. ie. discord.gg/English

Expected Behavior

Expected Example: Server has 233 active voice chat users > Output should be displaying the correct output of 233 users.

Current Behavior

Current Behavior Examples: Server has 252 Active Voice Chat users it shows 100 users. Server has 98 Active Voice Chat users it shows 98 users.

Screenshots/Videos

No response

Client and System Information

Stable 118205 (081ceba) Host 1.0.9004 Windows 10

Zoddo commented 2 years ago

What endpoint are you talking about?

Most endpoints that return an array of objects are paginated and need to be queried multiple times with the after query string over a certain threshold to get the full dataset.

Jupith commented 2 years ago

I think they might be talking about widget? which is limited to 100 users

IceVSIce commented 2 years ago

Correct, the server widget. Using the URL to extract the number of members online and voice users online. Is there a reason it is limited? If so, this is obviously more of a feature request.

Elgato Stream Deck offers the usage of plugins. One of the Discord plug-ins made by Krabs.me > https://www.krabs.me/streamdeck-plugins/discord-member-count

After contacting the developer of the plug-in and together reading the output of that json API url, and it being limited to 100 users. We understood the limit is set by Discord and not the plug-in itself.

The limit may or may not be intentional, either way a bug or a feature request for the above intended use.

Additionally, it also would be beneficial to have the ability to grab the actual total number of members, the same way.

night commented 2 years ago

The widget endpoint used to return all users, but unfortunately due to abuse patterns being actively exploited was changed to return limited, anonymized data. We have no current plans to return additional data in this endpoint again, and would recommend using a bot user in the server if you need additional information about the server.