# Sites

The Sites API lets you retrieve all sites, retrieve details about a specific site, list pages of a site, and retrieve a site ID associated with an item ID.

## List sites

 - [GET /api/v1/sites](https://api-docs.sitecore.com/sai/agent-api/sites/sites-get_sites_list.md): Retrieves a list of available sites with their basic information including name, display name, and URL.

## Retrieve the site details

 - [GET /api/v1/sites/{siteId}](https://api-docs.sitecore.com/sai/agent-api/sites/sites-get_site_details.md): Retrieves the details of a specific site including its  ID, name, and root path.

## List pages of a site

 - [GET /api/v1/sites/{siteName}/pages](https://api-docs.sitecore.com/sai/agent-api/sites/sites-get_all_pages_by_site.md): Retrieves a list of pages for a specific site, including each page's ID and path. You can optionally filter the pages by language.

## Retrieve a site ID from an item ID

 - [GET /api/v1/sites/site-id-from-item/{itemId}](https://api-docs.sitecore.com/sai/agent-api/sites/sites-get_site_id_from_item.md): Retrieves the site ID associated with a specific item ID. This is useful for determining which site an item belongs to.

