---
title: "Fetches a file of a published version as it is"
method: GET
path: "/sources/{publicKey}/versions/{version}/raw/{path}"
tags: ["Open source"]
---

# Fetches a file of a published version as it is

`GET /sources/{publicKey}/versions/{version}/raw/{path}`

## Request

- Base URL: `https://genhttp.dev/api/v1`
- URL: `https://genhttp.dev/api/v1/sources/{publicKey}/versions/{version}/raw/{path}`
- Auth: none declared

A picture as a picture, anything else as plain text or as bytes - never as something a browser would run: a page
or a script is sent as text, under a sandboxing content security policy. Bytes, and anything asked for with
`download`, are sent to be saved.

## Path parameters

- `publicKey` string, required
- `version` integer, required
- `path` string, required

## Query parameters

- `download` string

## Response `200`

The file: a picture, `text/plain` or `application/octet-stream`

## Other responses

- `404`: There is no published source at this public key, it has no such version, or the version has no such file.

---

[API](https://skmtc.dev/genhttp/apis/genhttp-lambda-api.md) · [All operations](https://skmtc.dev/genhttp/apis/genhttp-lambda-api/llms.txt) · [OpenAPI document](https://skmtc.dev/genhttp/apis/genhttp-lambda-api/revisions/8b36699e03df?raw)
