---
title: "Get a matched web file"
method: POST
path: "/check/getRemoteFile"
tags: ["Results"]
---

# Get a matched web file

`POST /check/getRemoteFile`

## Request

- Base URL: `https://codequiry.com/api/v1`
- URL: `https://codequiry.com/api/v1/check/getRemoteFile`
- Auth: API key in header `apikey`

Fetches the stored content of an external/web match. `location` and `source` come verbatim from a match object in /check/results - do not construct them by hand. You may only read a stored file that one of your own submissions matched against: a file that exists but belongs to another account returns 403, and a location/source pair that matches nothing returns 404.

## Request body

- object
  - `location` string, required
  - `source` string, required

## Response `200`

Stored web file

- object
  - `file` RemoteFile: A stored copy of an external page or file that a submission matched against. The web corpus is shared - one stored file can be matched by many submissions - so a row carries no submission or timestamp of its own.
    - `id` integer
    - `filedir` string: Path/name of the file within the stored source.
    - `filename` string, nullable
    - `content` string: The stored source text.
    - `language_id` integer
    - `location` string: Display label for the match, echoed from the match object.
    - `source` string: Origin URL, echoed from the match object.

## Other responses

- `401`: Missing or invalid API key. The API key is checked before any endpoint logic runs, so this is returned for every operation.
- `402`: The account is suspended for an unpaid invoice. Every endpoint returns this until the invoice is paid from the billing dashboard; it is not retryable and the request was not performed.
- `403`: Not permitted (e.g. free-trial limitation, or a read-only demo check).
- `404`: Resource not found or not owned by this account.
- `422`: Request validation failed.
- `429`: Rate limit exceeded: more than 60 requests in one minute from this IP. Retry after the number of seconds in the Retry-After header. Successful responses carry X-RateLimit-Limit and X-RateLimit-Remaining too, so you can pace a client without waiting to be refused.

---

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