KA
Sucuri Golang client
Install
Install using the "go get" command:
go get github.com/kalbasit/go-sucuri
Usage
Create a new instance given a base URL and an API key, and call Scan
with a given domain to get back the scan result. You can find the base
URL and the API key on the dashboard of your
account.
// create a new client
c, err := sucuri.NewClient("https://monitorxx.sucuri.net", "3ba516ef0db31f7c1b788864cb0adf10b5cc0db5e810c708c4")
if err != nil {
log.Fatalf("error creating a new API client: %s", err)
}
// scan mydomain.com
sr, err := c.Scan("mydomain.com")
if err != nil {
log.Fatalf("error scanning mydomain.com: %s", err)
}
// ... use sr of type *sucuri.ScanResultLicense
All source code is licensed under the MIT License.
On this page
Languages
Go98.1%Makefile1.9%
Contributors
MIT License
Created January 18, 2018
Updated January 31, 2026