Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/oshekharo/news-api
This is a simple server that serves as a unified API endpoint for fetching news from different sources. Currently, it supports AnimeNewsNetwork and Inshorts.
https://github.com/oshekharo/news-api
animenewsnetwork api consumet-api gifs ifsc inshorts-api lyrics memes news newsapi pixiv radio ringtone slok torrent wallpaper
Last synced: 2 months ago
JSON representation
This is a simple server that serves as a unified API endpoint for fetching news from different sources. Currently, it supports AnimeNewsNetwork and Inshorts.
- Host: GitHub
- URL: https://github.com/oshekharo/news-api
- Owner: OshekharO
- License: gpl-2.0
- Created: 2023-07-07T03:58:23.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-06-16T16:04:56.000Z (7 months ago)
- Last Synced: 2024-06-16T18:06:52.938Z (7 months ago)
- Topics: animenewsnetwork, api, consumet-api, gifs, ifsc, inshorts-api, lyrics, memes, news, newsapi, pixiv, radio, ringtone, slok, torrent, wallpaper
- Language: JavaScript
- Homepage: https://news-api-six-navy.vercel.app
- Size: 200 KB
- Stars: 3
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# News API
This is a simple server that serves as a unified API endpoint for fetching news from different sources. Currently, it supports AnimeNewsNetwork, Inshorts and some other sources.
The server is built using Node.js and Express and is hosted on Vercel.
## Endpoints
- `https://news-api.cyclic.app`
## Response
The server responds with a JSON object containing the news data. The structure of the data varies depending on the source.
For AnimeNewsNetwork, the data includes title, topics, preview, url, and thumbnail. For Inshorts, the data includes title, subtitle, content, sourceUrl, imageUrl, and other fields.
## Usage
You can use this server as a backend for a news app or website. Simply send a GET request to the appropriate endpoint to fetch news from that source.
Example using JavaScript's fetch API to fetch news from AnimeNewsNetwork:
```javascript
fetch('https://news-api-six-navy.vercel.app/api/news/ann')
.then(response => response.json())
.then(data => console.log(data));
```## Acknowledgements
- OpenAI GPT-4: for code review and suggestions