"description":"The Time Estimates endpoint returns ETAs for all products offered at a given location, with the responses expressed as integers in seconds. We recommend that this endpoint be called every minute to provide the most accurate, up-to-date ETAs.",
-User
"parameters":[
responses:
{
200:
"name":"start_latitude",
description:Profileinformationforauser
"in":"query",
schema:
"description":"Latitude component of start location.",
$ref:'#/definitions/Profile'
"required":true,
default:
"type":"number",
description:Unexpectederror
"format":"double"
schema:
},
$ref:'#/definitions/Error'
{
/history:
"name":"start_longitude",
get:
"in":"query",
summary:UserActivity
"description":"Longitude component of start location.",
"description":"The User Activity endpoint returns data about a user's lifetime activity with Uber. The response will include pickup locations and times, dropoff locations and times, the distance of past requests, and information about which products were requested.<br><br>The history array in the response will have a maximum length based on the limit parameter. The response value count may exceed limit, therefore subsequent API requests may be necessary.",
type:object
"parameters":[
properties:
{
first_name:
"name":"offset",
type:string
"in":"query",
description:FirstnameoftheUberuser.
"type":"integer",
last_name:
"format":"int32",
type:string
"description":"Offset the list of returned results by this amount. Default is zero."
description:LastnameoftheUberuser.
},
email:
{
type:string
"name":"limit",
description:EmailaddressoftheUberuser
"in":"query",
picture:
"type":"integer",
type:string
"format":"int32",
description:ImageURLoftheUberuser.
"description":"Number of items to retrieve. Default is 5, maximum is 100."
promo_code:
}
type:string
],
description:PromocodeoftheUberuser.
"tags":[
Activity:
"User"
type:object
],
properties:
"responses":{
uuid:
"200":{
type:string
"description":"History information for the given user",
description:Uniqueidentifierfortheactivity
"schema":{
Activities:
"$ref":"#/definitions/Activities"
type:object
}
properties:
},
offset:
"default":{
type:integer
"description":"Unexpected error",
format:int32
"schema":{
description:Positioninpagination.
"$ref":"#/definitions/Error"
limit:
}
type:integer
}
format:int32
}
description:Numberofitemstoretrieve(100max).
}
count:
}
type:integer
},
format:int32
"definitions":{
description:Totalnumberofitemsavailable.
"Product":{
history:
"type":"object",
type:array
"properties":{
items:
"product_id":{
$ref:'#/definitions/Activity'
"type":"string",
Error:
"description":"Unique identifier representing a specific product for a given latitude & longitude. For example, uberX in San Francisco will have a different product_id than uberX in Los Angeles."
type:object
},
properties:
"description":{
code:
"type":"string",
type:integer
"description":"Description of product."
format:int32
},
message:
"display_name":{
type:string
"type":"string",
fields:
"description":"Display name of product."
type:string
},
"capacity":{
"type":"string",
"description":"Capacity of product. For example, 4 people."
},
"image":{
"type":"string",
"description":"Image URL representing the product."
}
}
},
"PriceEstimate":{
"type":"object",
"properties":{
"product_id":{
"type":"string",
"description":"Unique identifier representing a specific product for a given latitude & longitude. For example, uberX in San Francisco will have a different product_id than uberX in Los Angeles"
"description":"Formatted string of estimate in local currency of the start location. Estimate could be a range, a single number (flat rate) or \"Metered\" for TAXI."
},
"low_estimate":{
"type":"number",
"description":"Lower bound of the estimated price."
},
"high_estimate":{
"type":"number",
"description":"Upper bound of the estimated price."
},
"surge_multiplier":{
"type":"number",
"description":"Expected surge multiplier. Surge is active if surge_multiplier is greater than 1. Price estimate already factors in the surge multiplier."
}
}
},
"Profile":{
"type":"object",
"properties":{
"first_name":{
"type":"string",
"description":"First name of the Uber user."
},
"last_name":{
"type":"string",
"description":"Last name of the Uber user."
},
"email":{
"type":"string",
"description":"Email address of the Uber user"
},
"picture":{
"type":"string",
"description":"Image URL of the Uber user."
},
"promo_code":{
"type":"string",
"description":"Promo code of the Uber user."
}
}
},
"Activity":{
"type":"object",
"properties":{
"uuid":{
"type":"string",
"description":"Unique identifier for the activity"
}
}
},
"Activities":{
"type":"object",
"properties":{
"offset":{
"type":"integer",
"format":"int32",
"description":"Position in pagination."
},
"limit":{
"type":"integer",
"format":"int32",
"description":"Number of items to retrieve (100 max)."