Dokumentasi untuk bahasa indonesia. Klik disini
Berita Indo API (or in English is Indonesian News API) is an API to display many news Indonesia like from CNN News, CNBC News, etc. For the datas was parsed from the RSS feed to JSON type and also Rest API. For the routes, you can see it below.
/
: Get all list and info about this API/v1/cnn-news
: Get all news data of CNN News/v1/cnn-news/:type
: Get specific news data by type news of CNN News/v1/cnbc-news/
: Get all news data of CNBC News/v1/cnbc-news/:type
: Get specific news data by type news of CNBC News/v1/republika-news
: Get all news data of Republika News/v1/republika-news/:type
: Get specific news data by type news of Republika News/v1/tempo-news/
: Get all news data of Tempo News/v1/tempo-news/:type
: Get specific news data by type news of Tempo News/v1/antara-news/:type
: Get specific news data by type news of Antara News/v1/kumparan-news/
: Get all news data of Kumparan News/v1/okezone-news
: Get all news data of Okezone News/v1/okezone-news/:type
: Get specific news data by type news of Okezone News(This RSS feed maybe isn't available again)/v1/liputan6-news
: Get all news data of Liputan 6 News/v1/bbc-news
: Get all news data of BBC News/v1/bbc-news/:type
: Get specific news data by type news of BBC News/v1/tribun-news
: Get all news data of Tribun News/v1/tribun-news/:type
: Get specific news data by type news of Tribun News
Each API Endpoint have a query paramaters named 'title', and this query parameters will be usefull if you want to search the API data by the title.
- News
- CNN News
- CNBC News
- Republika News
- Tempo News
- Antara News
- Kumparan News
- Okezone News
-
Liputan 6 News(This RSS feed maybe isn't available again) - BBC News
- Tribun News
- Improve API
- Search data news
- Paginate data
If you want to add this project in your own machine, you can install this project by following the step below
- Clone this repository
git clone https://github.com/satyawikananda/berita-indo-api.git
- Install dependencies
In my case, i'm using pnpm for package manager, you can adjust with your favorite package manager
pnpm install
To running my program, you can use command
ts-node ./api/server.ts
in your terminal
For the tech stack, Berita Indo API was using :
- Typescript
- Node JS
- Express
- RSS Parser
- Vercel
- and many utilities
If you use this API to your project application, you can register your project in this showcase below :
- Berita.id Minimalist news platform by NicolaDonoastro
- Mobile News App Mobile Apps Platform by Indrapalijama
- React CNN News Simple news app by Galanggg
You can support me on Karya Karsa and Trakteer
Want to make this project better? You can contribute this project, I am very open if there are contributions to this project.
Powered by Typescipt and vercel. Code licensed under MIT License.