• The moderator of this forum is jetou.
  • Welcome to Smogon! Take a moment to read the Introduction to Smogon for a run-down on everything Smogon, and make sure you take some time to read the global rules.

Programming chiy.uk - a webserver for high quality pokemon art

https://chiy.uk/

github repo

API
The basic get request you can make is https://chiy.uk/full/bulbasaur. This will return a png file of the pokemon bulbasaur. Pokemon names contain spaces and some weird apostrophes, these get encoded out of the images and replaced with %20 or %27 respectively.

You can make a post request to https://chiy.uk/getroute and get back the encoded pokemon name from which you can build a route to get back an image. It is important to use https because http requests get redirected and may cause issues with cloudflare getting in the middle.

Curl example:
Code:
Linux:
user@pc:~# curl -X POST https://chiy.uk/getroute -H "Content-Type: text/plain" -d 'flutter mane'
flutter%20mane
Windows:
PS C:\> curl.exe -X POST https://chiy.uk/getroute -H "Content-Type: text/plain" -d 'flutter mane'
flutter%20mane

An example usage for the /getroute api would be in combination with the smogon dex.

Quality options
There are full quality (varying sizes), 1024x1024 and 256x256 resolution images found on the server, with the respective routes: /full, /1024, /256.

This project was made with the intention of providing a quality source of images for my extension pokepastefix. I am currently self hosting this web server through a cloud provider. It may go down as I update it or if bandwidth limits are reached. I am making use of CDNs and image compression to make usage relatively cheap. If you have any suggestions for improvements or any requests feel free to discuss in this thread.
 
Last edited:
The old CAP site is antiquated unfortunately, and since you're using this largely as an addition to pokepastefix I'm not sure if there's a good repository for official CAP designs with transparent backgrounds. I'll see if anything can be done to help when I have time tomorrow.
 
Back
Top