Home:ALL Converter>Getting a cx ID for custom search, Google API - Python

Getting a cx ID for custom search, Google API - Python

Ask Time:2011-07-03T17:38:02         Author:Paul

Json Formatter

How can I get a generic cx ID for using the custom search API in Python? http://code.google.com/p/google-api-python-client/source/browse/samples/customsearch/main.py

From what I have read I understand that this cx ID is for certain sites only(when creating a custom search engine it asks me for specific sites), but I want it to search on google, so I can get the first 3-5 results from a google-search.

So I want to search on GOOGLE using Custom Search API, I already got a Developer Key, I just need to find how can I get an cx ID for searching on google, not a personal site, or something like that.

Author:Paul,eproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/6562125/getting-a-cx-id-for-custom-search-google-api-python
name-it :

As of 2020\n\nGo to https://cse.google.com/all\nSelect your search engine or Create one and go into that\nYou can find the CX id titled as "Search engine ID"\nPublic URL also has the cx id in the Query param as ?cx=**\n\n2012 Answer outdated.\nhere you can find the cx id http://www.google.com/cse/manage/all. look for My search engines then choose from the list",
2012-12-20T13:54:19
user4280261 :

As of 2017 (this may be outdated in the future), here are the steps:\n\n1) After getting the API key (under Custom Search API) here\n\n2) Head to CSE home\n\n3) Click on Add below Edit Search Engine\n\n4) You'll get a search box, type in www.google.com and then click on Create at the bottom\n\n5) You'll get your cx code (called Search Engine ID) to use with your API key",
2017-06-03T15:36:52
Paul :

Solved:\nGo to your \n\nCustom Search Engine -> \n Edit Search Engine -> \n Basics -> \n Sites to Search -> \n select: Search the entire web \n\n\nbut emphasize included sites.",
2012-08-11T11:18:44
yy