Uber Requests API

Ride request management

GitHub OpenAPI
Business capability
Booking and Reservation Management BC-2400.40

Operations 7

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

POST /requests/estimate Get a fare estimate before booking a ride · Create Ride Estimate #
Ask an LLM
“What will my ride cost from one address to another?”
“Is surge pricing on for a ride I'm about to request?”
Tell an agent
Estimate the fare for {product_id} from {start_latitude}, {start_longitude} to {end_latitude}, {end_longitude}.
Show upfront pricing for a {product_id} ride from {start_latitude}, {start_longitude} to {end_latitude}, {end_longitude}.
POST /requests Request a ride for a rider · Create Ride Request #
Ask an LLM
“Can I book a ride for a user once I know the fare?”
“Can I accept a surge price for an upcoming ride request?”
Tell an agent
Request a {product_id} ride from {start_latitude}, {start_longitude}.
Book a {product_id} ride from {start_latitude}, {start_longitude} to {end_latitude}, {end_longitude} using fare {fare_id}.
GET /requests/{request_id} Get the status of an ongoing ride · Get Ride Details #
Ask an LLM
“Where is my rider's car right now?”
“Has the driver accepted the ride I requested?”
Tell an agent
Show the status of ride request {request_id}.
Check whether ride {request_id} is accepted and on its way.
PATCH /requests/{request_id} Change a ride request's destination · Update Ride Request #
Ask an LLM
“Can I change where a ride is going after booking?”
“How do I set a new dropoff place on a ride request?”
Tell an agent
Set the destination of ride {request_id} to {end_latitude}, {end_longitude}.
Update ride {request_id} dropoff to place {end_place_id}.
DELETE /requests/{request_id} Cancel an ongoing ride request · Cancel Ride Request #
Ask an LLM
“How do I cancel a ride request on behalf of a rider?”
“Can I cancel a ride that hasn't been accepted yet?”
Tell an agent destructive · confirm first
Cancel ride request {request_id}.
End the ride request {request_id} for the rider.
GET /requests/{request_id}/map Get a map of an ongoing ride · Get Ride Map #
Ask an LLM
“Can I show a map of the driver's route for a ride?”
“Where is the car on the map for an ongoing trip?”
Tell an agent
Show the map for ride request {request_id}.
Get a visual map of the route for ride {request_id}.
GET /requests/{request_id}/receipts Get the receipt for a completed ride · Get Ride Receipt #
Ask an LLM
“How do I get the receipt for a ride that has finished?”
“What did I pay for a completed Uber trip?”
Tell an agent
Get the receipt for ride request {request_id}.
Show the payment receipt for completed ride {request_id}.

Documentation

Specifications

Code Examples

Schemas & Data

Other Resources

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/uber:uber-requests-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

uber-requests-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Uber Riders Requests API
  description: The Uber Riders API enables applications to interact with the Uber platform on behalf of riders. It allows requesting rides, getting product listings, price and time estimates, viewing trip history, and managing saved places.
  version: 1.2.0
  termsOfService: https://developer.uber.com/docs/riders/terms-of-use
  contact:
    name: Uber Developer Support
    url: https://developer.uber.com/support
servers:
- url: https://api.uber.com/v1.2
  description: Production
- url: https://sandbox-api.uber.com/v1.2
  description: Sandbox
security:
- BearerAuth: []
tags:
- name: Requests
  description: Ride request management
paths:
  /requests/estimate:
    post:
      operationId: createRideEstimate
      summary: Create Ride Estimate
      description: Get an upfront fare estimate and surge pricing details for a ride request before booking.
      tags:
      - Requests
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
              - product_id
              - start_latitude
              - start_longitude
              - end_latitude
              - end_longitude
              properties:
                product_id:
                  type: string
                  description: The unique ID of the product to request.
                start_latitude:
                  type: number
                  format: double
                  description: The beginning or starting latitude.
                start_longitude:
                  type: number
                  format: double
                  description: The beginning or starting longitude.
                end_latitude:
                  type: number
                  format: double
                  description: The final or ending latitude.
                end_longitude:
                  type: number
                  format: double
                  description: The final or ending longitude.
      responses:
        '200':
          description: An upfront fare estimate object.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RideEstimate'
  /requests:
    post:
      operationId: createRideRequest
      summary: Create Ride Request
      description: Request a ride on behalf of an Uber user given their desired product, start, and end locations.
      tags:
      - Requests
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/RideRequest'
      responses:
        '201':
          description: The ride request object.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RideDetails'
        '409':
          description: A current booking already exists.
  /requests/{request_id}:
    get:
      operationId: getRideRequest
      summary: Get Ride Details
      description: Get the real-time status of an ongoing trip.
      tags:
      - Requests
      parameters:
      - name: request_id
        in: path
        required: true
        schema:
          type: string
        description: Unique identifier representing a Request.
      responses:
        '200':
          description: The ride request object.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RideDetails'
    patch:
      operationId: updateRideRequest
      summary: Update Ride Request
      description: Update an ongoing request's destination.
      tags:
      - Requests
      parameters:
      - name: request_id
        in: path
        required: true
        schema:
          type: string
        description: Unique identifier representing a Request.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                end_latitude:
                  type: number
                  format: double
                  description: The final or ending latitude.
                end_longitude:
                  type: number
                  format: double
                  description: The final or ending longitude.
                end_place_id:
                  type: string
                  description: The final or ending place ID.
      responses:
        '204':
          description: Request updated successfully.
    delete:
      operationId: cancelRideRequest
      summary: Cancel Ride Request
      description: Cancel an ongoing request on behalf of a rider.
      tags:
      - Requests
      parameters:
      - name: request_id
        in: path
        required: true
        schema:
          type: string
        description: Unique identifier representing a Request.
      responses:
        '204':
          description: Request cancelled successfully.
  /requests/{request_id}/map:
    get:
      operationId: getRideMap
      summary: Get Ride Map
      description: Get a map with a visual representation of a Request.
      tags:
      - Requests
      parameters:
      - name: request_id
        in: path
        required: true
        schema:
          type: string
        description: Unique identifier representing a Request.
      responses:
        '200':
          description: A map object with an href to the map image.
          content:
            application/json:
              schema:
                type: object
                properties:
                  request_id:
                    type: string
                  href:
                    type: string
                    format: uri
  /requests/{request_id}/receipts:
    get:
      operationId: getRideReceipt
      summary: Get Ride Receipt
      description: Get the receipt information of a completed request.
      tags:
      - Requests
      parameters:
      - name: request_id
        in: path
        required: true
        schema:
          type: string
        description: Unique identifier representing a Request.
      responses:
        '200':
          description: Receipt data for the completed ride.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Receipt'
components:
  schemas:
    RideRequest:
      type: object
      required:
      - product_id
      - start_latitude
      - start_longitude
      properties:
        product_id:
          type: string
          description: The unique ID of the product to request.
        start_latitude:
          type: number
          format: double
          description: The beginning or starting latitude.
        start_longitude:
          type: number
          format: double
          description: The beginning or starting longitude.
        end_latitude:
          type: number
          format: double
          description: The final or ending latitude.
        end_longitude:
          type: number
          format: double
          description: The final or ending longitude.
        fare_id:
          type: string
          description: The fare ID from a prior estimate call.
        surge_confirmation_id:
          type: string
          description: The surge confirmation ID if the user has confirmed a surge.
        payment_method_id:
          type: string
          description: The unique identifier of the payment method selected by a user.
    RideEstimate:
      type: object
      properties:
        fare:
          type: object
          properties:
            value:
              type: number
              description: The upfront fare value.
            fare_id:
              type: string
              description: Unique identifier of the fare, used when requesting a ride.
            expires_at:
              type: integer
              description: Expiration time of the fare in Unix epoch seconds.
            display:
              type: string
              description: Display string for the fare.
            currency_code:
              type: string
              description: ISO 4217 currency code.
    Receipt:
      type: object
      properties:
        request_id:
          type: string
          description: The unique ID for the request.
        charges:
          type: array
          items:
            type: object
            properties:
              name:
                type: string
              amount:
                type: string
              type:
                type: string
        total_charged:
          type: string
          description: The total amount charged to the user's payment method.
        total_owed:
          type: number
          description: The total amount owed by the user.
        currency_code:
          type: string
          description: ISO 4217 currency code.
        duration:
          type: string
          description: Time duration of the trip in ISO 8601 format.
        distance:
          type: string
          description: Distance of the trip charged.
        distance_label:
          type: string
          description: The localized unit of distance.
    RideDetails:
      type: object
      properties:
        request_id:
          type: string
          description: The unique ID for the request.
        status:
          type: string
          enum:
          - processing
          - no_drivers_available
          - accepted
          - arriving
          - in_progress
          - driver_canceled
          - rider_canceled
          - completed
          description: The status of the ride request.
        driver:
          type: object
          properties:
            name:
              type: string
            phone_number:
              type: string
            picture_url:
              type: string
            rating:
              type: number
        vehicle:
          type: object
          properties:
            make:
              type: string
            model:
              type: string
            license_plate:
              type: string
            picture_url:
              type: string
        eta:
          type: integer
          description: Driver's expected arrival in minutes.
        surge_multiplier:
          type: number
          description: The surge pricing multiplier used to calculate the increased price.
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      description: OAuth 2.0 Bearer token