Google Custom Search Site Restricted JSON API help
New Melchizedec
Rate this article
Share this article
In this article, we will see how to use the Google custom search site restricted JSON API. For people looking to skip coding and directly implement a search for their websites, go here. Custom Search Engine offers very similar functionality to the Google Site Search but comes with a major disadvantage: ads. If you’re not a nonprofit or school then you’ll be stuck with ads. On the plus side, you can monetize the ads by connecting your Adsense account, but you’ll still likely be advertising for competitors. You can try search engines other than google that don’t track you
Custom Search Site Restricted JSON API intro
Points to remember- (if you do not adhere to the following points your API might not return the search results)
Google Custom Search Site Restricted JSON API is similar to the JSON custom search API.
You can search within 10 or lesser websites using this API.
No daily Query limit.
Make sure that the “search the entire web” is set to OFF.
Create your google custom search from https://cse.google.com
Google Custom Search Site Restricted JSON API is of the following format-
Here are the list of all parameters-
On-site search is a crucial feature on a website. When your visitors are on your website, no matter how they arrived, they might want to explore more. Of course, a popular posts widget on the sidebar or related posts listed under every blog post will help them read more content and stay on your site for a long time. But what if they are looking for something really specific on your website? Learn how to add a search bar to your website in HTML
{
"kind": "customsearch#result",
"title": "LinkedIn: Log In or Sign Up",
"htmlTitle": "\u003cb\u003eLinkedIn\u003c/b\u003e: Log In or Sign Up",
"link": "https://www.linkedin.com/",
"displayLink": "www.linkedin.com",
"snippet": "500 million+ members | Manage your professional identity. Build and engage \nwith your professional network. Access knowledge, insights and opportunities.",
"htmlSnippet": "500 million+ members | Manage your professional identity. Build and engage \u003cbr\u003e\nwith your professional network. Access knowledge, insights and opportunities.",
"cacheId": "AszVZRcWxZEJ",
"formattedUrl": "https://www.linkedin.com/",
"htmlFormattedUrl": "https://www.\u003cb\u003elinkedin\u003c/b\u003e.com/",
"pagemap": {
"metatags": [
{
"referrer": "origin",
"pageimpressionid": "b502334b-1c2a-442a-b05b-6883abbfb21b",
"appname": "chrome",
"pagekey": "uno-reg-guest-home",
"treeid": "bjU+kvwgSRWw0apPLysAAA==",
"globaltrackingurl": "//www.linkedin.com/mob/tracking",
"globaltrackingappname": "chrome",
"globaltrackingappid": "webTracking",
"msapplication-tileimage": "https://static.licdn.com/scds/common/u/images/logos/linkedin/logo-in-win8-tile-144_v1.png",
"msapplication-tilecolor": "#0077B5",
"application-name": "LinkedIn",
"remotenavjscontentbaseurl": "https://static.licdn.com/scds/concat/common/js?v=0.1.561",
"lnkd-track-json-lib": "https://static.licdn.com/scds/concat/common/js?h=2jds9coeh4w78ed9wblscv68v-ebbt2vixcc5qz0otts5io08xv",
"apphost": "seo-directory-frontend",
"appversion": "0.1.343",
"appinstance": "i002",
"locale": "en_US",
"baidu-site-verification": "bqQqxRHTnv",
"detectadblock": "//platform.linkedin.com/js/px.js"
}
Adding a search box to a website can quickly get tricky if not done right. Developing a search engine from scratch is never a good idea keeping in mind the cost and quality. Google’s own solution to this was GSS which got shut down and replaced by Google Custom Search. You can learn how to Google search specific website
The Site Restricted JSON API is a variant of the Custom Search JSON API that only searches within the sites you specify in your Programmable Search Engine. It has higher free quotas than the standard API for site-restricted searches.
What is the difference between Custom Search JSON API and Site Restricted API?
The standard Custom Search JSON API can search the entire web or specific sites, while the Site Restricted API only searches your specified sites. The Site Restricted API offers more free queries and is designed for site-specific search implementations.
When should I use the Site Restricted JSON API?
Use the Site Restricted API when you only need to search within your own website or a defined set of sites. It offers better quotas for this use case and is simpler to implement than the full Custom Search API.
New Melchizedec
ExpertRec Search CTO.
Ex-Google Web Search and Google Translate