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

Cost estimates

GET
/cost
Estimate the cost of taking a Lyft between two points.
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request GET 'https://api.lyft.com/v1/cost?start_lat=&start_lng='
Response Response Example
200 - Example 1
{
    "cost_estimates": [
        {
            "cost_token": "EupdCgIzy17lJoRmiO5",
            "display_name": "Lyft",
            "estimated_cost_cents_max": 1080,
            "estimated_cost_cents_min": 1390,
            "estimated_distance_miles": 12.4,
            "estimated_duration_seconds": 540,
            "is_valid_estimate": true,
            "primetime_confirmation_token": "EupdCgIzy17lJoRmiO5",
            "primetime_percentage": "25%",
            "ride_type": "lyft"
        }
    ]
}

Request

Query Params

Responses

🟢200An object with an array of cost estimates by ride type
application/json
Body

🟠400The 'error' field will be one of the following: * `bad_parameter`: A validation error occurred * `no_service_in_area`: start location is not within a Lyft service area * `ridetype_unavailable_in_region`: ridetype not supported at this start location
Modified at 2023-08-15 05:38:33
Next
Available drivers nearby
Built with