get
https://{subdomain}.myshoplaza.com/openapi/2025-06/script_tags
Retrieves a paginated list of all script tags in a shop's storefront.
Requiresread_script_tagaccess scope. More access scope
This Get Script Tag List API endpoint allows developers to retrieve a paginated list of all script tags configured in a Shoplazza store's storefront.
This API is especially useful for:
- Auditing all active script tags on the storefront
- Reviewing script sources and their implementation scope
- Managing client-side integrations and their configurations
Request Parameters
Public Request Parameters
Query Parameters
| Parameter | Type | Required | Description | Example |
|---|---|---|---|---|
cursor | string | No | Pagination cursor for fetching the next set of results | 'cursor_123456789' |
page_size | int32 | No | Number of script tags to return per page (default pagination size applies if not specified) | 20 |
event_type | string | No | Filter script tags by their event type (e.g., 'onload', 'dom_ready') | 'myapp' |
Response Explanation
Public Response Parameters
Successful Response
| Parameter | Type | Example | Description |
|---|---|---|---|
code | string | "200" | HTTP status code |
message | string | "Success" | Operation result message |
data.script_tags | object | - | The updated script tag object |
Script Tag Object
| Parameter | Type | Example | Description |
|---|---|---|---|
id | string | "script_tag_123456789" | Unique identifier for the script tag |
display_scope | string | "index" | Indicates where the script tag is applied |
src | string | "https://shoplazza.com/x.js" | URL of the script file |
event_type | string | "myapp" | The tag type, as specified during creation |
created_at | string | "2025-06-15T10:30:00Z" | Timestamp when the script tag was created (ISO 8601 format) |
updated_at | string | "2025-06-15T11:45:00Z" | Timestamp when the script tag was last updated (ISO 8601 format) |
Error Response
| Field | Type | Example | Description |
|---|---|---|---|
code | string | InvalidParameter | Error http message |
message | string | `` | Error message |
