---
title: "scriptTag"
description: "Find the script tag by ID."
doc_type: graphql
doc_category: adminGraphQL
doc_version: v20270301
source_url:
  html: 'https://developer.shopline.com/docs/admin-graph-ql-api/online-store/queries/script-tag'
  md: 'https://developer.shopline.com/docs/admin-graph-ql-api/online-store/queries/script-tag.md'
---
# scriptTag

Find the script tag by ID.

- **API Version:** v20270301
- **API Type:** Admin
- **API Protocol:** GraphQL
- **Operation Type:** Query

## Type Signature

`ScriptTag`

## Arguments

* `id`

  [ID](https://developer.shopline.com/docs/admin-graph-ql-api/common/scalars/id.md)

  The ID of the script tag to send back.

## Returns

* `createdAt`

  [Date](https://developer.shopline.com/docs/admin-graph-ql-api/common/scalars/date.md)

  Script tag creation date and time.
  
  

* `displayScope`

  [ScriptTagDisplayScope](https://developer.shopline.com/docs/admin-graph-ql-api/online-store/enums/script-tag-display-scope.md)

  Script tag should be included on one or more pages in the online store.

* `id`

  [ID](https://developer.shopline.com/docs/admin-graph-ql-api/common/scalars/id.md)

  Unique global identifier.

* `src`

  [URL](https://developer.shopline.com/docs/admin-graph-ql-api/common/scalars/url.md)

  The web address of the remote script.

* `updatedAt`

  [Date](https://developer.shopline.com/docs/admin-graph-ql-api/common/scalars/date.md)

  Date and time when the script tag was last modified.

## Code Example

```graphql
 {
	scriptTag(id ) 
		 {
			# ScriptTag fields
		}
}
```

## Error Handling

For detailed information about common codes, see [Status and error codes](https://developer.shopline.com/docs/apps/api-instructions-for-use/graph-ql-admin-api/overview.md#status-and-error-codes).

