Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/blackiq/tgju-api
TGJU API
https://github.com/blackiq/tgju-api
api coin currency flask gold jupyter-notebook tgju
Last synced: 25 days ago
JSON representation
TGJU API
- Host: GitHub
- URL: https://github.com/blackiq/tgju-api
- Owner: BlackIQ
- Created: 2023-05-30T17:59:05.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-09-12T04:10:16.000Z (over 1 year ago)
- Last Synced: 2024-11-13T00:31:47.989Z (3 months ago)
- Topics: api, coin, currency, flask, gold, jupyter-notebook, tgju
- Language: Jupyter Notebook
- Homepage: https://tgju.amirhossein.info/api
- Size: 17.6 KB
- Stars: 4
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# TGJU API
Just a simple project to scrap [tgju.org](https://www.tgju.org). Here I just parse data and return them.
## Docs
You can use **Swagger** to test. [Open Swagger](https://app.swaggerhub.com/apis-docs/AMIRHOSSEINMOHAMMADI/TGJU/1.0.0).
## Notebook
The notebook is just for testing.
## API
So, I used notebooks as I said to scrap data. Now used it in an API.
### Routes
- baseUrl: [https://tgju.amirhossein.info/api](https://tgju.amirhossein.info/api)
Here are routes.
#### `/price/:of`
In `/price` route we have a param named `of`. This item can be one of items below:
- gold: To get gold prices
- currency: To get currencies pricesIf `of` is not in the list, you will get 404 errror with this data:
```json
{
"message": "Invalid"
}
```Example:
- [https://tgju.amirhossein.info/api/price/gold](https://tgju.amirhossein.info/api/price/gold) -> Gold
- [https://tgju.amirhossein.info/api/price/currency](https://tgju.amirhossein.info/api/price/currency) -> Currency