---
title: "Download the file an accept_binary request fetched"
method: GET
path: "/v1/scrape/{request_id}/file"
tags: ["scrape"]
---

# Download the file an accept_binary request fetched

`GET /v1/scrape/{request_id}/file`

## Request

- Base URL: `https://barchin.net/api`
- URL: `https://barchin.net/api/v1/scrape/{request_id}/file`
- Auth: HTTP bearer

Stream the file a ``POST /v1/scrape`` request with ``accept_binary`` fetched —
what ``result.download_url`` points at.

Same bearer as the rest of the API and only the caller's own requests: an unknown
or other-user request is a 404, so ids cannot be probed. The file is kept for the
result retention window; after that (or for a page request, which never has one)
it is ``file_not_found``.

## Path parameters

- `request_id` string, uuid, required

## Response `200`

فایل دریافت‌شده

## Other responses

- `400`: Bad Request
- `401`: Unauthorized
- `403`: Forbidden
- `404`: Not Found
- `422`: Unprocessable Entity
- `429`: Too Many Requests

---

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