{"id":18708117,"url":"https://github.com/murf-y/lbp-dollarrate-api","last_synced_at":"2025-04-12T10:33:42.707Z","repository":{"id":128257038,"uuid":"495028991","full_name":"Murf-y/LBP-DollarRate-API","owner":"Murf-y","description":"Free to use API for the current unofficial dollar rate to LBP from the black market in Lebanon.","archived":false,"fork":false,"pushed_at":"2022-09-07T07:13:07.000Z","size":13,"stargazers_count":5,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-26T05:33:25.434Z","etag":null,"topics":["api","fastapi","python3"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Murf-y.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2022-05-22T10:38:01.000Z","updated_at":"2023-03-24T08:50:08.000Z","dependencies_parsed_at":"2023-05-18T12:11:33.682Z","dependency_job_id":null,"html_url":"https://github.com/Murf-y/LBP-DollarRate-API","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Murf-y%2FLBP-DollarRate-API","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Murf-y%2FLBP-DollarRate-API/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Murf-y%2FLBP-DollarRate-API/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Murf-y%2FLBP-DollarRate-API/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Murf-y","download_url":"https://codeload.github.com/Murf-y/LBP-DollarRate-API/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248553556,"owners_count":21123473,"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":["api","fastapi","python3"],"created_at":"2024-11-07T12:21:45.646Z","updated_at":"2025-04-12T10:33:42.697Z","avatar_url":"https://github.com/Murf-y.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Dollar Rate API 📈\nA FASTAPI that returns the current ```unofficial``` dollar rate from the black market.\nIt uses [FASTAPI](https://fastapi.tiangolo.com/) server hosted on [render](https://render.com).\n\n\u003cbr\u003e\n\u003cbr\u003e\n\u003cbr\u003e\n\u003cbr\u003e\n\n# How to use 🔍️\nSend a ```GET``` request to the following URL to get the current dollar rate:\n\n\n\n\u003ca href=\"https://rate.onrender.com/api/v1/dollarRate\"\u003e\nhttps://rate.onrender.com/api/v1/dollarRate\n\u003c/a\u003e\n\n\u003cbr\u003e\nThe format of the response is JSON, as follows:\n\n```\n{\n    \"buy_rate\":\"number\",\n    \"sell_rate\":\"number\"\n}\n```\n\nCurrently their is only one endpoint ```/api/v1/dollarRate```, but there will be more in the future, for sayrfa rate and other currencies.\n\n\u003cbr\u003e\n\u003cbr\u003e\n\u003cbr\u003e\n\u003cbr\u003e\n\n# How it works ✨\nThe API uses a web scraper ```BeautifulSoup``` to get the current dollar rate from the black market. The scrapper runs on every request, it scrapes the data from: ```https://lbprate.com/``` and returns the data, then the API returns the scraped data.\n\u003cbr\u003e\n\u003cbr\u003e\n\u003cbr\u003e\n\u003cbr\u003e\n# How to run 🚀\n\nFor the Packages:\n``` \npip install -r requirements.txt\n```\nTo run the server:\n```\nuvicorn main:app\n```\n\n\u003cbr\u003e\n\u003cbr\u003e\n\u003cbr\u003e\n\u003cbr\u003e\n\n# Contributing 💡\nFor any issues or suggestions, please open an issue on this Github repository. Contributors are welcome!\n# License 📄\nThis project is licensed under the MIT license. See the LICENSE file for more information.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmurf-y%2Flbp-dollarrate-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmurf-y%2Flbp-dollarrate-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmurf-y%2Flbp-dollarrate-api/lists"}