get_sites_details_of_a_given_account_tool
Retrieve site details for an account, filtering by site ID, name, or sub-account ID. Returns empty list if site doesn't exist.
Instructions
Fetches the list of sites for a given account. To get a single site details provide the site Id or the site name. Use the most effective filter according to the context, for example, if you have the site ID use it; if you have the site name use it; If you get an empty list, it means that the site does not exist, or you do not have access to it, avoid getting all sites and filter on your side. Terminology: The site name is not always the domain name, to get the list of domains use the domains_get_domains_of_specific_site_tool.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| account_id | Yes | Unique identifier of the sub-account, if the account in context is the main account associated to the used API_ID this field MUST be empty (Optional) | |
| site_ids | No | list of external sites IDs, only sites with those IDs will retrieve, if exists (Optional) | |
| names | No | list of sites names, only sites with those names will retrieve, if exists. (Optional) | |
| sub_account_ids | No | list of subaccount IDs, only sites under the matching subaccounts will retrieve, if exists. (Optional) | |
| page_num | No | ||
| page_size | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |