Using the Gray API

The gray API returns Xml or Json objects for shades of gray.

To get the gray of the day:
http://254shadesofgrey.com/api/GrayOfTheDay

To get a specific gray:
http://254shadesofgrey.com/api/gray/67

Show me!



You love OData, right? Sure you do! We all love OData. So you can query all 254 shades of gray using the familiar and widespread OData query syntax.
Get all the shades named by @mrssavageangel
http://254shadesofgrey.com/api/gray?$filter=NamedBy eq 'mrssavageangel'

Get shades of gray from 51 (Default Visual Studio MVC Template Text Gray, #333) to 60 (Gray Blue, #3C3C3C):
http://254shadesofgrey.com/api/gray?$skip=50&$top=10&$orderby=NumericValue