I want to link directly to the first Google search result, is it possible?
I would be using a very specific search query, including site:specificsite.example
. Like a direct-link to the "I'm feeling lucky"-button.
Example: https://www.google.no/search?q=how+do+i+get+a+facebook+pixel+site%3Afacebook.com
From the top of my head, I'd think either a PHP curl request to either Google API or to the normal Google search site, and then echoing the first result as a link. OR doing the same, but with AJAX.
But I'm guessing there must be a more straight forward way?
PS: I don't want a discussion about if it's a good idea or not, just if it's possible or not, and maybe a hint on how to do it most simple.