Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mainanick/dataforseo
https://github.com/mainanick/dataforseo
Last synced: 4 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/mainanick/dataforseo
- Owner: mainanick
- License: mit
- Created: 2024-08-12T17:37:40.000Z (6 months ago)
- Default Branch: main
- Last Pushed: 2024-09-18T12:25:20.000Z (4 months ago)
- Last Synced: 2024-11-20T19:37:55.707Z (2 months ago)
- Language: Go
- Size: 35.2 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Keywords For Site
```golang
package mainimport (
"context"
"log""github.com/mainanick/dataforseo"
)func main() {
dataforseo.DefaultBaseURL = "https://sandbox.dataforseo.com/v3/"
client := dataforseo.NewClient(nil).WithAuthToken("username", "password")keywords, err := client.Keyword.GoogleSiteKeywords(context.TODO(), dataforseo.SiteKeywordRequest{
Target: "github.com",
LocationName: "United States",
})
if err != nil {
log.Fatalln("Error: ", err.Error())
}for _, task := range keywords.Tasks {
log.Println("Results", len(task.Result))
for _, r := range task.Result {
log.Println("Keyword: ", r.Keyword)
}
}}
```