{"id":22558003,"url":"https://github.com/jd-apprentice/dolar-hoy-api","last_synced_at":"2026-04-20T09:33:41.675Z","repository":{"id":169575127,"uuid":"645567270","full_name":"jd-apprentice/dolar-hoy-api","owner":"jd-apprentice","description":"💰 Dolar hoy APIRest made with fastapi","archived":false,"fork":false,"pushed_at":"2024-07-10T05:59:51.000Z","size":63,"stargazers_count":0,"open_issues_count":8,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-07-10T07:57:47.156Z","etag":null,"topics":["collaborate","digitalocean","docker","github","makefile","python"],"latest_commit_sha":null,"homepage":"https://dolar.jonathan.com.ar/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jd-apprentice.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-05-26T00:25:24.000Z","updated_at":"2023-06-04T19:06:51.000Z","dependencies_parsed_at":"2024-05-22T11:30:00.891Z","dependency_job_id":"2dbb3746-81cd-45f3-aeaf-b9880f949712","html_url":"https://github.com/jd-apprentice/dolar-hoy-api","commit_stats":null,"previous_names":["jd-apprentice/dolar-hoy-api"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jd-apprentice%2Fdolar-hoy-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jd-apprentice%2Fdolar-hoy-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jd-apprentice%2Fdolar-hoy-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jd-apprentice%2Fdolar-hoy-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jd-apprentice","download_url":"https://codeload.github.com/jd-apprentice/dolar-hoy-api/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246020227,"owners_count":20710712,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["collaborate","digitalocean","docker","github","makefile","python"],"created_at":"2024-12-07T20:10:37.768Z","updated_at":"2026-04-20T09:33:36.648Z","avatar_url":"https://github.com/jd-apprentice.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 💰 Dolar-hoy API\n\n![IMG](https://wallpapercave.com/wp/wp3105546.png)\n\n[![Codacy Badge](https://app.codacy.com/project/badge/Grade/15bdc445d90b4f1492b8a3254edef844)](https://app.codacy.com/gh/jd-apprentice/dolar-hoy-api/dashboard?utm_source=gh\u0026utm_medium=referral\u0026utm_content=\u0026utm_campaign=Badge_grade)\n\n\u003ca href=\"https://www.digitalocean.com/?refcode=dea6443429a5\u0026utm_campaign=Referral_Invite\u0026utm_medium=Referral_Program\u0026utm_source=badge\"\u003e\u003cimg src=\"https://web-platforms.sfo2.cdn.digitaloceanspaces.com/WWW/Badge%201.svg\" alt=\"DigitalOcean Referral Badge\" /\u003e\u003c/a\u003e\n\n## 📝 Description\n\nProject to learn how to deploy and mantain a REST API using FastAPI and Docker.\nThe API is a simple GET endpoint that returns the current value of the dolar in Argentina.\nValues are being scrapped from [DolarHoy](https://www.dolarhoy.com/) and saved in PlanetScale.\n\n## 🏃 Run\n\nTo run the project you need to have Docker installed in your machine. Then, you can run the following command:\n\n```bash \ndocker compose up\n```\n\n## 🧪 Endpoints\n\n```bash\nGET /dolar/:currency\nPOST /manual\n```\n\nWhere `:currency` can be\n\n- blue\n- oficial\n- crypto\n- mep\n\n\n## 🖥 Examples\n\n```bash\ncurl -X GET \"http://localhost:4500/dolar/blue\" -H  \"accept: application/json\"\n```\n\nResponse\n```json\n{\n  \"label\": \"Dolar Blue\",\n  \"prices\": {\n    \"buy_price\": 488,\n    \"sell_price\": 493\n  },\n  \"last_update\": \"2023-05-25 20:35:58\" // UTC -3\n}\n```\n\n## 🌻 Workflow\n\n![image](https://github.com/jd-apprentice/dolar-hoy-api/assets/68082746/4791c037-aae9-459d-b9dc-0db5b1d296aa)\n\n## 🧰 Stack\n\n- Python\n- FastAPI\n- Docker\n- PlanetScale\n- GitHub Actions\n- DigitalOcean\n- Nginx\n\n## 🔒 Environment Variables\n\n| Name | Description | Default |\n|------|-------------|---------|\n| HOST | Host to run the API | xxx |\n| USERNAME | Username to connect to PlanetScale | xxx |\n| PASSWORD | Password to connect to PlanetScale | xxx |\n| DATABASE | Database to connect to PlanetScale | xxx |\n| MANUAL_USERNAME | Username to use the scrapper | xxx |\n| MANUAL_PASSWORD | Password to use the scrapper | xxx |","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjd-apprentice%2Fdolar-hoy-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjd-apprentice%2Fdolar-hoy-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjd-apprentice%2Fdolar-hoy-api/lists"}