I am looking for a way to find search results from google with javascript.
相关问题
- Is there a limit to how many levels you can nest i
- How to toggle on Order in ReactJS
- void before promise syntax
- Keeping track of variable instances
- Can php detect if javascript is on or not?
Yes, you can use Google's api to fetch search result from Google.
But for that you have to get a API key from Google and then you can use google's api to fetch result.
Please check this official link to know example and more.
Here is an example http get request
you can simply request these http get request from your javascript using
ajax
. In the above example you can replace the word lectures with the key word that you want to search.You can find complete reference of using Javascript to request google's api here.