OpenAny
Get API keyAPI Key
APIDataTravel

sncf-connect logo
SNCF Connect Place Search API

Search SNCF Connect places by name and optionally stations only via REST or OpenAny MCP—with pay-per-use pricing and no subscription. Powered by Apish, pass parameters such as output, q, raw, and retrieve structured data including source place identifier, source place category, source display name, source booking-location reference, and UIC reference for place picker, and identifier display.

Selected price
$0.002 / billing creditPublished pricing
Sellers / APIs
1 / 1
Requests · 30d
0Selected implementation · last 30 days
Success rate · 30d
—No requests in this period
USE THIS API

SNCF Connect Place Search API

Prepare your request, then continue with your agent.

Pricing

$0.002 / billing credit

Calculated from input parameters and actual returned quantities. Estimate the maximum cost before calling.

Provider
API
Pricing
Connect your agent
On this page

Overview

Overview
SNCF Connect Place Search API

SNCF Connect Place Search API

Provide q with at least two characters and optionally stations_only=true. id, booking_code, uic and other code references belong to different source identifier systems and can be unavailable for some place types.

Quick Facts

Fact Value
Access OpenAny REST
Authentication OpenAny API key in the Authorization header
Core inputs Required: q. Optional: stations_only. JSON output; fresh=1 bypasses cache and raw=0 omits raw source blocks.
Selected implementation apish · SNCF Connect place search API
Billing See the pricing area for the selected implementation and request options

What You Can Build

  • Place picker: Keep cities and individual stations distinguishable.
  • Identifier display: Preserve code types instead of merging them.

Returned Data

Field Meaning
places[].id Source place identifier
places[].type Source place category
places[].name Source display name
places[].booking_code Source booking-location reference
places[].uic UIC reference when available
places[].codes Typed source code references

Quick Start

  1. Set OPENANY_API_KEY to your OpenAny API key.
  2. Review the selected implementation and pricing, then adapt the request below to your target.
  3. Check the HTTP response and business result before reading optional fields.
bash
curl --request GET --get \
  https://api.openany.si/v1/agent-apis/apish/sncf-connect/v1/places \
  -H "Authorization: Bearer ${OPENANY_API_KEY}" \
  --data-urlencode output=json \
  --data-urlencode q=bordeaux \
  --data-urlencode raw=0

Request and Response Examples

The response example is a documentation reference and may be abbreviated. The documented request is a calling template; use the published contract and returned response for the selected implementation.

Published SNCF Connect Place Search API implementation contract.

Pricing and Billing

The pricing area reflects the selected API implementation. Review its billing unit and any request-dependent rules before calling; a source service's public availability does not determine OpenAny billing.

Frequently Asked Questions

View FAQ

Related APIs

Playground

Run sends a real API request. Charges follow the published API contract.

Request parameters
Place name (2+ characters).
Optional parameters (6)
`true`: only stations.
0 leaves out the bulky `raw` source blocks (often 10-30x smaller).
Comma-separated fields to return, e.g. `posts.id,posts.title`. Call metadata is always included.
1 skips the 24-hour cache and fetches live.
JSON only for this OpenAny product. Omit output or use json; CSV and NDJSON are not supported.
With output=csv|ndjson: the top-level list to turn into rows (e.g. `reviews`), or `.` for the whole object as one row.

Sample response

Run a request to see the actual response. Published samples are in Examples.

Response result

Sellers

SellerPricingRequests · 30dPerformanceAccess
apishCurrent
SNCF Connect place search API · GET · View API reference
$0.002 / billing credit0
—successP50—
Selected implementation traffic · 11/3/2026 – 12/3/2026 (UTC)
Selected pricing · apishUSD / billing credit
Pricing
$0.002

Calculated from input parameters and actual returned quantities. Estimate the maximum cost before calling.

Statistics use persisted gateway logs from the last 30 days up to now, including today.
Success rate = successful requests / all requests;
P50 = median latency of successful requests.
Prices reflect the published API contract. Contract revision: 3. Price update time: not supplied.

API

Method
GET
Endpoint
https://api.openany.si/v1/agent-apis/apish/sncf-connect/v1/places
Content type
application/json
Authentication
Authorization: Bearer $OPENANY_API_KEY
View request and response examples

Input parameters

Fields in this listing; additional options and input encoding can vary by provider.

ParameterLocationTypeRequiredDescription
qURL query parametersquerystringYes

Place name (2+ characters).

stations_onlyURL query parametersquerystringNo

`true`: only stations.

rawURL query parametersquerystringNo

0 leaves out the bulky `raw` source blocks (often 10-30x smaller).

enum: "0", "1"

fieldsURL query parametersquerystringNo

Comma-separated fields to return, e.g. `posts.id,posts.title`. Call metadata is always included.

freshURL query parametersquerystringNo

1 skips the 24-hour cache and fetches live.

enum: "1"

outputURL query parametersquerystringNo

JSON only for this OpenAny product. Omit output or use json; CSV and NDJSON are not supported.

enum: "json"

recordsURL query parametersquerystringNo

With output=csv|ndjson: the top-level list to turn into rows (e.g. `reviews`), or `.` for the whole object as one row.

Required markers inside a nested object or variant apply when that object or variant is used.

Response structure

Inferred from examples
  • cachedboolean
  • countinteger
  • credits_usedinteger
  • fetched_atstring
  • placesobject[]
    • booking_codestring | null
    • citystring | null
    • codesobject[]
      • typestring
      • valuestring
    • descriptionstring | null
    • idstring
    • kindstring
    • latnull
    • linesstring[]
    • lngnull
    • namestring
    • navitia_idnull | string
    • typestring
    • type_labelstring
    • uicnull | string
    • uic8null | string
  • qstring
  • stations_onlyboolean

Composite rule pricing

Calculated from input parameters and actual returned quantities. Estimate the maximum cost before calling.

Base fee: $0.000000. One matching variant replaces the base fee. Matching add-ons and quantity charges are added.

Fee itemPriceMetering sourceWhenQuantity limit
Actual API.SH credits consumed$0.002000 / billing creditResponse · /credits_used · Numeric valueAlways1 billing credit · Decimal places: 0

Each quantity charge is rounded before summing: ceil. Requests exceeding this cost limit are rejected; it is not a price cap: $0.002000.

Response quantities settle after the response. Before execution, the maximum quantity determines the reservation; unused reservation is released. Missing or invalid quantities are not treated as zero.

Pricing parameters and defaults
[]

Agent integration

Copy the resource contract without sharing an API key.

Download MDView API Markdown

Error handling

StatusNext step
400Check the offering and request fields.
401 / 403Verify your credentials and access permissions.
402Inspect the selected access mode and returned payment requirements.
429Respect the returned rate limit and retry guidance.
5xxInspect the error and usage record before retrying a paid operation.

Examples

Official example · Live API.SH response · Minimal request

Example from the provider's documentation. Field values in your results will differ.

  1. Prepare your environment

    Use a terminal with cURL installed.

    Use an OpenAny API key with shared-balance access. Confirm availability and price before running; a call may charge your balance.

    Set the key in your terminal using the hidden prompt below. Keep its value out of source files and logs.

    Terminal · macOS / Linux
    printf 'OpenAny API key: '
    read -r -s OPENANY_API_KEY
    export OPENANY_API_KEY
    printf '\n'
  2. Run the request

    Paste the complete command below into your terminal.

    Values to replace before running 7

    Review these request fields before running. Keep the published provider and request method unchanged.

    q
    Place name (2+ characters).
    stations_only
    `true`: only stations.
    raw
    0 leaves out the bulky `raw` source blocks (often 10-30x smaller).
    fields
    Comma-separated fields to return, e.g. `posts.id,posts.title`. Call metadata is always included.
    fresh
    1 skips the 24-hour cache and fetches live.
    output
    JSON only for this OpenAny product. Omit output or use json; CSV and NDJSON are not supported.
    records
    With output=csv|ndjson: the top-level list to turn into rows (e.g. `reviews`), or `.` for the whole object as one row.
    Terminal · cURL
    curl \
      'https://api.openany.si/v1/agent-apis/apish/sncf-connect/v1/places?output=json&q=bordeaux&raw=0' \
      -X GET \
      -H "Authorization: Bearer $OPENANY_API_KEY" \
      -H 'Content-Type: application/json'
  3. Check the response

    Sample response · Documented HTTP 200

    Sample response
    {
      "cached": false,
      "count": 26,
      "credits_used": 1,
      "fetched_at": "2026-11-19T12:25:31.448Z",
      "places": [
        {
          "booking_code": "FRBOJ",
          "city": "Bordeaux",
          "codes": [
            {
              "type": "RESARAIL",
              "value": "FRBOJ"
            }
          ],
          "description": "Nouvelle-Aquitaine",
          "id": "CITY_FR_6455058",
          "kind": "transport",
          "lat": null,
          "lines": [],
          "lng": null,
          "name": "Bordeaux",
          "navitia_id": null,
          "type": "CITY",
          "type_label": "Ville",
          "uic": null,
          "uic8": null
        },
        {
          "booking_code": "FRBOJ",
          "city": null,
          "codes": [
            {
              "type": "RESARAIL",
              "value": "FRBOJ"
            },
            {
              "type": "UIC7",
              "value": "8758100"
            },
            {
              "type": "UIC8",
              "value": "87581009"
            },
            {
              "type": "NAVITIA_ID",
              "value": "stop_area:STE:StopArea:OCE87581009"
            }
          ],
          "description": "Nouvelle-Aquitaine",
          "id": "RESARAIL_STA_8758100",
          "kind": "transport",
          "lat": null,
          "lines": [
            "Train",
            "Tramway C",
            "Bus 1",
            "Bus 9",
            "Bus 20",
            "Bus 35",
            "Bus N1",
            "Bus N2",
            "Bus N4",
            "Bus N6",
            "Bus N7",
            "Bus L13",
            "Bus 30D",
            "Bus L31",
            "Bus L32",
            "Bus F41+",
            "Bus L42",
            "Bus F44",
            "Bus L51",
            "Bus Arena",
            "Bus G",
            "Bus Tbnight"
          ],
          "lng": null,
          "name": "Bordeaux Saint-Jean",
          "navitia_id": "stop_area:STE:StopArea:OCE87581009",
          "type": "STATION",
          "type_label": "Gare",
          "uic": "8758100",
          "uic8": "87581009"
        },
        {
          "booking_code": null,
          "city": "Artigues-près-Bordeaux",
          "codes": [],
          "description": "Nouvelle-Aquitaine",
          "id": "CITY_FR_6448384",
          "kind": "transport",
          "lat": null,
          "lines": [],
          "lng": null,
          "name": "Artigues-près-Bordeaux",
          "navitia_id": null,
          "type": "CITY",
          "type_label": "Ville",
          "uic": null,
          "uic8": null
        },
        {
          "booking_code": null,
          "city": "Carignan-de-Bordeaux",
          "codes": [],
          "description": "Nouvelle-Aquitaine",
          "id": "CITY_FR_6616543",
          "kind": "transport",
          "lat": null,
          "lines": [],
          "lng": null,
          "name": "Carignan-de-Bordeaux",
          "navitia_id": null,
          "type": "CITY",
          "type_label": "Ville",
          "uic": null,
          "uic8": null
        },
        {
          "booking_code": null,
          "city": "Saint-Caprais-de-Bordeaux",
          "codes": [],
          "description": "Nouvelle-Aquitaine",
          "id": "CITY_FR_6432375",
          "kind": "transport",
          "lat": null,
          "lines": [],
          "lng": null,
          "name": "Saint-Caprais-de-Bordeaux",
          "navitia_id": null,
          "type": "CITY",
          "type_label": "Ville",
          "uic": null,
          "uic8": null
        },
        {
          "booking_code": null,
          "city": "Lignan-de-Bordeaux",
          "codes": [],
          "description": "Nouvelle-Aquitaine",
          "id": "CITY_FR_6432279",
          "kind": "transport",
          "lat": null,
          "lines": [],
          "lng": null,
          "name": "Lignan-de-Bordeaux",
          "navitia_id": null,
          "type": "CITY",
          "type_label": "Ville",
          "uic": null,
          "uic8": null
        },
        {
          "booking_code": null,
          "city": "Bordeaux-en-Gâtinais",
          "codes": [],
          "description": "Centre-Val de Loire",
          "id": "CITY_FR_6449149",
          "kind": "transport",
          "lat": null,
          "lines": [],
          "lng": null,
          "name": "Bordeaux-en-Gâtinais",
          "navitia_id": null,
          "type": "CITY",
          "type_label": "Ville",
          "uic": null,
          "uic8": null
        },
        {
          "booking_code": null,
          "city": "Bordeaux-Saint-Clair",
          "codes": [],
          "description": "Normandie",
          "id": "CITY_FR_6443100",
          "kind": "transport",
          "lat": null,
          "lines": [],
          "lng": null,
          "name": "Bordeaux-Saint-Clair",
          "navitia_id": null,
          "type": "CITY",
          "type_label": "Ville",
          "uic": null,
          "uic8": null
        },
        {
          "booking_code": null,
          "city": "Villevaudé",
          "codes": [],
          "description": "Villevaudé",
          "id": "place:f968b6c6-9930-4c96-82d4-7ddfda97fc3f",
          "kind": "transport",
          "lat": null,
          "lines": [
            "Bus 705",
            "Bus 714",
            "Bus 724",
            "Bus 2119",
            "Bus TàD"
          ],
          "lng": null,
          "name": "Bordeaux",
          "navitia_id": null,
          "type": "BUS",
          "type_label": "Bus",
          "uic": null,
          "uic8": null
        },
        {
          "booking_code": null,
          "city": "Bordeaux",
          "codes": [],
          "description": "Bordeaux",
          "id": "place:2be23640-32af-43f1-875c-5d36b4bc606c",
          "kind": "transport",
          "lat": null,
          "lines": [
            "Tramway C",
            "Bus 5",
            "Bus 15",
            "Bus 23",
            "Bus N5",
            "Bus N7"
          ],
          "lng": null,
          "name": "Jardin Public",
          "navitia_id": null,
          "type": "TRAMWAY",
          "type_label": "Tram",
          "uic": null,
          "uic8": null
        },
        {
          "booking_code": null,
          "city": "Bordeaux",
          "codes": [],
          "description": "Bordeaux",
          "id": "place:19d14fca-f448-408e-9e73-d0750f5d6515",
          "kind": "transport",
          "lat": null,
          "lines": [
            "Tramway A"
          ],
          "lng": null,
          "name": "Thiers-Benauge",
          "navitia_id": null,
          "type": "TRAMWAY",
          "type_label": "Tram",
          "uic": null,
          "uic8": null
        },
        {
          "booking_code": null,
          "city": "Bordeaux",
          "codes": [],
          "description": "Bordeaux",
          "id": "place:1b9374f8-a7a6-4c29-bb9b-86c05911ab25",
          "kind": "transport",
          "lat": null,
          "lines": [
            "Tramway C"
          ],
          "lng": null,
          "name": "Grand Parc",
          "navitia_id": null,
          "type": "TRAMWAY",
          "type_label": "Tram",
          "uic": null,
          "uic8": null
        },
        {
          "booking_code": null,
          "city": "Bordeaux",
          "codes": [],
          "description": "Bordeaux",
          "id": "place:3f9b73e2-c52e-4b60-8d37-1a505dcc012e",
          "kind": "transport",
          "lat": null,
          "lines": [
            "Tramway B",
            "Bus 5",
            "Bus Tbnight"
          ],
          "lng": null,
          "name": "Saint-Nicolas",
          "navitia_id": null,
          "type": "TRAMWAY",
          "type_label": "Tram",
          "uic": null,
          "uic8": null
        },
        {
          "booking_code": null,
          "city": "Bordeaux",
          "codes": [],
          "description": "Bordeaux",
          "id": "place:394243ae-c4c4-4c20-8109-e3dbedac9241",
          "kind": "transport",
          "lat": null,
          "lines": [
            "Tramway C",
            "Bus 75",
            "Bus 424"
          ],
          "lng": null,
          "name": "Parc des Expositions",
          "navitia_id": null,
          "type": "TRAMWAY",
          "type_label": "Tram",
          "uic": null,
          "uic8": null
        },
        {
          "booking_code": null,
          "city": "Bordeaux",
          "codes": [],
          "description": "Bordeaux",
          "id": "place:3778fdaa-1621-4a16-a641-e4bdec08e9dc",
          "kind": "transport",
          "lat": null,
          "lines": [
            "Tramway A",
            "Bus 1",
            "Bus 4",
            "Bus 5",
            "Bus 15",
            "Bus 16",
            "Bus 23",
            "Bus 55",
            "Bus 80",
            "Bus N1",
            "Bus N3",
            "Bus N5",
            "Bus N6",
            "Bus N7",
            "Bus Bus F",
            "Bus G"
          ],
          "lng": null,
          "name": "Palais de justice",
          "navitia_id": null,
          "type": "TRAMWAY",
          "type_label": "Tram",
          "uic": null,
          "uic8": null
        },
        {
          "booking_code": null,
          "city": "Bordeaux",
          "codes": [],
          "description": "Bordeaux",
          "id": "place:30b5c8ea-ffca-442b-9b96-30cb56a72887",
          "kind": "transport",
          "lat": null,
          "lines": [
            "Tramway A",
            "Bus 25",
            "Bus 61",
            "Bus 471",
            "Bus 472",
            "Bus N2",
            "Bus N4"
          ],
          "lng": null,
          "name": "Jardin Botanique",
          "navitia_id": null,
          "type": "TRAMWAY",
          "type_label": "Tram",
          "uic": null,
          "uic8": null
        },
        {
          "booking_code": null,
          "city": null,
          "codes": [],
          "description": null,
          "id": "GOOGLE_ADDRESS_EiFBdmVudWUgZGUgQm9yZGVhdXgsIFJveWFuLCBGcmFuY2UiLiosChQKEgmvzc7QrXcBSBHA650Ij0XicRIUChIJ33kHxkJ2AUgR4XPOWCqaafw",
          "kind": "address",
          "lat": null,
          "lines": [],
          "lng": null,
          "name": "Avenue de Bordeaux, Royan",
          "navitia_id": null,
          "type": "ADDRESS",
          "type_label": "Adresse",
          "uic": null,
          "uic8": null
        },
        {
          "booking_code": null,
          "city": null,
          "codes": [],
          "description": null,
          "id": "GOOGLE_ADDRESS_EjFSb3V0ZSBkZSBCb3JkZWF1eCwgU2FpbnQtQW5kcsOpLWRlLUN1YnphYywgRnJhbmNlIi4qLAoUChIJSzuHqaAyVQ0Rqs1PUpWSSikSFAoSCS9mtWKxMlUNEYDaFkgXZQYE",
          "kind": "address",
          "lat": null,
          "lines": [],
          "lng": null,
          "name": "Route de Bordeaux, Saint-André-de-Cubzac",
          "navitia_id": null,
          "type": "ADDRESS",
          "type_label": "Adresse",
          "uic": null,
          "uic8": null
        },
        {
          "booking_code": null,
          "city": null,
          "codes": [],
          "description": null,
          "id": "GOOGLE_ADDRESS_Ei9JbXBhc3NlIGRlIEJvcmRlYXV4LCBMYSBCYXVsZS1Fc2NvdWJsYWMsIEZyYW5jZSIuKiwKFAoSCdW8sfgkXQVIEXhQFwfxKHivEhQKEgkF4VNYGV0FSBGQ8A0eUjcNBA",
          "kind": "address",
          "lat": null,
          "lines": [],
          "lng": null,
          "name": "Impasse de Bordeaux, La Baule-Escoublac",
          "navitia_id": null,
          "type": "ADDRESS",
          "type_label": "Adresse",
          "uic": null,
          "uic8": null
        },
        {
          "booking_code": null,
          "city": null,
          "codes": [],
          "description": null,
          "id": "GOOGLE_ADDRESS_EidSdWUgSGVucnkgQm9yZGVhdXgsIExhIFJvY2hlbGxlLCBGcmFuY2UiLiosChQKEgmRuhqqhlQBSBGbgj5i136r2BIUChIJdT0lyYNTAUgRQJbuYJLTBQQ",
          "kind": "address",
          "lat": null,
          "lines": [],
          "lng": null,
          "name": "Rue Henry Bordeaux, La Rochelle",
          "navitia_id": null,
          "type": "ADDRESS",
          "type_label": "Adresse",
          "uic": null,
          "uic8": null
        },
        {
          "booking_code": null,
          "city": null,
          "codes": [],
          "description": null,
          "id": "GOOGLE_ADDRESS_EixBdmVudWUgZGUgQm9yZGVhdXgsIENsZXJtb250LUZlcnJhbmQsIEZyYW5jZSIuKiwKFAoSCUnWAtMqGvdHEQRMPRlWFqAYEhQKEgkHhS5_3Rv3RxEib6A4YDCUOQ",
          "kind": "address",
          "lat": null,
          "lines": [],
          "lng": null,
          "name": "Avenue de Bordeaux, Clermont-Ferrand",
          "navitia_id": null,
          "type": "ADDRESS",
          "type_label": "Adresse",
          "uic": null,
          "uic8": null
        },
        {
          "booking_code": null,
          "city": null,
          "codes": [],
          "description": null,
          "id": "GOOGLE_POI_ChIJtZBxxUzfVA0Rgz8-s6hvvgw",
          "kind": "poi",
          "lat": null,
          "lines": [],
          "lng": null,
          "name": "Bordeaux Sciences Agro, Cours du Général de Gaulle, Gradignan",
          "navitia_id": null,
          "type": "POI",
          "type_label": "Point d'intérêt",
          "uic": null,
          "uic8": null
        },
        {
          "booking_code": null,
          "city": null,
          "codes": [],
          "description": null,
          "id": "GOOGLE_POI_ChIJz23eF_goVQ0ROpvlf7unnJ4",
          "kind": "poi",
          "lat": null,
          "lines": [],
          "lng": null,
          "name": "Bordeaux Lac, Avenue des 40 Journaux, Bordeaux",
          "navitia_id": null,
          "type": "POI",
          "type_label": "Point d'intérêt",
          "uic": null,
          "uic8": null
        },
        {
          "booking_code": null,
          "city": null,
          "codes": [],
          "description": null,
          "id": "GOOGLE_POI_ChIJe0y8BJXYVA0RTG-op23URU4",
          "kind": "poi",
          "lat": null,
          "lines": [],
          "lng": null,
          "name": "Bordeaux Montaigne University, Pessac",
          "navitia_id": null,
          "type": "POI",
          "type_label": "Point d'intérêt",
          "uic": null,
          "uic8": null
        },
        {
          "booking_code": null,
          "city": null,
          "codes": [],
          "description": null,
          "id": "GOOGLE_POI_ChIJiUN9X_XaVA0RJqyVF7JSDGE",
          "kind": "poi",
          "lat": null,
          "lines": [],
          "lng": null,
          "name": "Aéroport de Bordeaux (BOD), Mérignac",
          "navitia_id": null,
          "type": "POI",
          "type_label": "Point d'intérêt",
          "uic": null,
          "uic8": null
        },
        {
          "booking_code": null,
          "city": null,
          "codes": [],
          "description": null,
          "id": "GOOGLE_POI_ChIJ97xokWsoVQ0RR_okivge4z0",
          "kind": "poi",
          "lat": null,
          "lines": [],
          "lng": null,
          "name": "Bordeaux Nord Aquitaine Polyclinic, Rue du Docteur Finlay, Bordeaux",
          "navitia_id": null,
          "type": "POI",
          "type_label": "Point d'intérêt",
          "uic": null,
          "uic8": null
        }
      ],
      "q": "bordeaux",
      "stations_only": false
    }

Common questions

How long must q be?

Use at least two characters of a place name.

How do I request only stations?

Set stations_only=true.

Does every city result have a UIC?

No. Preserve the returned place type and unavailable identifiers.

Can every returned ID be passed as a route-city slug?

No. Route Timetable documents origin and destination city names; these source identifiers are not universal route inputs.

How do I bypass cached results?

Pass fresh=1. A cache bypass retrieves available source data; it does not make unpublished or restricted records available.

Can I request CSV or NDJSON?

This OpenAny implementation serves JSON only. Omit output or set output=json.

Use SNCF Connect Place Search API with your agent

Inspect endpoint contracts and confirm availability and pricing before a paid call.