Example Sources for Dynamic Assets

Here's a few example source URLs with data from TripAdvisor:

JSON Example:

http://demosite-apsis.com/labs/test.json

JSON with Segmentation Example:

http://demosite-apsis.com/labs/test-with.segments.json

XML Example:

http://demosite-apsis.com/labs/test.xml

XML with Segmentation Example:

http://demosite-apsis.com/labs/test-with.segments.xml

Example JSON Source

[
  {
    "id": 1,
    "title": "Radisson Blu Waterfront Hotel",
    "description": "Unwind and retreat at this new luxury hotel next to the Stockholm Waterfront Congress Centre, the area's premier events and conference venue",
    "rating": 4,
    "beds": 2,
    "imageUrl": "https://media-cdn.tripadvisor.com/media/photo-m/1280/19/69/4c/48/exterior.jpg",
    "url": "https://www.tripadvisor.com/Hotel_Review-g189852-d1879047-Reviews-Radisson_Blu_Waterfront_Hotel-Stockholm?"
  },
  {
    "id": 2,
    "title": "City Hostel",
    "description": "A modern hostel in Stockholm City City Hostel is a popular hostel in Stockholm with an international atmosphere close to both tourist attractions and transportation. ",
    "rating": 2,
    "beds": 3,
    "imageUrl": "https://media-cdn.tripadvisor.com/media/photo-o/05/c3/78/34/city-hostel.jpg",
    "url": "https://www.tripadvisor.com/Hotel_Review-g189852-d664070-Reviews-City_Hostel-Stockholm?"
  },
  {
    "id": 3,
    "title": "Ett Hem",
    "description": "Ett Hem is an excellent choice for travelers visiting Stockholm, offering a romantic environment alongside many helpful amenities designed to enhance your stay.",
    "rating": 4,
    "beds": 2,
    "imageUrl": "https://media-cdn.tripadvisor.com/media/photo-o/06/c2/ce/b5/ett-hem.jpg",
    "url": "https://www.tripadvisor.com/Hotel_Review-g189852-d3225167-Reviews-Ett_Hem-Stockholm?"
  },
  {
    "id": 4,
    "title": "Rosersbergs Slottshotell",
    "description": "The Royal Palace of Rosersberg Conferences Hotel Meetings Events Weddings Concerts Nine minutes from Stockholm Arlanda Airport.",
    "rating": 3,
    "beds": 2,
    "imageUrl": "https://media-cdn.tripadvisor.com/media/photo-o/05/a7/e5/3e/rosersbergs-slottshotell.jpg",
    "url": "https://www.tripadvisor.com/Hotel_Review-g189852-d1489694-Reviews-Rosersbergs_Slottshotell-Stockholm?"
  },
  {
    "id": 5,
    "title": "Scandic Kista",
    "description": "Stay in one of our newly renovated rooms and enjoy our Livingroom, a cool, modern and comfortable place to hang out.",
    "rating": 3,
    "beds": 2,
    "imageUrl": "https://media-cdn.tripadvisor.com/media/photo-o/0d/6a/0b/23/the-hub-hotel-livingroom.jpg",
    "url": "https://www.tripadvisor.com/Hotel_Review-g1025032-d233089-Reviews-Scandic_Kista-Kista?"
  }
] 

Example XML Source

2
 Unwind and retreat at this new luxury hotel next to the Stockholm Waterfront Congress Centre, the area's premier events and conference venue
 1
 https://media-cdn.tripadvisor.com/media/photo-m/1280/19/69/4c/48/exterior.jpg
 4
 Radisson Blu Waterfront Hotel
 https://www.tripadvisor.com/Hotel_Review-g189852-d1879047-Reviews-Radisson_Blu_Waterfront_Hotel-Stockholm?
 
 
 3
 A modern hostel in Stockholm City City Hostel is a popular hostel in Stockholm with an international atmosphere close to both tourist attractions and transportation. 
 2
 https://media-cdn.tripadvisor.com/media/photo-o/05/c3/78/34/city-hostel.jpg
 2
 City Hostel
 https://www.tripadvisor.com/Hotel_Review-g189852-d664070-Reviews-City_Hostel-Stockholm?
 
 
 2
 Ett Hem is an excellent choice for travelers visiting Stockholm, offering a romantic environment alongside many helpful amenities designed to enhance your stay.
 3
 https://media-cdn.tripadvisor.com/media/photo-o/06/c2/ce/b5/ett-hem.jpg
 4
 Ett Hem
 https://www.tripadvisor.com/Hotel_Review-g189852-d3225167-Reviews-Ett_Hem-Stockholm?
 
 
 2
 The Royal Palace of Rosersberg Conferences Hotel Meetings Events Weddings Concerts Nine minutes from Stockholm Arlanda Airport.
 4
 https://media-cdn.tripadvisor.com/media/photo-o/05/a7/e5/3e/rosersbergs-slottshotell.jpg
 3
 Rosersbergs Slottshotell
 https://www.tripadvisor.com/Hotel_Review-g189852-d1489694-Reviews-Rosersbergs_Slottshotell-Stockholm?
 
 
 2
 Stay in one of our newly renovated rooms and enjoy our Livingroom, a cool, modern and comfortable place to hang out.
 5
 https://media-cdn.tripadvisor.com/media/photo-o/0d/6a/0b/23/the-hub-hotel-livingroom.jpg
 3
 Scandic Kista
 https://www.tripadvisor.com/Hotel_Review-g1025032-d233089-Reviews-Scandic_Kista-Kista?
 

Example with Row-level Segmentation

[
  {
    "id": 1,
    "title": "Radisson Blu Waterfront Hotel",
    "description": "Unwind and retreat at this new luxury hotel next to the Stockholm Waterfront Congress Centre, the area's premier events and conference venue",
    "rating": 4,
    "beds": 2,
    "imageUrl": "https://media-cdn.tripadvisor.com/media/photo-m/1280/19/69/4c/48/exterior.jpg",
    "url": "https://www.tripadvisor.com/Hotel_Review-g189852-d1879047-Reviews-Radisson_Blu_Waterfront_Hotel-Stockholm?",
    "APSIS_segmentation": {
      "exclude": {
        "operator": "ALL",
        "discriminators": [
          "usercreated.segments.male-6b2yx76ijg"
        ]
      },
      "include": {
        "operator": "ANY",
        "discriminators": [
          "usercreated.segments.email_contains_-f8co7hu4s8",
          "usercreated.segments.sweden-hak97le6zl"
        ]
      }
    }
  },
  {
    "id": 2,
    "title": "City Hostel",
    "description": "A modern hostel in Stockholm City City Hostel is a popular hostel in Stockholm with an international atmosphere close to both tourist attractions and transportation. ",
    "rating": 2,
    "beds": 3,
    "imageUrl": "https://media-cdn.tripadvisor.com/media/photo-o/05/c3/78/34/city-hostel.jpg",
    "url": "https://www.tripadvisor.com/Hotel_Review-g189852-d664070-Reviews-City_Hostel-Stockholm?",
    "APSIS_segmentation": {
      "exclude": {
        "operator": "ALL",
        "discriminators": [
          "usercreated.segments.male-6b2yx76ijg"
        ]
      },
      "include": {
        "operator": "ANY",
        "discriminators": [
          "usercreated.segments.email_contains_-f8co7hu4s8",
          "usercreated.segments.sweden-hak97le6zl"
        ]
      }
    }
  }
]
 
Did this answer your question?