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

1 Answers

Solved: Go to your Custom Search Engine -> Edit Search Engine -> Basics -> Sites to Search -> select: Search the entire web but emphasize included sites.

google custom search api example

How can I get a generic cx ID for using the custom search API in Python?

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.