---
title: "Gets all scripts."
method: GET
path: "/content/scripts"
tags: ["Script"]
---

# Gets all scripts.

`GET /content/scripts`

## Query parameters

- `page` integer
- `limit` integer
- `sort` 'name' | 'description' | 'date_created' | 'date_modified'
- `direction` 'asc' | 'desc'

## Response `200`

Success.

- ScriptsResponse
  - `data` Script[]
    - `uuid` string, uuid — The primary identifier.
    - `name` string — The user-friendly name.
    - `description` string — The user-friendly description.
    - `html` string — An html string containing exactly one `script` tag. Only present if `kind` is `script_tag`
    - `src` string — The `src` attribute of the script to load. Only present if `kind` is `src`.
    - `auto_uninstall` boolean — Whether to uninstall this script when the app associated with it is removed.
    - `load_method` 'default' | 'async' | 'defer' — The load method to use for the script. Values are `default`, `async`, or `defer`.
    - `location` 'head' | 'footer' — Where on the page to place the script. Values are `head` or `footer`.
    - `visibility` 'storefront' | 'all_pages' | 'checkout' | 'order_confirmation' — Which set of pages the script should load on. The values allowed for this parameter are `storefront`, `all_pages`, `checkout` and `order_confirmation`. Please note that you need to have `Checkout content` scope to use `all_pages` and `checkout`.
    - `kind` 'src' | 'script_tag' — What type of script this is. Values are `src` - a `script` tag will be generated with its `src` attribute set to the value of `src`; `script_tag` - The value of `html` will be injected directly onto the page.
    - `api_client_id` string — The client id of the API user that created this script, or blank if created by other means.
    - `date_created` string, date-time — The date on which this object was initially created.
    - `date_modified` string, date-time — The date on which this object was last updated.
  - `meta` CollectionMeta — Data about the response, including pagination and collection totals.
    - `pagination` Pagination — Data about the response, including pagination and collection totals.
      - `total` integer — Total number of items in the result set.
      - `count` integer — Total number of items in the collection response.
      - `per_page` integer — The amount of items returned in the collection per page, controlled by the limit parameter.
      - `current_page` integer — The page you are currently on within the collection.
      - `total_pages` integer — The total number of pages in the collection.
      - `links` object — Pagination links for the previous and next parts of the whole collection.
        - `previous` string — Link to the previous page returned in the response.
        - `current` string — Link to the current page returned in the response.
        - `next` string — Link to the next page returned in the response.

## Other responses

- `422` — This is the result of missing required fields, or of invalid data. See the response for more details.

---

[API](https://skmtc.net/bigcommerce/apis/bigcommerce-api.md) · [All operations](https://skmtc.net/bigcommerce/apis/bigcommerce-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/bigcommerce/bigcommerce-api/revisions/90efb67b99f3/schema)
