Go SDK

Social media SDK
for Go

Post, schedule, reply and report on 13 platforms from Go, with typed structs and context-first calls.

Install in one lineFrom Go modules, for Go 1.26 or later. The source is on GitHub under MIT.go get github.com/OmniSocials/omnisocials-go
Stdlib onlyNo dependencies beyond net/http and crypto/hmac. Go 1.26+, one line in your go.mod and you are posting.net/http
Context-first, typed errorsEvery call takes a context for timeouts and cancellation. Typed error wrappers match cleanly with errors.As, including RateLimitError with RetryAfter.errors.As

Fits the Go stack you use

The same client in net/http and Gin. Each example schedules a post from your own code.

net/http~/released
1package main
2
3import (
4 "encoding/json"
5 "net/http"
6
7 omnisocials "github.com/OmniSocials/omnisocials-go"
8)
9
10func main() {
11 client, _ := omnisocials.NewClient() // reads OMNISOCIALS_API_KEY
12
13 http.HandleFunc("/launch", func(w http.ResponseWriter, r *http.Request) {
14 post, err := client.Posts.Create(r.Context(), &omnisocials.PostCreateParams{
15 Content: "Launch day is here",
16 Channels: []string{"instagram", "linkedin", "x"},
17 ScheduledAt: "2026-11-03T09:00:00Z",
18 })
19 if err != nil {
20 http.Error(w, err.Error(), http.StatusBadGateway)
21 return
22 }
23 json.NewEncoder(w).Encode(post.Data)
24 })
25
26 http.ListenAndServe(":3000", nil)
27}

One client for the whole API

Posts, media, the inbox, analytics and webhooks sit on the same client, with the same names in every language.

Retries, errors and webhook checks built in

All eight follow one design. They retry what fails for a moment, raise a clear error for the rest and check every webhook signature.

Automatic retriesRate limits, server errors and dropped connections retry with backoff. Retry-After is respected.2 retries by default
Errors you can catchOne class per failure: authentication, validation, not found, rate limit, server and connection.*RateLimitError
Timeouts you setSet the timeout, the retry count and the base URL per client. The defaults fit most apps.30 s per attempt
Webhook checksHMAC-SHA256 with a constant-time compare and a 5-minute replay window.VerifyWebhookSignature()

The Go package

Released with the other seven SDKs from one changelog. Need another language? See all eight on the SDK page.

All SDKs
Package
github.com/OmniSocials/omnisocials-go
Install
Version
0.9.0Released Oct 5, 2026
Requires
Go 1.26 or later
Dependencies
Standard library only
Client
omnisocials.NewClient()
Responses
Typed structs
Webhooks
VerifyWebhookSignature()

Frequently
Asked Questions

Robert Ligthart
Robert LigthartFounder of OmniSocials
Ask me a question

Robert Ligthart
Still have a question?Ask Robert, the founder
Ask

Install it.Post today.

The SDKs, the API, the CLI and the MCP server come with every plan: $10 per seat per month, billed annually.