Welcome to ImageClock!
This web app returns the current time as an image. Use the /api/time endpoint with the following query parameters:
- font: The font name (e.g., Arial, Pixel).
- fontURL (optional): A URL to a google fonts link (eg. https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100..900;1,100..900&display=swap).
- tz: The time zone (e.g., America/New_York).
- fontSize (optional): The font size in pixels (default: 40).
- color (optional): The text color in RGB hex format (e.g., #FF0000).
- bgColor (optional): The background color in RGB hex format or transparent (default: transparent).
Example Usage:
- /api/time?font=Arial&tz=America/New_York&fontSize=50&color=#FF0000&bgColor=#FFFFFF
- /api/time?font=Pixel&tz=UTC&fontSize=30&color=#0000FF&bgColor=transparent
- /api/time?fontURL=https://fonts.cdnfonts.com/s/19795/PublicPixel-z84yD.woff
Test the API: