Skip to content

Calling Stats endpoint #106

Open
Open
@mathisang

Description

@mathisang

Hi,

Actually i'm trying to fetch data players with the stats endpoints.

I'm working with React and a small Express Server to call this endpoints.
Sometimes when I call "http://localhost:1245/stats", it returns me a result, but 90% of time, it loading indefinitely...

Do you have some ideas ?

Here my route
app.get('/stats', async (req, res) => { const stats = await NBA.stats.playerSplits({ PlayerID: "2544", Season: "2019-20" }) res.json(stats); })

I'm working with a fixed ID, but then, I'm gonna call this API with a dynamic Player ID.

Thanks,

And sorry, my english sucks. ;)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions