Fetch GitHub's public Zen message
GET
/zen
curl -X GET 'https://api.github.com/zen'package main
import ( "context" "net/http")
func main() { ctx := context.Background() req, err := http.NewRequestWithContext(ctx, "GET", "https://api.github.com/zen", nil) if err != nil { panic(err) } resp, err := http.DefaultClient.Do(req) if err != nil { panic(err) } defer resp.Body.Close()}import requests
response = requests.request("GET", "https://api.github.com/zen")print(response.json())const response = await fetch('https://api.github.com/zen', { method: 'GET' });const data = await response.json();Responses
Section titled “ Responses ”GitHub Zen message
Media type text/plain
string