---
title: "GET /script/by-name/{mode}/{name}"
method: GET
path: "/script/by-name/{mode}/{name}"
tags: ["Script"]
---

# GET /script/by-name/{mode}/{name}

`GET /script/by-name/{mode}/{name}`

Get a script record by its name.

## Path parameters

- `name` string, required
- `mode` 'json' | 'raw', required

## Query parameters

- `withoutText` boolean

## Response `200`

Success

- object
  - `status` string
  - `data` object
    - `id` number
    - `name` string
    - `source` string
    - `url` object
    - `text` string
    - `httpHeaders` object
    - `lastSaveDate` number
    - `nonce` number

## Other responses

- `default` — Error

---

[API](https://skmtc.dev/phantombuster/apis/phantombuster-api-v2.md) · [All operations](https://skmtc.dev/phantombuster/apis/phantombuster-api-v2/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/phantombuster/phantombuster-api-v2/revisions/acf0049d7c7f/schema)
