Client Libraries

Go

Call the ByteKit REST API from Go with the standard library.

ByteKit is a plain REST API. There is no Go SDK — and you do not need one. The TypeScript and Python SDKs are thin wrappers over the same HTTP endpoints, so calling ByteKit from Go is just a standard net/http request.

package main

import (
	"bytes"
	"fmt"
	"io"
	"net/http"
)

func main() {
	body := bytes.NewBufferString(`{"url":"https://example.com","formats":["markdown"]}`)
	req, _ := http.NewRequest("POST", "https://api.bytekit.com/v1/scrape", body)
	req.Header.Set("Authorization", "Bearer sk_live_your_api_key_here")
	req.Header.Set("Content-Type", "application/json")

	resp, err := http.DefaultClient.Do(req)
	if err != nil {
		panic(err)
	}
	defer resp.Body.Close()

	out, _ := io.ReadAll(resp.Body)
	fmt.Println(string(out))
}

Next steps

On this page