# 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.

```go
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

- [API Reference](https://bytekit.com/docs/api) — every endpoint, request, and response.
- [TypeScript SDK](https://bytekit.com/docs/libraries/typescript) and [Python SDK](https://bytekit.com/docs/libraries/python) — typed clients over the same REST API.