Documentation IndexFetch the complete documentation index at: /docs/llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /docs/llms.txt
Use this file to discover all available pages before exploring further.
Analytics and usage endpoints
package main import( "context" "os" openrouter "github.com/OpenRouterTeam/go-sdk" "log" ) func main() { ctx := context.Background() s := openrouter.New( openrouter.WithSecurity(os.Getenv("OPENROUTER_API_KEY")), ) res, err := s.Analytics.GetUserActivity(ctx, nil, nil, nil) if err != nil { log.Fatal(err) } if res != nil { // handle response } }
ctx
date
*string
apiKeyHash
userID
opts