Комментарии
тема: The Site
Pays de la Loire, FranceStun5 years ago

Ok thank you, effectively there was some invisible symbols in my link now it's work !

Oreo321 нравится это
тема: The Site
Pays de la Loire, FranceStun5 years ago

Thanks for your answers.

So I try with the "Location" response header but this doesn't give me a link with the ID but the same link (https:/​/​www.speedrun.​com/​api/​v1/​users/​Pseudo).

Request: https:/​/​www.speedrun.​com/​api/​v1/​users/​Stun

response header: { server: 'nginx/1.10.3', date: 'Wed, 11 Mar 2020 11:29:23 GMT', 'content-type': 'text/html', 'content-length': '187', connection: 'close', location: 'https://www.speedrun.com/api/v1/users/Stun' }

тема: The Site
Pays de la Loire, FranceStun5 years ago

I want to use the speedrun.com api for a discord bot in JS but I can't get the players id by their nickname :

I use NodeJs and HTTPS for the request so when i make a request on https://speedrun.com/api/v1/users/Pseudo this doesn't return me a JSON file.

How can i get the ID by the pseudo to make my request ?

Sorry if there are mistakes.

О Stun
Вступил
5 years ago
Онлайн
12 days ago
Времена
1
Сыгранные игры
Portal
Portal
Последний рекорд 5 years ago
1
Время
Игры, за которыми следят
Refunct
Refunct
Последнее посещение 12 days ago
15
посещений
Portal
Portal
Последнее посещение 2 years ago
39
посещений