> [!NOTE]
> **Note:** The Custom Search Site Restricted JSON API endpoints will cease to serve traffic on January 8, 2025.
>
> All Custom Search Site Restricted JSON API
> customers must begin their transition to
> [Google Cloud's Agent Search](https://cloud.google.com/enterprise-search).
> Detailed transition guidance can be found
> [here](https://cloud.google.com/generative-ai-app-builder/docs/migrate-from-cse).
> If you experience issues, contact
> us [here](https://cloud.google.com/generative-ai-app-builder/docs/support).

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

https://www.googleapis.com/customsearch/v1/siterestrict?\[parameters\]

The `[parameters]` are the same as the [Custom Search JSON API](https://developers.google.com/custom-search/v1/using_rest) parameters

## Pricing

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](https://cloud.google.com/billing/docs/how-to/manage-billing-account) in the
API Console.