https://github.com/jd-apprentice/infobae-api
🤖 Infobae API - Consulta links de las noticias publicadas en infobae
https://github.com/jd-apprentice/infobae-api
axios express nodejs typescript
Last synced: about 1 month ago
JSON representation
🤖 Infobae API - Consulta links de las noticias publicadas en infobae
- Host: GitHub
- URL: https://github.com/jd-apprentice/infobae-api
- Owner: jd-apprentice
- License: mit
- Created: 2022-04-12T22:20:32.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2025-03-08T05:04:11.000Z (11 months ago)
- Last Synced: 2025-03-08T05:25:54.773Z (11 months ago)
- Topics: axios, express, nodejs, typescript
- Language: Go
- Homepage: https://noticias.jonathan.com.ar
- Size: 227 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README

# InfobaeAPI
## 🌐 Description
- It includes various topics that can be accessed via the `topic` parameter.
- The posts are just links, extracted from the site's `robots.txt` as I couldn't find an official API.
- The `xml/sitemap` endpoint returns all available sitemaps.
## 🚀 Usage
- You can access the API -> [HERE](https://noticias.jonathan.com.ar/api/infobae/).
## 🚧 Routes
- **GET** `xml/sitemap` → Retrieve all sitemaps.
- **GET** `api/docs/index.html` → Swagger documentation.
- **GET** `api/infobae/` → Fetch the latest news from the general sitemap.
- **GET** `api/infobae/topic/` → Fetch a specific topic.
- **GET** `api/infobae/topic/?size=x` → Fetch a specific topic with `x` posts.
## ✍️ Examples
```shell
$ curl -Ss "https://noticias.jonathan.com.ar/api/infobae/economia?size=2" | jq
{
"news": [
{
"changefreq": "hourly",
"lastmod": "2025-02-18T22:41:31.189Z",
"url": "https://www.infobae.com/economia/2025/02/18/los-fundamentos-no-cambian-el-gobierno-se-repliega-sobre-su-plan-economico-para-evitar-un-impacto-en-los-mercados/"
},
{
"changefreq": "hourly",
"lastmod": "2025-02-18T22:35:05.232Z",
"url": "https://www.infobae.com/economia/2025/02/18/la-bolsa-portena-subio-6-tras-asimilar-el-ruido-por-el-escandalo-de-libra/"
}
]
}
```
## 🧰 Stack
- Golang
- Gin
- GitHub Actions
- Pre-commit
- CodeQL
- Docker
- Kubernetes
- Terraform
- Bruno
- Swagger
## 📁 Folder structure
```md
🌳 src/
┣ 📁 constants/
┃ ┣ 📄 config.go
┃ ┣ 📄 links.go
┃ ┗ 📄 messages.go
┣ 📁 controllers/
┃ ┣ 📄 infobae.controller.go
┃ ┗ 📄 xml.controller.go
┣ 📁 models/
┃ ┗ 📄 response.go
┣ 📁 services/
┃ ┗ 📄 xml.service.go
┗ 📄 main.go
```
## 🤝 Contribute
For more information, check the [CONTRIBUTE](./CONTRIBUTE.md) file
## 📝 License
[MIT](LICENSE)