darthbatman / billboard-top-100

:chart_with_upwards_trend: Node.js API to retrieve the top songs, albums, and artists from Billboard's charts
MIT License
97 stars 30 forks source link

Api is dead #56

Closed kylerchin closed 2 years ago

kylerchin commented 2 years ago

Everything returns a blank response.

ReverseControl commented 2 years ago

@kylerchin Could you elaborate? Details of your system, version you are running, commands you are running, responses, etc.

kyle-richardson commented 2 years ago

Also not working for me, getChart returns null.

Here is simplified version of my code using it, which used to work a few months ago:

import { getChart } from 'billboard-top-100'
...
server.get('/chart/:date', (req, res) => {
    const { date } = req.params; // date format: 'YYYY-MM-DD'
    getChart('hot-100', date, (err, chart) => {
        console.log(chart) // this returns 'null' now
        if (err) res.json({ songs: [], error: err })
        else res.json(chart)
    })
})
darthbatman commented 2 years ago

As of version 2.6.1, getChart and listCharts are working as intended.