Get Script Tag Count

🔒

Requires read_script_tags access 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:

  1. Quickly checking the number of script tags applied to a storefront.
  2. Monitoring and auditing script tag usage.

Request Parameters

Public Request Parameters

📘

Public Request Parameters

Response Explanation

Public Response Parameters

📘

Public Response Parameters

Success Response

FieldTypeDescriptionExample
countint32The total number of script tags in the shop1

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.

FieldTypeExampleDescription
errorString "page not found"Indicates an error encountered during the process

Error Detail

Status CodeMessagePossible ReasonExample Response
400Bad RequestInvalid input format or request structure (e.g., missing required fields or incorrect data types).Bad Request
UnauthorizedThe request is missing valid authentication credentials or the credentials provided are invalid.Unauthorized

API Structure Overview

Language
Credentials
Header
URL
Click Try It! to start a request and see the response here!