CoinDesk News API
This code sets up a web server using Express in Node.js. When a GET request is made to the server with an exchange name and page range, it scrapes the CoinDesk website for cryptocurrency exchange data within the specified range, extracting information such as article titles, content, and publication dates. The extracted data is then serialized as JSON and returned as a response to the client,…
CoinDesk News API endpoints
| Method | Endpoint | Description |
|---|---|---|
| GET |
Ether - Page 2 and Page 8 /ether/2-8 |
The route pattern is specified as '/:exchange/:pageRange', where ':exchange' and ':pageRange' are placeholders for dynamic values that will be extracted from the request URL.… |
| GET |
Bitcoin - Page 31 and Page 36 /bitcoin/31-36 |
The route pattern is specified as '/:exchange/:pageRange', where ':exchange' and ':pageRange' are placeholders for dynamic values that will be extracted from the request URL.… |