Skip to content

Shifter's search engine results API complete SDK for Golang.

Notifications You must be signed in to change notification settings

shifter-io/go-serp-sdk

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Shifter's SERP Go SDK

Shifter SERP is an API that allows scraping various search engines such as Google, Bing, Yandex, etc. while using rotating proxies to prevent bans. This SDK for Go makes the usage of the API easier to implement in any project you have.

Installation

You must have Go 1.16 installed.

Run the following command to add the package:

go get -u github.com/shifter-io/go-serp-sdk

Quick Start

Use the following code to test the SDK:

package main

import (
	"fmt"
	serp "github.com/shifter-io/go-serp-sdk"
)

func main()  {

	response, err := serp.GoogleSearch(serp.GoogleSearchParams{
		ApiKey: "{API_KEY}",
		Q: "pizza",
	})

	if err != nil {
		panic(err)
	}

	results := response["organic_results"].([]interface{})
	firstResult := results[0].(map[string]interface{})
	fmt.Println(firstResult["title"].(string))

}

About

Shifter's search engine results API complete SDK for Golang.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages