Products
Resource
GET /v1/availability/products
Authorization
By api_key with the Public scope.
Query Parameters
| Name | Type | Description | 
|---|---|---|
| latitude | float | The current latitude. | 
| longitude | float | The current longitude. | 
Request
curl -X GET -H 'Authorization: Token [API_KEY]' \
            -H "Content-Type: application/json" \
            'https://api.gett.com/v1/availability/products?latitude=32.1086622&longitude=34.8379731'
Response
{
  "products": [
    {
      "id": "ca1bcd35-c427-4fa0-be0a-54ca5e956276",
      "display_name": "Gett Express",
      "image_url": "http://static.gett.com/services/media/media_files/75/0000_Get-Express_Selection.png"
    },
    {
      "id": "93b83484-98c8-4b6b-8103-81a046bdd85a",
      "display_name": "Gett Mehadrin",
      "image_url": "http://static.gett.com/services/media/media_files/92/0004_Gett-Mehadrin_Selection.png"
    },
    {
      "id": "08d4801f-452d-49e7-9b96-944d7c2ca722",
      "display_name": "Gett Kids",
      "image_url": "http://static.gett.com/services/media/media_files/112/0003_Gett-Kids_Selection.png"
    },
    {
      "id": "b64ca6d1-d5e8-4054-8dd8-ab858db82091",
      "display_name": "Gett Premium",
      "image_url": "http://static.gett.com/services/media/media_files/101/0002_Gett-Premium_Selection.png"
    }
  ]
}
| Name | Type | Description | 
|---|---|---|
| products | array | The object containing the information about the available products. | 
| id | string | The unique ID of the specific product. | 
| display_name | string | The display name of the product. | 
| image_url | string | the image url of the product | 
You can retrieve information about a specific Gett product.
Valid inputs for the product_id parameter can be found by querying the /v1/products endpoint.
Resource
GET api/v1/products/<product_id>
Authorization
By api_key with the Public scope.
Path Parameters
| Name | Type | Description | 
|---|---|---|
| product_id | string | The unique ID of the specific product. | 
Request
// for specific product
curl -X GET -H 'Authorization: Token [API_KEY]' \
'https://api.gett.com/v1/availability/products/ca1bcd35-c427-4fa0-be0a-54ca5e956276'
Response
{
  "id": "ca1bcd35-c427-4fa0-be0a-54ca5e956276",
  "display_name": "Gett Express",
  "image_url": "http://static.gett.com/services/media/media_files/75/0000_Get-Express_Selection.png"
}
Updated over 4 years ago
