# GBFS Bike Share API

> Returns open bike and scooter share systems from GBFS feeds, with their stations, live station status, system information and alerts.

Category: Travel, Maps & Weather. Region: global. 7 endpoints at `https://api.hoshime.com/v1/gbfs/<endpoint>`, `GET` with query parameters, answering `{data, meta}` (see https://hoshime.com/docs/responses.md). Reference: https://hoshime.com/docs/platforms/gbfs
## GET /v1/gbfs/systems

The open bike and scooter share systems that publish GBFS feeds, with their city and country. Filter by a country code.

Scope: `social:read` · Units: 1 · Cached: 360 min · Paginated: cursor

| Parameter | Type | Required | Description |
|---|---|---|---|
| `country` | string | no | ISO 3166 country code, such as FR. Empty lists every country. (e.g. FR) |
| `limit` | integer | no | Items per page, 1 to 500. (default 100) |
| `cursor` | string | no | meta.pagination.nextCursor of the previous page. Omit it for the first page. |
| `tunnel` | string | no | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
| `proxy` | string | no | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
| `profileId` | string | no | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |

Response data fields: `country` (string), `id` (string), `location` (string), `name` (string), `website` (string)

```bash
curl "https://api.hoshime.com/v1/gbfs/systems?country=FR" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/gbfs/feeds

The GBFS feeds one system publishes (station information, station status, system alerts and so on) with their URLs.

Scope: `social:read` · Units: 1 · Cached: 60 min · Paginated: cursor

| Parameter | Type | Required | Description |
|---|---|---|---|
| `system` | string | yes | System id from the systems list, such as lyon. (e.g. lyon) |
| `tunnel` | string | no | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
| `proxy` | string | no | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
| `profileId` | string | no | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |

Response data fields: `name` (string), `url` (string)

```bash
curl "https://api.hoshime.com/v1/gbfs/feeds?system=lyon" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/gbfs/systemInformation

What one bike-share system is: its name, operator, time zone, language and contact details.

Scope: `social:read` · Units: 1 · Cached: 60 min

| Parameter | Type | Required | Description |
|---|---|---|---|
| `system` | string | yes | System id from the systems list, such as lyon. (e.g. lyon) |
| `tunnel` | string | no | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
| `proxy` | string | no | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
| `profileId` | string | no | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |

Response data fields: `email` (string), `id` (string), `language` (string), `name` (string), `operator` (string), `phone` (string), `timezone` (string), `url` (string)

```bash
curl "https://api.hoshime.com/v1/gbfs/systemInformation?system=lyon" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/gbfs/stations

The docking stations or parking spots of one system with their name, position and capacity.

Scope: `social:read` · Units: 1 · Cached: 60 min · Paginated: cursor

| Parameter | Type | Required | Description |
|---|---|---|---|
| `limit` | integer | no | Items per page, 1 to 2000. (default 200) |
| `cursor` | string | no | meta.pagination.nextCursor of the previous page. Omit it for the first page. |
| `system` | string | yes | System id from the systems list, such as lyon. (e.g. lyon) |
| `tunnel` | string | no | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
| `proxy` | string | no | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
| `profileId` | string | no | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |

Response data fields: `address` (string), `capacity` (integer (int64)), `id` (string), `latitude` (number (double)), `longitude` (number (double)), `name` (string)

```bash
curl "https://api.hoshime.com/v1/gbfs/stations?system=lyon" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/gbfs/stationStatus

The live state of each station of one system: vehicles and free docks now, and whether it rents and takes returns.

Scope: `social:read` · Units: 1 · Cached: 1 min · Paginated: cursor

| Parameter | Type | Required | Description |
|---|---|---|---|
| `limit` | integer | no | Items per page, 1 to 2000. (default 200) |
| `cursor` | string | no | meta.pagination.nextCursor of the previous page. Omit it for the first page. |
| `system` | string | yes | System id from the systems list, such as lyon. (e.g. lyon) |
| `tunnel` | string | no | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
| `proxy` | string | no | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
| `profileId` | string | no | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |

Response data fields: `docksAvailable` (integer (int64)), `id` (string), `installed` (boolean), `lastReportedAt` (string), `renting` (boolean), `returning` (boolean), `vehiclesAvailable` (integer (int64))

```bash
curl "https://api.hoshime.com/v1/gbfs/stationStatus?system=lyon" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/gbfs/systemAlerts

The current alerts a bike-share system publishes, such as a closure or a service notice.

Scope: `social:read` · Units: 1 · Cached: 5 min · Paginated: cursor

| Parameter | Type | Required | Description |
|---|---|---|---|
| `system` | string | yes | System id from the systems list, such as lyon. (e.g. Bixi_MTL) |
| `tunnel` | string | no | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
| `proxy` | string | no | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
| `profileId` | string | no | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |

Response data fields: `id` (string), `summary` (string), `type` (string), `url` (string)

```bash
curl "https://api.hoshime.com/v1/gbfs/systemAlerts?system=Bixi_MTL" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/gbfs/freeVehicles

The free-floating bikes and scooters of one system that are parked on the street, not at a station, with position, battery or range.

Scope: `social:read` · Units: 1 · Cached: 1 min · Paginated: cursor

| Parameter | Type | Required | Description |
|---|---|---|---|
| `limit` | integer | no | Items per page, 1 to 2000. (default 200) |
| `cursor` | string | no | meta.pagination.nextCursor of the previous page. Omit it for the first page. |
| `system` | string | yes | System id from the systems list, such as lyon. (e.g. dott-abu-dhabi) |
| `tunnel` | string | no | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
| `proxy` | string | no | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
| `profileId` | string | no | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |

Response data fields: `disabled` (boolean), `fuelFraction` (number (double)), `id` (string), `lastReportedAt` (string), `latitude` (number (double)), `longitude` (number (double)), `rangeMeters` (integer (int64)), `reserved` (boolean), `type` (string)

```bash
curl "https://api.hoshime.com/v1/gbfs/freeVehicles?system=dott-abu-dhabi" -H "Authorization: Bearer $HOSHIME_TOKEN"
```
