Kubernetes
kubernetes · Developer Tools
Kubernetes API
Authentication
No authentication requiredFree to use with no key needed.
Sample Requests
GET
getCoreAPIVersions
get available API versions
https://api.apis.guru/v2/specs/kubernetes.io/unversioned/api
Hover any highlighted part to learn what it does
curl -X GET "https://api.apis.guru/v2/specs/kubernetes.io/unversioned/api/"
import requests
response = requests.get(
"https://api.apis.guru/v2/specs/kubernetes.io/unversioned/api/",
)
print(response.json())const url = 'https://api.apis.guru/v2/specs/kubernetes.io/unversioned/api/'; const response = await fetch(url); const data = await response.json(); console.log(data);
package main
import (
"fmt"
"io"
"net/http"
)
func main() {
targetURL := "https://api.apis.guru/v2/specs/kubernetes.io/unversioned/api/"
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.apis.guru/v2/specs/kubernetes.io/unversioned/api/")
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.apis.guru/v2/specs/kubernetes.io/unversioned/api/";
$opts = ["http" => [
"method" => "GET",
]];
$ctx = stream_context_create($opts);
$res = file_get_contents($url, false, $ctx);
print_r(json_decode($res, true));
GET
getAPIVersions
get available API versions
https://api.apis.guru/v2/specs/kubernetes.io/unversioned/apis
Hover any highlighted part to learn what it does
curl -X GET "https://api.apis.guru/v2/specs/kubernetes.io/unversioned/apis/"
import requests
response = requests.get(
"https://api.apis.guru/v2/specs/kubernetes.io/unversioned/apis/",
)
print(response.json())const url = 'https://api.apis.guru/v2/specs/kubernetes.io/unversioned/apis/'; const response = await fetch(url); const data = await response.json(); console.log(data);
package main
import (
"fmt"
"io"
"net/http"
)
func main() {
targetURL := "https://api.apis.guru/v2/specs/kubernetes.io/unversioned/apis/"
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.apis.guru/v2/specs/kubernetes.io/unversioned/apis/")
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.apis.guru/v2/specs/kubernetes.io/unversioned/apis/";
$opts = ["http" => [
"method" => "GET",
]];
$ctx = stream_context_create($opts);
$res = file_get_contents($url, false, $ctx);
print_r(json_decode($res, true));
GET
getCodeVersion
get the code version
https://api.apis.guru/v2/specs/kubernetes.io/unversioned/version
Hover any highlighted part to learn what it does
curl -X GET "https://api.apis.guru/v2/specs/kubernetes.io/unversioned/version/"
import requests
response = requests.get(
"https://api.apis.guru/v2/specs/kubernetes.io/unversioned/version/",
)
print(response.json())const url = 'https://api.apis.guru/v2/specs/kubernetes.io/unversioned/version/'; const response = await fetch(url); const data = await response.json(); console.log(data);
package main
import (
"fmt"
"io"
"net/http"
)
func main() {
targetURL := "https://api.apis.guru/v2/specs/kubernetes.io/unversioned/version/"
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.apis.guru/v2/specs/kubernetes.io/unversioned/version/")
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.apis.guru/v2/specs/kubernetes.io/unversioned/version/";
$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
- See official documentation for authentication and setup.
What can you build with Kubernetes?
Kubernetes is a Developer Tools API. Developers commonly use developer tools APIs for:
- automating code review and quality checks
- integrating CI/CD pipelines and build systems
- managing feature flags and A/B tests
- monitoring errors and application performance
- generating and validating test data
No authentication required. This API is open — no signup or key needed. Ideal for quick prototypes and public-facing features. Kubernetes is free to use, making it a low-risk choice to experiment with.
New to APIs? Read our beginner's guide