Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

Gabotronix's avatar

Google API to get google query search results with Laravel 6+ for free?

I already enabled billing in my Google API services, I want to be able to use google api search in laravel to query results as if an user was to use the classic google searchbox, I want to atleast get 10 url results.

What is the best and easier composer package for doing this for free? Is such a thing even possible to do with php?

0 likes
1 reply
automica's avatar

@gabotronix google provide the custom search JSON api to programmatically search and provide 100 searches per day for free and then $5 per 1000 searches after that.

https://developers.google.com/custom-search/v1/overview

To use it from laravel use HTTPClient https://laravel.com/docs/7.x/http-client

It is possible to use a scraper to query google if you want to attempt a free version but it’s less reliable to do this as google monitor and shut down scrapers if they query too frequently.

Please or to participate in this conversation.