Popup Title
Popup Message
Warning: a modern web browser is required to use this website.
We detected that you may have an out of date or unsupported web browser. This tool, like many others on this site and across the web uses features only available in new web browsers. We reccommend updating your current browser or downloading Firefox or Chrome.
We offer a few ways for you to interact with our palette list with your program.
The current main function of the palette API is downloading information about a single palette to your program. You can do this either by having your users type in a palette's slug (the identifer used in our URLs), or with the Open in Software link.
We provide palette list viewers with a new option for downloading palettes, called Open. This uses a custom URI which will pass the palette's slug to your program, which you can then use to download the required information from Lospec.
In order to utilize custom URI schemes, your software must register itself with your operating system as something that can open our URI. Users will then be prompted to choose the software to open them with, or open with their chosen program automatically.
Test it out with this link: Download Greyt-bit
We offer two methods for recieving palette info through our API: json and csv. Both contain the same information, so you should use whichever is easier.
JSON is a simple format best used for instances where you have a JSON parser built in, like Node.js. It has 3 keys: name (the palettes full name), author (the authors name on lospec), and colors, which is an array of strings containing the hex value of the color.
{
"name": "Greyt-bit",
"author": "Sam Keddy",
"colors": ["574368","8488d3","cfd3c1","f8c868","8ddb34","69cfef","d1b3ff","ff8e65"]
}
If the palette you requested was not found, you will be returned a 404 status code, and a json file with {error: "file not found"}
The CSV format is simple a string with each value separated by a comma, best used if you don't have a JSON parser, all you need to do is split by the comma character. The first value is always the palette's full name. The second is the author's name, if they have a Lospec account. The rest of the values will be hex values for the colors.
Greyt-bit,Sam Keddy,574368,8488d3,cfd3c1,f8c868,8ddb34,69cfef,d1b3ff,ff8e65
If the palette you requested was not found, you will be returned a 404 status code, and a the text file not found
AD| join Patreon to remove ads!
SESSIONS | USERS | PAGEVIEWS |
---|
Popup Message
Choose one of the services below to link to your Lospec Account:
Already have an account? Login now
Lospec can now be installed as an app with supported web browsers.
Installing Lospec as an app gives you a desktop shortcut and a new streamlined menu interface.
Just click install to instantly add the Lospec app to your desktop!
Your current web browser isn't supported. To install the app, open Lospec.com/app in Google Chrome
Thanks for your feedback! If you want to say more, please post a Suggestion or Bug Report!
our next patreon goal: $324 / $500