Lyft API
  1. User
Lyft API
  • Restricted
  • 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. User

The user's general info

GET
/profile
User
The v1 of this endpoint returns the user's ID, v2 will return more general info about the user. We require authentication for this endpoint, so we extract the user ID from the access token.
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request GET 'https://api.lyft.com/profile'
响应示例响应示例
{
    "first_name": "string",
    "has_taken_a_ride": true,
    "id": "string",
    "last_name": "string"
}

请求参数

无

返回响应

🟢200成功
application/json
User ID was found and returned
Body
Represents the general information about a user.
first_name
string 
必需
The first name of this user
has_taken_a_ride
boolean 
必需
Indicates whether this user has taken at least one Lyft ride
id
string 
必需
The unique ID of this user
last_name
string 
必需
The last name of this user

【Lyft】API开发者 微信交流群

用微信扫右侧二维码,加入【Lyft】API开发者 交流群,互助沟通

扫码加入交流群
上一页
Types of rides
下一页
List rides
Built with