Lyft
  1. Public
Lyft
  • Public
    • Cost estimates
      GET
    • Available drivers nearby
      GET
    • Pickup ETAs
      GET
    • Types of rides
      GET
  • User
    • The user's general info
      GET
    • List rides
      GET
    • Request a Lyft
      POST
    • Get the ride detail of a given ride ID
      GET
    • Cancel a ongoing requested ride
      POST
    • Update the destination of the ride
      PUT
    • Add the passenger's rating, feedback, and tip
      PUT
    • Get the receipt of the rides.
      GET
  • Sandbox
    • Preset Prime Time percentage
      PUT
    • Propagate ride through ride status
      PUT
    • Preset types of rides for sandbox
      PUT
    • Driver availability for processing ride request
      PUT
  1. Public

Available drivers nearby

GET
/drivers
Public
The drivers endpoint returns a list of nearby drivers' lat and lng at a given location.
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request GET 'https://api.lyft.com/v1/drivers?lat=&lng='
Response Response Example
200 - Example 1
{
  "nearby_drivers": [
    {
      "drivers": [
        {
          "locations": [
            {
              "lat": 36.9442175,
              "lng": -123.8679133
            }
          ]
        }
      ],
      "ride_type": "string"
    }
  ]
}

Request

Query Params
lat
number 
required
Latitude of a location
lng
number 
required
Longitude of a location

Responses

🟢200An object with an array of available drivers sorted by eta for the given location
application/json
Body
nearby_drivers
array[object (NearbyDriversByRideType) {2}] 
optional
drivers
array[object (NearbyDriver) {1}] 
optional
list of nearby drivers group by ride type sorted by eta
ride_type
string 
optional
driver's ride type. if driver is eligable for several ride types, he will be duplicated.
🟠400A validation error occurred
Modified at 2023-08-15 05:38:33
Previous
Cost estimates
Next
Pickup ETAs
Built with