Sample JSON

Stay organized with collections Save and categorize content based on your preferences.

The sample code below can also be downloaded here.

{
    "feed_metadata": {
        "shard_id": 0,
        "total_shards_count": 1,
        "processing_instruction": "PROCESS_AS_SNAPSHOT",
        "nonce": 202113041501
    },
    "products": [
        {
            "id": "product-1",
            "title": {
                "localized_texts": [
                    {
                        "language_code": "en",
                        "text": "Dans bike tour"
                    },
                    {
                        "language_code": "es",
                        "text": "Tour en bicicleta por Dans"
                    },
                    {
                        "language_code": "zh-HK",
                        "text": "丹斯自行車之旅"
                    }
                ]
            },
            "description": {
                "localized_texts": [
                    {
                        "language_code": "en",
                        "text": "<p>A very fun bike tour<p>"
                    },
                    {
                        "language_code": "es",
                        "text": "<p>Un recorrido en bicicleta muy divertido.</p>"
                    },
                    {
                        "language_code": "zh-HK",
                        "text": "<p>一個非常有趣的自行車之旅.</p>"
                    }
                ]
            },
            "rating": {
                "average_value": 4.6,
                "rating_count": 192
            },
            "product_features": [
                {
                    "feature_type": "TEXT_FEATURE_INCLUSION",
                    "value": {
                        "localized_texts": [
                            {
                                "language_code": "en",
                                "text": "<p>A very fun bike tour<p>"
                            },
                            {
                                "language_code": "es",
                                "text": "<p>Un recorrido en bicicleta muy divertido.</p>"
                            },
                            {
                                "language_code": "zh-HK",
                                "text": "<p>一個非常有趣的自行車之旅.</p>"
                            }
                        ]
                    }
                },
                {
                    "feature_type": "TEXT_FEATURE_HIGHLIGHT",
                    "value": {
                        "localized_texts": [
                            {
                                "language_code": "en",
                                "text": "<p>A very fun bike tour<p>"
                            },
                            {
                                "language_code": "es",
                                "text": "<p>Un recorrido en bicicleta muy divertido.</p>"
                            },
                            {
                                "language_code": "zh-HK",
                                "text": "<p>一個非常有趣的自行車之旅.</p>"
                            }
                        ]
                    }
                },
                {
                    "feature_type": "TEXT_FEATURE_MUST_KNOW",
                    "value": {
                        "localized_texts": [
                            {
                                "language_code": "en",
                                "text": "<p>A very fun bike tour<p>"
                            },
                            {
                                "language_code": "es",
                                "text": "<p>Un recorrido en bicicleta muy divertido.</p>"
                            },
                            {
                                "language_code": "zh-HK",
                                "text": "<p>一個非常有趣的自行車之旅.</p>"
                            }
                        ]
                    }
                }
            ],
            "options": [
                {
                    "id": "option-1",
                    "title": {
                        "localized_texts": [
                            {
                                "language_code": "en",
                                "text": "Sunset tour"
                            },
                            {
                                "language_code": "es",
                                "text": "Tour al atardecer"
                            },
                            {
                                "language_code": "zh-HK",
                                "text": "日落之旅"
                            }
                        ]
                    },
                    "landing_page": {
                        "url": "https://www.danstour.com/bike-tours/?product-id={product_id}&option_id={option_id}&source={src}&language={lang}&currency={currency}"
                    },
                    "landing_page_list_view": {
                        "url": "https://www.danstour.com/bike-tours/?source={src}&language={lang}&currency={currency}"
                    },
                    "duration_sec": 10800,
                    "cancellation_policy": {
                        "refund_conditions": [
                            {
                                "min_duration_before_start_time_sec": 86400,
                                "refund_percent": 100
                            }
                        ]
                    },
                    "option_categories": [
                        {
                            "label": "sports"
                        },
                        {
                            "label": "bike-tours"
                        }
                    ],
                    "related_locations": [
                        {
                            "location": {
                                "location": {
                                    "place_id": "ChIJ3S-JXmauEmsRUcIaWtf4MzE"
                                }
                            },
                            "relation_type": "RELATION_TYPE_RELATED_NO_ADMISSION"
                        },
                        {
                            "location": {
                                "location": {
                                    "lat_lng": {
                                        "latitude": 53.339688,
                                        "longitude": 6.236688
                                    }
                                }
                            },
                            "relation_type": "RELATION_TYPE_RELATED_NO_ADMISSION"
                        }
                    ],
                    "price_options": [
                        {
                            "id": "option-1-adult",
                            "title": "Adult (14+)",
                            "price": {
                                "currency_code": "EUR",
                                "units": 20
                            },
                            "fees_and_taxes": {
                                "per_ticket_fee": {
                                    "currency_code": "EUR",
                                    "units": 1
                                },
                                "per_ticket_tax": {
                                    "currency_code": "EUR",
                                    "units": 1
                                }
                            }
                        }
                    ]
                },
                {
                    "id": "option-2",
                    "title": {
                        "localized_texts": [
                            {
                                "language_code": "en",
                                "text": "Sunrise tour"
                            },
                            {
                                "language_code": "es",
                                "text": "Tour al amanecer"
                            },
                            {
                                "language_code": "zh-HK",
                                "text": "日出之旅"
                            }
                        ]
                    },
                    "landing_page": {
                        "url": "https://www.danstour.com/bike-tours/?product-id={product_id}&option_id={option_id}&source={src}&language={lang}&currency={currency}"
                    },
                    "landing_page_list_view": {
                        "url": "https://www.danstour.com/bike-tours/?source={src}&language={lang}&currency={currency}"
                    },
                    "duration_sec": 10800,
                    "cancellation_policy": {
                        "refund_conditions": [
                            {
                                "min_duration_before_start_time_sec": 86400,
                                "refund_percent": 100
                            }
                        ]
                    },
                    "option_categories": [
                        {
                            "label": "sports"
                        },
                        {
                            "label": "bike-tours"
                        }
                    ],
                    "related_locations": [
                        {
                            "location": {
                                "location": {
                                    "place_id": "ChIJ3S-JXmauEmsRUcIaWtf4MzE"
                                }
                            },
                            "relation_type": "RELATION_TYPE_RELATED_NO_ADMISSION"
                        }
                    ],
                    "price_options": [
                        {
                            "id": "option-2-adult",
                            "title": "Adult (14+)",
                            "price": {
                                "currency_code": "EUR",
                                "units": 20,
                                "nanos": 0
                            }
                        }
                    ],
                    "meeting_point": {
                        "location": {
                            "place_id": "ChIJ3S-JXmauEmsRUcIaWtf4MzE"
                        },
                        "description": {
                            "localized_texts": [
                                {
                                    "language_code": "en",
                                    "text": "Sunrise tour"
                                },
                                {
                                    "language_code": "es",
                                    "text": "Tour al amanecer"
                                },
                                {
                                    "language_code": "zh-HK",
                                    "text": "日出之旅"
                                }
                            ]
                        }
                    }
                }
            ],
            "related_media": [
                {
                    "url": "http://www.danstour.com/photo1.jpg",
                    "type": "MEDIA_TYPE_PHOTO"
                },
                {
                    "url": "http://www.danstour.com/photo2.jpg",
                    "type": "MEDIA_TYPE_PHOTO",
                    "attribution": {
                        "localized_texts": [
                            {
                                "language_code": "en",
                                "text": "Dans Photos"
                            }
                        ]
                    }
                }
            ],
            "operator": {
                "name": {
                    "localized_texts": [
                        {
                            "language_code": "en",
                            "text": "Dans Bikes"
                        }
                    ]
                },
                "phone_number": "01234567"
            },
            "inventory_type": "INVENTORY_TYPE_DEFAULT",
            "confirmation_type": "CONFIRMATION_TYPE_INSTANT",
            "fulfillment_type": {
                "mobile": true,
                "print_at_home": false,
                "pickup": false
            }
        }
    ]
}