## Get bot details `client.Radar.Bots.Get(ctx, botSlug, query) (*BotGetResponse, error)` **get** `/radar/bots/{bot_slug}` Retrieves the requested bot information. ### Parameters - `botSlug string` Bot slug. - `query BotGetParams` - `Format param.Field[BotGetParamsFormat]` Format in which results will be returned. - `const BotGetParamsFormatJson BotGetParamsFormat = "JSON"` - `const BotGetParamsFormatCsv BotGetParamsFormat = "CSV"` ### Returns - `type BotGetResponse struct{…}` - `Bot BotGetResponseBot` - `Category string` The category of the bot. - `Description string` A summary for the bot (e.g., purpose). - `Kind string` The kind of the bot. - `Name string` The name of the bot. - `Operator string` The organization that owns and operates the bot. - `OperatorURL string` The link to the bot documentation. - `Slug string` A kebab-case identifier derived from the bot name. - `UserAgentPatterns []string` - `UserAgents []string` ### Example ```go package main import ( "context" "fmt" "github.com/cloudflare/cloudflare-go" "github.com/cloudflare/cloudflare-go/option" "github.com/cloudflare/cloudflare-go/radar" ) func main() { client := cloudflare.NewClient( option.WithAPIToken("Sn3lZJTBX6kkg7OdcBUAxOO963GEIyGQqnFTOFYY"), ) bot, err := client.Radar.Bots.Get( context.TODO(), "gptbot", radar.BotGetParams{ }, ) if err != nil { panic(err.Error()) } fmt.Printf("%+v\n", bot.Bot) } ``` #### Response ```json { "result": { "bot": { "category": "AI_CRAWLER", "description": "OpenAI/ChatGPT's web crawler", "kind": "AGENT", "name": "GPTBot", "operator": "OpenAI", "operatorUrl": "https://platform.openai.com/docs/bots", "slug": "gptbot", "userAgentPatterns": [ "GPTBot" ], "userAgents": [ "GPTBot" ] } }, "success": true } ```