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
(Tuning)uke
(Soprano by default)crd
are chords, comma separated (minimum 3!)C|m
for a Cm) uke
can be set to "baritone", "d-tuning", "slack-key" or "soprano"name
Name of the scaleformula
The scale formulaintervals
Scale intervals in WH formatnotes
Notes in the scaleimg
Full fretboard image of the scale (returns "false" if we don't have the photo)url
Link to UkuleleScales.com for more infosDon'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:
<?php
//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[0] returns the "main scale" that fits. For other scales, use a foreach() loop.
$res = $xml->scale[0]->img;
//print the result (in this case the scale chart)
echo '<img src="'. $res .'" alt="" width="90" height="130" />';
Please contact us or visit our Facebook Page if you need help using our API.