# Get Speedtest Files

`GET https://api.torbox.app/v1/api/speedtest`

- Operation ID: `get_speedtest_files`
- Group: General
- Auth: none

### Overview

Gets CDN speedtest files. This can be used for speedtesting TorBox for users or other usages, such as checking download speeds for verification. Provides all necessary data such as region, server name, and even coordinates. Uses the requesting IP to determine if the server is the closest to the user.

You also have the ability to choose between long tests or short tests via the "test_length" parameter. You may also force the region selection by passing the "region" as a specific region.

### Authorization

None needed.

## Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `user_ip` | query | string | no | Pass a user's IP to get the closest server to them, otherwise will use the calling IP for location. |
| `region` | query | string | no | Determines what cdns are returned. May be any region that TorBox is located in. To get this value, send a request without this value to determine all of the available regions that are available. |
| `test_length` | query | string | no | Determines the size of the file used for the speedtest. May be "long" or "short". Optional. |

## Responses

- `200` Successful Response
- `404` Not Found
- `422` Validation Error
- `429` Too Many Requests
