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

Odds API Problem #5

Open
pottsnpans3 opened this issue Jul 20, 2023 · 3 comments
Open

Odds API Problem #5

pottsnpans3 opened this issue Jul 20, 2023 · 3 comments

Comments

@pottsnpans3
Copy link

Hi!

I am running into a problem where I am running into a problem with the Odds API. When I tested my API it was working, but when I run it I am getting.

Fetching data from API...
An error occurred: name 'API CODE IS HERE' is not defined

Anything I could change to get this to work?

@irf23
Copy link

irf23 commented Sep 20, 2023

Have you tried since the readme was updated?

@itsRabb
Copy link

itsRabb commented Apr 24, 2024

Have you tried since the readme was updated?

Ya its Garbage.

@campb223
Copy link

I was able to get it working by just plugging my API key directly in the API_LINK on the .env file.

API_LINK=https://api.the-odds-api.com/v4/sports/baseball_mlb/odds/?regions=us&markets=h2h&bookmakers=fanduel,draftkings&oddsFormat=american&apiKey=a9766.....

Also, barstool isn't a valid bookie on The Odds API anymore. Barstool became ESPNBet which is under the us2 region. It won't fail if you include barstool in the link but I've removed them in my example.

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

No branches or pull requests

4 participants