How to connect to already existing social media platform with nodejs?

I am learning node js and was thinking of making an api for reddit but for node js. Reddit has a api but it is only for python and I dont know the language. I want to make it so I can help people make a js reddit bot too. but my problem is I need to know how to get the adress in my app.get or whatever I need.

I know how to do this


app.get('/', (req, res) => {
    res.send('<h1>Store API</h1><a href="/api/v1/products">products route</a>')
})

but it only gets my local host.
I know i can put the reddit adress in postman but thats about it.

I put the thing in postman and it returns what I want but how do i do it in node js?