# Connect to the SNCF ticket price API

**Use case:** 

Connect to the unofficial ticket price API for SNCF. Search for connections, find cheap tickets, and integrate the data into your application.

## Input

```json
{
  "from": "Marseille",
  "to": "Paris",
  "adults": 1,
  "maxResults": 20
}
```

## Output

```json
{
  "from": {
    "label": "From",
    "format": "string"
  },
  "to": {
    "label": "To",
    "format": "string"
  },
  "departure": {
    "label": "Departure",
    "format": "string"
  },
  "arrival": {
    "label": "Arrival",
    "format": "string"
  },
  "durationLabel": {
    "label": "Duration",
    "format": "string"
  },
  "transfers": {
    "label": "Transfers",
    "format": "integer"
  },
  "transporter": {
    "label": "Service",
    "format": "string"
  },
  "priceAmount": {
    "label": "Price",
    "format": "number"
  },
  "priceCurrency": {
    "label": "Currency",
    "format": "string"
  },
  "legs": {
    "label": "Legs",
    "format": "array"
  }
}
```

## About this Actor

This example demonstrates how to use [SNCF Train Ticket and Connection Scraper](https://apify.com/jindrich.bar/sncf-train-ticket-scraper) with a specific input configuration. Visit the [Actor detail page](https://apify.com/jindrich.bar/sncf-train-ticket-scraper) to learn more, explore other use cases, and run it yourself.