---
title: "Trainline API: Stations | Perceptlayer"
description: "Stations from Trainline as JSON. 1 credit per successful call."
url: https://perceptlayer.com/apis/trainline/stations
---

[APIs](https://perceptlayer.com/apis) / [Trainline](https://perceptlayer.com/apis/trainline) / Stations

# Trainline: Stations

Stations from Trainline as JSON. 1 credit per successful call.

GET `/v1/trainline/stations`

## Parameters

Send parameters in the query string.

| Parameter | Type | Required | Allowed values |
| --- | --- | --- | --- |
| `query` | string | Required | Up to 100 characters |
| `limit` | integer | Optional | Any |
| `locale` | string | Optional | Any |

## Example request

cURL shell 

```
curl "https://api.perceptlayer.com/v1/trainline/stations" \
  -H "X-API-Key: $API_KEY"
```

[Run this endpoint in the playground](https://perceptlayer.com/apis/trainline?try=stations#playground) with your own parameters. 1 credit per successful call; failed calls are free.
