Scraping Google search result?

Context:

I am trying to dynamically make google search requests. However, it seems like google doesn’t offer an API for it. So my next approach is to use httpoison to make a google search via query parameter and parse through the results.

Problem:

However, I am running to a problem in which google doesn’t recognize my httpoison request as a legitimate request.

Question:

  • Have any of you guys/gals worked with google search?
  • How can I send a legitimate request via HTTPoison?