younifyd
Menu

Get Scripts

Get All Scripts

GET/content/scripts

Use it in a workflow

  1. Add a step and choose the BigCommerce Content connector.
  2. Pick the Get Scripts action (under Scripts).
  3. Fill in the fields below, then reference the result from later steps as {{getScripts.response.data}}.

Request

Query parameters

pageinteger

Specifies the page number in a limited (paginated) list of products.

limitinteger

Controls the number of items per page in a limited (paginated) list of products.

sortstring

Field name to sort the scripts by. Note: Since `id` increments when new scripts are added, you can use that field to sort by script create date.

One ofnamedescriptiondate_createddate_modified

directionstring

Sort direction. Acceptable values are: `asc`, `desc`.

One ofascdesc

channel_id:inarray<any>

Filters list of scripts by the associated channel_id.

Headers

Acceptstringrequired

The [MIME type](https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types) of the response body.

Default "application/json"

Response

Returns 200 with an object. Read it in later steps with {{getScripts.response.data.<field>}}.

dataarray<any>
metaobject

Data about the response, including pagination and collection totals.

paginationobject6 fields

Data about the response, including pagination and collection totals.

json
{
  "data": [
    null
  ],
  "meta": {
    "pagination": {
      "total": 36,
      "count": 36,
      "per_page": 50,
      "current_page": 1,
      "total_pages": 1,
      "links": {
        "previous": "string",
        "current": "?page=1&limit=50",
        "next": "string"
      }
    }
  }
}

Need more? See the BigCommerce Content guide for connection setup and behaviour shared by every action.

Was this page helpful?