https://github.com/teddy55codes/dynamicimageapi
An API that returns dynamically generated images.
https://github.com/teddy55codes/dynamicimageapi
Last synced: 6 months ago
JSON representation
An API that returns dynamically generated images.
- Host: GitHub
- URL: https://github.com/teddy55codes/dynamicimageapi
- Owner: Teddy55Codes
- License: mit
- Created: 2023-01-14T18:33:24.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-01-14T22:11:21.000Z (over 1 year ago)
- Last Synced: 2024-01-15T01:21:42.462Z (over 1 year ago)
- Language: C#
- Homepage:
- Size: 23.4 KB
- Stars: 3
- Watchers: 1
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# DynamicImageAPI
This api has different endpoints all based on the premise of dynamic images.
## Endpoints
### Images/Counter
#### parameters
- counterId
default: `"0"`
Is used to create multiple independent counters.
- fontSize
default: `12`Set the fontsize for the response image.
- hexColordefault: `"#000000"`
Set the text color useful if you want to display the counter in a light and dark theme.`
#### description
Returns an image that displays a counter.
Every time a request is made to a counter the counter will increment by 1.
There can be an almost infinite amount of counter because of the `counterId` parameter.
Each counter has a separate count based on the `counterId`.### Images/Location
#### parameters
- fontSize
default: `12`Set the fontsize for the response image.
- hexColor
default: `"#000000"`Set the text color useful if you want to display the counter in a light and dark theme.
#### description
Returns the name of the city from which the request was made as an image.
This information is fetched from ip-api.com. The specific request that is made is: `http://ip-api.com/json/1.1.1.1?fields=query,status,city,mobile,proxy`.
As of writing this the rate limit for this api is 45 requests per minute.
The location data is cleared every 24h. This is done to always have fresh location data.