---
title: "Retrieve a raw snippet"
method: GET
path: "/api/v4/snippets/{id}/raw"
tags: ["snippets"]
---

# Retrieve a raw snippet

`GET /api/v4/snippets/{id}/raw`

## Request

- Base URL: `https://gitlab.com`
- URL: `https://gitlab.com/api/v4/snippets/{id}/raw`
- Auth: none declared

Retrieves the raw contents of a specified snippet as plain text

## Path parameters

- `id` integer, required

## Response `200`

Retrieve a raw snippet

## Other responses

- `404`: Not found

---

[API](https://skmtc.dev/gitlab/apis/gitlab-api.md) - [All operations](https://skmtc.dev/gitlab/apis/gitlab-api/llms.txt) - [OpenAPI document](https://skmtc.dev/gitlab/apis/gitlab-api/revisions/b234947ef3f2?raw)
