Chords DB API
api.uberchord.com · Media
Guitar chord data and finger positions — get chord shapes, finger placements, and images for any chord name. Free, no API key required.
Authentication
No authentication requiredFree to use with no key needed.
Sample Requests
GET
Get chord
Get finger positions for a G major guitar chord.
https://api.uberchord.com/v1/chords?nameset=G
Hover any highlighted part to learn what it does
curl -X GET "https://api.uberchord.com/v1/chords?nameset=G"
import requests
params = {
"nameset": "G"
}
response = requests.get(
"https://api.uberchord.com/v1/chords",
params=params,
)
print(response.json())const url = new URL('https://api.uberchord.com/v1/chords');
url.searchParams.set('nameset', 'G');
const response = await fetch(url);
const data = await response.json();
console.log(data);package main
import (
"fmt"
"io"
"net/http"
"net/url"
)
func main() {
baseURL, _ := url.Parse("https://api.uberchord.com/v1/chords")
q := baseURL.Query()
q.Set("nameset", "G")
baseURL.RawQuery = q.Encode()
targetURL := baseURL.String()
req, _ := http.NewRequest("GET", targetURL, nil)
client := &http.Client{}
resp, _ := client.Do(req)
defer resp.Body.Close()
body, _ := io.ReadAll(resp.Body)
fmt.Println(string(body))
}require "net/http"
require "json"
uri = URI("https://api.uberchord.com/v1/chords")
uri.query = URI.encode_www_form({
"nameset" => "G"
})
http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = uri.scheme == "https"
req = Net::HTTP::Get.new(uri)
res = http.request(req)
puts JSON.parse(res.body)<?php
$url = "https://api.uberchord.com/v1/chords?" . http_build_query([
"nameset" => "G"
]);
$opts = ["http" => [
"method" => "GET",
]];
$ctx = stream_context_create($opts);
$res = file_get_contents($url, false, $ctx);
print_r(json_decode($res, true));Postman Setup Guide
- No API key needed
- GET https://api.uberchord.com/v1/chords?nameset=Cmaj7
- Chord names: G, Am, C, Dm, Em, F, G7, Cadd9, etc.
- Response includes strings array with finger positions
- Also returns image URL for the chord diagram