Skip to content

Google API

sreenidhithallam edited this page Dec 14, 2016 · 1 revision

GOOGLE API

Creating the Custom Search Engine

  • go to the link https://cse.google.com and click create Custom Search Engine
  • you have to give at least one website in site to search and a name to your search engine then click create
  • click control panel near modify your search engine where you can get your engine-ID and edit other things
  • change the site to search from Sites to search Search only included sites to Sites to search Search the entire web but emphasize included sites to search all the websites the click update

Setting up Custom Search API and API key

  • go to the link https://console.developers.google.com and click create project
  • give the name for the project and click create
  • you will be redirected to library in api manager search Custom Search API in the search bar and press enter then click enable
  • after enabling you will be prompt to create API key for that API click go to Credentials then click the button why do i need api key then click done
  • An API key will be generated and make note of the API key you generate
  • you can create as many as API keys you want by clicking the create credentials button

Google API Emulator

  • after enabling APIs u can view & disable them in your dashboard
  • click any of the enabled API in the dashboard you can see the statistics of that API usage in your project
  • click Try this API in APIs Explorer u can try the API in the google emulator but you have to provide your Engine-ID

The API Search

  • apart from q,cx & key there are much more parameters which you can explorer

NOTES

  • Every API will return only the 1st 100 results
  • After 10 times an API key will expire
  • You should make note of the Engine id and API KEY
Clone this wiki locally