For AI agents: docs.octen.ai/integrations/go-sdk.md
Get API Key
Create a key from the API Platform.
pkg.go.dev
The
github.com/Octen-Team/octen-go module.Install
Requires Go 1.22+.Quick Start
include_domains is IncludeDomains). Results are under resp.Data, which is nil when the response has no data. Optional request fields are pointers, so set them with octen.Int, octen.String, octen.Bool, or octen.Float64.
The Go SDK covers the APIs on this page. For other APIs, such as Embedding, send HTTP requests as shown in the API reference.
Broad Search
Decompose a query into sub-queries, search them concurrently, and get results grouped per sub-query. Best for comparisons, surveys, and multi-angle questions.Web Search
Search the live web and get ranked results with model-ready highlights and optional full content. Best for search bars, answer engines, and news lookup.Web Search Premier
Search the live web with deeper retrieval and reranking, so the page that holds the answer ranks higher. Takes the same parameters as Web Search and returns the same response. Best for agent questions, specific facts, and named pages.News Search
Search live news and get ranked articles, with related coverage grouped into storylines. Best for breaking news, media monitoring, and story tracking.Business Search
Get the companies and people behind a query as entity cards, alongside ranked sources. Best for company due diligence, people lookup, and competitor comparison.Place Search
Find places around a point or in a named area as cards with address, coordinates, phone, opening hours, and rating. Best for nearby recommendations, local lookup, and opening hours.Pulse Search
Predict the URL a query points to. Best for docs, help pages, and official sites.Image Search
Search images by a text query or a reference image. Best for image lookup and visual references.Design Search
Search real web pages, app screens, and slides, and get each as an image with its design values, plus web results on the same query. Best for landing pages, app screens, and slide decks.Extract
Fetch 1-20 URLs in one call and get clean markdown or text. Best for reading pages, cleaning articles, and knowledge ingestion.Configuration
Error Handling
WithMaxRetries times. Connection errors before the request is sent are also retried. Timeouts are not retried.
Include RequestID when you contact support.
Last modified on November 24, 2026