Live Golf Data

GRATIS CON POSSIBILITÀ DI UPGRADE
Verified
Da slashgolf | Aggiornamento hace 23 días | Sports
Popolarità

9.9 / 10

Latenza

62ms

Livello di servizio

100%

Health Check

100%

Torna a tutte le discussioni

Strangeness while hitting with linux curl

Rapid account: Fglbandit
fglbandit
hace 2 meses

running on linux using the curl command

curl --header “X-RapidAPI-Key: {key}” --header “X-RapidAPI-Host: live-golf-data.p.rapidapi.com” -X GET https://live-golf-data.p.rapidapi.com/leaderboard?orgId=1&year=2024&tournId=014

response {‘error’: ‘request is missing parameter: year’}

I’m confused because I’m clearly sending the year as a query parameter.

Does anyone know if there are any additional header fields required?

Thanks

Rapid account: Fglbandit
fglbandit Commented hace 2 meses

on linux I was missing the quote around the url, so it was treating the & as end of command …

curl --header “X-RapidAPI-Key: {key}” --header “X-RapidAPI-Host: live-golf-data.p.rapidapi.com” -X GET “https://live-golf-data.p.rapidapi.com/leaderboard?orgId=1&year=2024&tournId=014” worked.

Thanks for the help!

Rapid account: Slashgolf
slashgolf Commented hace 2 meses

Can you try using the curl command below:

curl --request GET
–url ‘https://live-golf-data.p.rapidapi.com/leaderboard?orgId=1&tournId=014&year=2024
–header ‘X-RapidAPI-Host: live-golf-data.p.rapidapi.com
–header ‘X-RapidAPI-Key: <ENTER YOUR KEY>’

Partecipa alla discussione - aggiungi un commento di seguito:

Accedi/Iscriviti per pubblicare nuovi commenti