Price estimation

Resource

GET api/v1/price

Authorization

By api_key with the Public scope.

Query Parameters

NameTypeDescription
pickup_latitudefloatThe latitude of the pickup.
pickup_longitudefloatThe longitude of the pickup.
destination_latitudefloatThe latitude of the destination.
destination_longitudefloatThe longitude of the destination.
product_id (optional)stringThe unique ID of the specific product.

Request

curl -X GET -H 'Authorization: Token [API_KEY]' \
            -H "Content-Type: application/json" \
            'https://api.gett.com/v1/availability/price?pickup_latitude=32.0813144&pickup_longitude=34.8077173&destination_latitude=32.196196&destination_longitude=34.8928347'

//For specific product
curl -X GET -H 'Authorization: Token [API_KEY]' \
            -H "Content-Type: application/json" \
            'https://api.gett.com/v1/availability/price?pickup_latitude=32.0813144&pickup_longitude=34.8077173&destination_latitude=32.196196&destination_longitude=34.8928347&product_id=ca1bcd35-c427-4fa0-be0a-54ca5e956276'

Response

{
 "prices": [
   {
     "product_id": "44c31d73-8fff-422f-b3c9-8f7702f5b182",
     "display_name": "Gett Taxi",
     "currency": "GBP",
     "estimate": "£70-80",
     "low_estimate": 70,
     "high_estimate": 80
   },
   {
     "product_id": "fb21a2b5-50bd-40d2-98e8-d4e172c0b366",
     "display_name": "Gett Taxi XL",
     "currency": "GBP",
     "estimate": "£30",
     "low_estimate": 30,
     "high_estimate": 30
   }
 ]
}
NameTypeDescription
product_idstringThe unique ID of the specific product.
display_namestringThe display name of the product.
currencystringThe currency code. (ISO4217 https://en.wikipedia.org/wiki/ISO_4217)
currencystringThe price estimation for the product.
estimatestringThe estimate price formatted with local currency. it could be a range or a single number.
low_estimatedoubleLower bound of the estimated price.
high_estimatedoubleUpper bound of the estimated price.