Avançar para o conteúdo principal

How to Use the SerpApi API with Go: Complete Tutorial for Beginners# How to Use the SerpApi API with

How to Search Google Jobs in Real-Time with Go and SerpApi

  •Suggested slug: `go-serpapi-google-jobs-tutorial` •Full Post:* > Searching for jobs manually on Google Jobs is slow. What if you could monitor "Golang Developer" jobs in Luanda, Lisbon, and remote with just a few lines of Go? > > I'm °Pires  Aurélio , a Go Developer Advocate focused on the Lusophone community. I work 100% with written, async communication, which is why my focus is on crystal-clear documentation. > > •LinkedIn: https://www.linkedin.com/in/pires-aurélio-511330385 > •Full code: https://github.com/Aureliopires186/go-serpapi-examples > > •Why SerpApi instead of direct scraping? > > •If you try to do `http.Get` on Google, you will get a CAPTCHA in 2 minutes. SerpApi solves that and returns clean JSON, with official Go support. > > • Practical Tutorial > > In my repository, I created the `01-google-jobs` example that is already production-ready. > > •1. Set your API Key: > ```bash > export SERPAPI_KEY=your...

"SerpApi with Go: 3 Parameters Every Dev Needs to Know"*

 # SerpApi with Go: 3 Parameters Every Dev Needs to Know


In the last tutorial we did the basic search.  

Today we're leveling it up.


These 3 parameters took me from "just testing" to "actually usable".


### 1. `hl` - Result Language

`hl=en` = Description in English  

`hl=pt` = Description in Portuguese  


Why it matters: If you're searching for jobs from Angola to apply abroad, you need `hl=en`


### 2. `location` - Filter by City/Country/Remote

Ex: `location=United States` or `location=Remote`  

Without this you only get what Google thinks is near you.


### 3. `google_domain` - Which Google domain to search

Ex: `google_domain=google.co.uk` for United Kingdom  

Ex: `google_domain=google.ca` for Canada  


### Updated Code

```go

params.Add("engine", "google_jobs")

params.Add("q", "Golang Developer Remote")

params.Add("location", "United States")

params.Add("hl", "en")

params.Add("api_key", apiKey).                                                                         

By: Pires Aurélio 

https://github.com/Aureliopires186/SerpApi-Go-job-Scraper-

https://www.linkedin.com/in/pires-aur%C3%A9lio-511330385

Comentários

Enviar um comentário

Hello, thank you very much for your feedback. Feel free to explore more about the practical tutorial.

Pires Aurélio