Our API allows webmasters to query our scale database to find the ones that fit a specific chord progression. You'll get scale charts, formulas, images or link to us for more info. All you need is a valid API key (+ a link back to https://ukulelescales.com), get one for free!
ak(your API key),
crd(your chord progression) and
uke(Soprano by default)
crdare chords, comma separated (minimum 3!)
C|mfor a Cm)
ukecan be set to "baritone", "d-tuning", "slack-key" or "soprano"
nameName of the scale
formulaThe scale formula
intervalsScale intervals in WH format
notesNotes in the scale
imgFull fretboard image of the scale (returns "false" if we don't have the photo)
urlLink to UkuleleScales.com for more infos
Don't know how to use our API? Here is a working example using the SimpleXML extension (native since PHP 5.0).
Let's say you'd like to get scales that fit a "C, F, Dm, Asus2" chord progression in Slack-Key tuning:
//XML file to load
$api_url = 'https://ukulelescales.com/get?ak=YOUR_API_KEY&crd=C|major,F|major,D|m,A|sus2&uke=slack-key';
//converts the specified XML file into a SimpleXMLElement object
$xml = simplexml_load_file($api_url);
//Navigate through the tree to get the scales
//scale returns the "main scale" that fits. For other scales, use a foreach() loop.
$res = $xml->scale->img;
//print the result (in this case the scale chart)
echo '<img src="'. $res .'" alt="" width="90" height="130" />';