Stay organized with collections
Save and categorize content based on your preferences.
This document describes how to use the Custom Search Site Restricted JSON API.
About the Custom Search Site Restricted JSON API
If your Programmable Search Engine is restricted to only searching specific sites (10 or fewer),
you can use the Custom Search Site Restricted JSON API. This API is similar to the
Custom Search JSON API except this version has no daily query limit. To use this
version, confirm that you see 10 or fewer sites to search in the “Sites to
Search” section of your Programmable Search Engine control panel, there are no global top level
domain patterns, and that “Search the entire web” is set to OFF.
When using the Custom Search Site Restricted JSON API endpoint, be mindful that if your
Programmable Search Engine configuration is changed so that it does not conform with the site
restriction rules above, the Custom Search Site Restricted JSON API may not return the
expected results.
Making a request
Making a request to Custom Search Site Restricted JSON API is similar to making a request to
Custom Search JSON API; however, the URI is different. The format for the
Custom Search Site Restricted JSON API is
Custom Search Site Restricted JSON API requests cost $5 per 1000 queries and there is no
daily query limit. You may sign up for billing in the
API Console.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-11-07 UTC."],[[["The Custom Search Site Restricted JSON API will be discontinued on January 8, 2025, and users should transition to Google Cloud's Vertex AI Search."],["This API allows searching within 10 or fewer specific sites without a daily query limit, unlike the standard Custom Search JSON API."],["To utilize this API, ensure your Programmable Search Engine is configured to search only specific sites with \"Search the entire web\" disabled."],["The API endpoint for the Site Restricted version differs slightly but uses the same parameters as the standard Custom Search JSON API."],["Each request to the Custom Search Site Restricted JSON API costs $5 per 1000 queries, and billing can be set up through the API Console."]]],[]]