get https://{shopdomain}.myshoplaza.com/openapi/2022-01/script_tags_new/count
Requires
read_script_tagsaccess scope.More access scope
The Get Script Tag Count API retrieves the total number of script tags available in a shop's storefront. This is useful for determining how many script tags are currently active or available.
This API is especially useful for:
- Quickly checking the number of script tags applied to a storefront.
- Monitoring and auditing script tag usage.
Request Parameters
Public Request Parameters
Response Explanation
Public Response Parameters
Success Response
| Field | Type | Description | Example |
|---|---|---|---|
count | int32 | The total number of script tags in the shop | 1 |
Error Response
Error responses in the API can be represented using two different fields: errors and error. Both fields provide details about issues encountered during request processing. Below is an explanation of the fields with their respective examples and descriptions.
| Field | Type | Example | Description |
|---|---|---|---|
error | String | "page not found" | Indicates an error encountered during the process |
Error Detail
| Status Code | Message | Possible Reason | Example Response |
|---|---|---|---|
| 400 | Bad Request | Invalid input format or request structure (e.g., missing required fields or incorrect data types). | Bad Request |
| Unauthorized | The request is missing valid authentication credentials or the credentials provided are invalid. | Unauthorized |
