Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issues with Destiny 1 API and 404 Errors for Player Search Endpoint #1935

Open
Daar0nat0r opened this issue Jan 24, 2025 · 3 comments
Open
Labels

Comments

@Daar0nat0r
Copy link

Hello,

I am currently working with the Destiny 1 API to retrieve specific player statistics, but I am encountering 404 errors when attempting to search for players via the API. Specifically, I am using the SearchDestinyPlayer endpoint to find players by their Bungie Name, but it returns a 404 error with the message "Endpoint not found."

Here’s an example of what I’ve tried:

Endpoint URL:
https://www.bungie.net/Platform/Destiny1/SearchDestinyPlayer/{membership_type}/{player_bungie_name}/
For example: https://www.bungie.net/Platform/Destiny1/SearchDestinyPlayer/2/Deej/
Membership Types: Xbox (1), PlayStation (2), etc.
Bungie Names: "Datto", "Deej"
The response returned is a 404 error, indicating that the endpoint was not found, and the message suggests that the service is unavailable.

I have verified that my API key is correct and included in the headers of my requests.
I’ve also confirmed that the Bungie names I used are valid (e.g., "Deej", "Datto").
Could you provide some guidance on what might be causing this issue or if there are any changes to the API endpoints? Additionally, any examples of how to correctly search for players and retrieve statistics from Destiny 1 would be greatly appreciated.

Thank you for your assistance!

@aadam-bng
Copy link
Collaborator

Can you try switching from /Destiny1/ to /Destiny/ and let me know if that works for you. For example:
https://www.bungie.net/Platform/Destiny/SearchDestinyPlayer/2/Deej/

@Daar0nat0r
Copy link
Author

Can you try switching from /Destiny1/ to /Destiny/ and let me know if that works for you. For example: https://www.bungie.net/Platform/Destiny/SearchDestinyPlayer/2/Deej/

Alright I did this and the api actually found the different profiles, but all of them came up with 0 Destiny 1 Cota's End clears as the output. Despite the profiles I tested having more than 0 Destiny 1 Crota's End clears.

@aadam-bng
Copy link
Collaborator

Looking at the docs, it appears SearchDestinyPlayer is obsolete; if you try using SearchDestinyPlayerByBungieName, does that give you the results you expect?

Also, feel free to check out our discord to link up with other devs who've made applications with these endpoints: https://discord.gg/4qmq234a

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants