Skip to content

Instantly share code, notes, and snippets.

@jmccartie
Last active May 12, 2017 17:25
Show Gist options
  • Save jmccartie/6ed9de30a8a58652e8d87b8902898b0b to your computer and use it in GitHub Desktop.
Save jmccartie/6ed9de30a8a58652e8d87b8902898b0b to your computer and use it in GitHub Desktop.
Airbnb search results return

Request

https://www.airbnb.com/search/search_results?page=1&source=map&airbnb_plus_only=false&sw_lat=40.77338747897795&sw_lng=-112.35851074218755&ne_lat=41.52173130250669&ne_lng=-109.89757324218755&search_by_map=true&location=Provo%2C+UT%2C+United+States&checkin=06%2F05%2F2016&checkout=06%2F11%2F2016&guests=5&room_types%5B%5D=Entire+home%2Fapt&ss_id=tas1rhta

Results

{
  "filters": "\n  <div class=\"filters-section intro-filter panel-body panel-light\">\n    <div class=\"row\">\n      <div class=\"col-lg-2 col-md-12 text-center-sm text-center-md row-space-sm-1 filter-label\">\n        <label>Dates</label>\n      </div>\n\n      <form class=\"col-lg-9 trip-form\">\n        <div class=\"row row-condensed\">\n          <div class=\"col-md-4 col-sm-6 row-space-1-sm\">\n            <label for=\"map-search-checkin\" class=\"screen-reader-only\">\n              Check In\n            </label>\n            <input name=\"checkin\"\n                   id=\"map-search-checkin\"\n                   type=\"text\"\n                   autocomplete=\"off\"\n                   class=\"checkin tour-target\"\n                   placeholder=\"Check In\">\n          </div>\n\n          <div class=\"col-md-4 col-sm-6 row-space-1-sm\">\n            <label for=\"map-search-checkout\" class=\"screen-reader-only\">\n              Check Out\n            </label>\n            <input name=\"checkout\"\n                   id=\"map-search-checkout\"\n                   type=\"text\"\n                   autocomplete=\"off\"\n                   class=\"checkout tour-target\"\n                   placeholder=\"Check Out\">\n          </div>\n\n          <div class=\"col-md-4 col-sm-12\">\n            <div class=\"select select-block\">\n              <label for=\"guest-select\" class=\"screen-reader-only\">\n                Number of guests\n              </label>\n              <select name=\"guests\"\n                      class=\"guest-select\"\n                      id=\"guest-select\"\n                      data-prefill=\"5\">\n                <option value=\"1\">1 Guest</option>\n<option value=\"2\">2 Guests</option>\n<option value=\"3\">3 Guests</option>\n<option value=\"4\">4 Guests</option>\n<option value=\"5\">5 Guests</option>\n<option value=\"6\">6 Guests</option>\n<option value=\"7\">7 Guests</option>\n<option value=\"8\">8 Guests</option>\n<option value=\"9\">9 Guests</option>\n<option value=\"10\">10 Guests</option>\n<option value=\"11\">11 Guests</option>\n<option value=\"12\">12 Guests</option>\n<option value=\"13\">13 Guests</option>\n<option value=\"14\">14 Guests</option>\n<option value=\"15\">15 Guests</option>\n<option value=\"16\">16+ Guests</option>\n              </select>\n            </div>\n          </div>\n        </div>\n      </form>\n    </div>\n  </div>\n\n  <div class=\"filters-section room-type-group intro-filter panel-body panel-light\"\n      data-name=\"room_types\">\n    <div class=\"row\">\n      <div class=\"col-lg-2 col-md-12 text-center-sm text-center-md filter-label\">\n        <label>\n          Room Type\n          <i class=\"icon icon-question hide-sm hide-md\" id=\"room-type-tooltip\"></i>\n        </label>\n\n        <div class=\"tooltip tooltip-left-middle show-lg\" role=\"tooltip\"\n             data-trigger=\"#room-type-tooltip\" data-sticky=\"true\">\n          <dl class=\"panel-body\">\n            <dt>Entire Home</dt>\n            <dd>Listings where you have the whole place to yourself.</dd>\n            <dt>Private Room</dt>\n            <dd>Listings where you have your own room but share some common spaces.</dd>\n            <dt>Shared Room</dt>\n            <dd>Listings where you'll share your room or your room may be a common space.</dd>\n          </dl>\n        </div>\n      </div>\n\n      <div class=\"col-lg-9\">\n        <div id=\"room-options\" class=\"row row-condensed\n          \">\n              <div class=\"col-middle-alt col-sm-4\">\n                <label class=\"checkbox facet-checkbox facet-checkbox--room-type panel panel-dark\">\n                    <div class=\"facet-checkbox__icon-col\">\n                      <i class=\"icon icon-home h5 needsclick\"></i>\n                    </div>\n                    <div class=\"facet-checkbox__label-col\">\n                      <span>Entire home/apt</span>\n                    </div>\n                    <div class=\"facet-checkbox__input-col\">\n                      <input type=\"checkbox\" name=\"room-type\" value=\"Entire home/apt\">\n                    </div>\n                </label>\n              </div>\n              <div class=\"col-middle-alt col-sm-4\">\n                <label class=\"checkbox facet-checkbox facet-checkbox--room-type panel panel-dark\">\n                    <div class=\"facet-checkbox__icon-col\">\n                      <i class=\"icon icon-private-room h5 needsclick\"></i>\n                    </div>\n                    <div class=\"facet-checkbox__label-col\">\n                      <span>Private room</span>\n                    </div>\n                    <div class=\"facet-checkbox__input-col\">\n                      <input type=\"checkbox\" name=\"room-type\" value=\"Private room\">\n                    </div>\n                </label>\n              </div>\n              <div class=\"col-middle-alt col-sm-4\">\n                <label class=\"checkbox facet-checkbox facet-checkbox--room-type panel panel-dark\">\n                    <div class=\"facet-checkbox__icon-col\">\n                      <i class=\"icon icon-shared-room h5 needsclick\"></i>\n                    </div>\n                    <div class=\"facet-checkbox__label-col\">\n                      <span>Shared room</span>\n                    </div>\n                    <div class=\"facet-checkbox__input-col\">\n                      <input type=\"checkbox\" name=\"room-type\" value=\"Shared room\">\n                    </div>\n                </label>\n              </div>\n        </div>\n      </div>\n    </div>\n  </div>\n\n  <div class=\"filters-section intro-filter panel-body panel-light\">\n    <div class=\"row\">\n      <div class=\"col-lg-2 col-md-12 text-center-sm text-center-md filter-label\">\n        <label>Price Range</label>\n      </div>\n      <div class=\"col-lg-9 col-md-12\">\n        <div class=\"price-range-slider\"\n             data-avg-price=\"\"\n             data-currency-symbol-left=\"$\"\n             data-currency-symbol-right=\"\"\n             data-histogram-data=\"\"\n             data-min-price-daily=\"10\"\n             data-max-price-daily=\"1000\"\n             data-min-price-monthly=\"150\"\n             data-max-price-monthly=\"15000\"\n             data-min-price-total=\"60\"\n             data-max-price-total=\"6000\">\n\n          <div class=\"ui-slider\">\n            <div class=\"row-space-2 progress\"></div>\n            <div class=\"row\">\n              <div class=\"col-6\">\n                $<span class=\"price\"></span>\n              </div>\n              <div class=\"col-6 text-right\">\n                $<span class=\"price\"></span>\n              </div>\n            </div>\n          </div>\n\n        </div>\n      </div>\n    </div>\n  </div>\n\n\n  <div class=\"filters-section size-group panel-body panel-light\">\n    <div class=\"row\">\n      <div class=\"col-lg-2 col-md-12 text-center-sm text-center-md filter-label\">\n        <label>Size</label>\n      </div>\n\n      <form class=\"col-lg-9\">\n        <div class=\"row row-condensed\">\n          <div class=\"col-md-4 col-sm-12 row-space-1\">\n            <div class=\"select select-block\" data-name=\"min_bedrooms\">\n              <label for=\"map-search-min-bedrooms\" class=\"screen-reader-only\">\n                Minimum number of bedrooms\n              </label>\n              <select name=\"min_bedrooms\" class=\"min-bedrooms\" id=\"map-search-min-bedrooms\">\n                <option value=\"-1\">Bedrooms</option>\n                <option value=\"1\">1 Bedroom</option>\n<option value=\"2\">2 Bedrooms</option>\n<option value=\"3\">3 Bedrooms</option>\n<option value=\"4\">4 Bedrooms</option>\n<option value=\"5\">5 Bedrooms</option>\n<option value=\"6\">6 Bedrooms</option>\n<option value=\"7\">7 Bedrooms</option>\n<option value=\"8\">8 Bedrooms</option>\n<option value=\"9\">9 Bedrooms</option>\n<option value=\"10\">10 Bedrooms</option>\n              </select>\n            </div>\n          </div>\n\n          <div class=\"col-md-4 col-sm-12 row-space-1\">\n            <div class=\"select select-block\" data-name=\"min_bathrooms\">\n              <label for=\"map-search-min-bathrooms\" class=\"screen-reader-only\">\n                Minimum number of bathrooms\n              </label>\n              <select name=\"min_bathrooms\"\n                      class=\"min-bathrooms input-medium\"\n                      id=\"map-search-min-bathrooms\">\n                <option value=\"-1\">Bathrooms</option>\n                <option value=\"0.0\">0 Bathrooms</option>\n<option value=\"0.5\">0.5 Bathrooms</option>\n<option value=\"1.0\">1 Bathroom</option>\n<option value=\"1.5\">1.5 Bathrooms</option>\n<option value=\"2.0\">2 Bathrooms</option>\n<option value=\"2.5\">2.5 Bathrooms</option>\n<option value=\"3.0\">3 Bathrooms</option>\n<option value=\"3.5\">3.5 Bathrooms</option>\n<option value=\"4.0\">4 Bathrooms</option>\n<option value=\"4.5\">4.5 Bathrooms</option>\n<option value=\"5.0\">5 Bathrooms</option>\n<option value=\"5.5\">5.5 Bathrooms</option>\n<option value=\"6.0\">6 Bathrooms</option>\n<option value=\"6.5\">6.5 Bathrooms</option>\n<option value=\"7.0\">7 Bathrooms</option>\n<option value=\"7.5\">7.5 Bathrooms</option>\n<option value=\"8\">8+ Bathrooms</option>\n              </select>\n            </div>\n          </div>\n\n          <div class=\"col-md-4 col-sm-12\">\n            <div class=\"select select-block\" data-name=\"min_beds\">\n              <label for=\"map-search-min-beds\" class=\"screen-reader-only\">\n                Minimum number of beds\n              </label>\n              <select name=\"min_beds\" class=\"min-beds input-medium\" id=\"map-search-min-beds\">\n                <option value=\"-1\">Beds</option>\n                <option value=\"1\">1 Bed</option>\n<option value=\"2\">2 Beds</option>\n<option value=\"3\">3 Beds</option>\n<option value=\"4\">4 Beds</option>\n<option value=\"5\">5 Beds</option>\n<option value=\"6\">6 Beds</option>\n<option value=\"7\">7 Beds</option>\n<option value=\"8\">8 Beds</option>\n<option value=\"9\">9 Beds</option>\n<option value=\"10\">10 Beds</option>\n<option value=\"11\">11 Beds</option>\n<option value=\"12\">12 Beds</option>\n<option value=\"13\">13 Beds</option>\n<option value=\"14\">14 Beds</option>\n<option value=\"15\">15 Beds</option>\n<option value=\"16\">16+ Beds</option>\n              </select>\n            </div>\n          </div>\n        </div>\n      </form>\n    </div>\n  </div>\n\n  <div class=\"filters-section options panel-body panel-light\n      \n      \" data-name=\"options_filters\">\n    <div class=\"row\">\n      <div class=\"col-lg-2 col-md-12 filter-label\">\n        <label>Options</label>\n      </div>\n      <div class=\"col-lg-9\">\n        <div class=\"row row-condensed\">\n          <div class=\"col-lg-4 col-md-6 instant-book-filter hide\">\n            <label id=\"instant-book-tooltip\" class=\"row row-condensed\">\n              <div class=\"col-lg-2 col-sm-1 col-middle-alt instant-book\">\n                <input type=\"checkbox\" name=\"instant_book\" value=\"instant_book\">\n              </div>\n              <div class=\"col-lg-10 col-sm-11 col-middle-alt needsclick\">\n                <i class=\"icon icon-instant-book icon-beach needsclick\"></i>\n                Instant Book\n                <br>\n                <small class=\"text-muted needsclick\">\n                  Secure a reservation instantly.\n                  <a class=\"instant-book-filter-link\"\n                     href=\"/help/article/187\"\n                     target=\"_blank\">\n                    Learn More\n                  </a>\n                </small>\n              </div>\n            </label>\n          </div>\n\n            <div class=\"col-lg-4 col-md-6\">\n              <label id=\"superhost-tooltip\" class=\"row row-condensed checkbox\">\n                <div class=\"col-lg-2 col-sm-1 col-middle-alt superhost\">\n                  <input type=\"checkbox\" name=\"superhost\" value=\"superhost\">\n                </div>\n                <div class=\"col-lg-10 col-sm-11 col-middle-alt needsclick\">\n                  <div class=\"superhost-badge\"></div>\n                  Superhost</br>\n                  <small class=\"text-muted needsclick\">\n                    Stay with recognized hosts.\n                    <a class=\"superhost-filter-link\" href=\"/superhost\" target=\"_blank\">Learn More</a>\n                  </small>\n                </div>\n              </label>\n            </div>\n\n        </div>\n      </div>\n    </div>\n  </div>\n\n  <div class=\"checkbox-group neighborhoods filters-section panel-body panel-light\"\n       data-name=\"neighborhoods\">\n    <div class=\"row\">\n      <div class=\"col-lg-2 col-md-12 filter-label\">\n        <label>Neighborhoods</label>\n      </div>\n\n      <div class=\"col-lg-9 col-md-11\">\n        <div class=\"row row-condensed filters-columns\">\n        </div>\n\n        <div class=\"filters-more collapse\">\n          <hr>\n          <div class=\"row row-condensed filters-columns\">\n          </div>\n        </div>\n      </div>\n\n      <div class=\"col-md-1\">\n        <label class=\"show-more\">\n          <span>\n            <i class=\"icon icon-caret-down hide-sm\"></i>\n            <strong class=\"text-muted show-sm\">+ More</strong>\n          </span>\n          <span class=\"hide\"><i class=\"icon icon-caret-up\"></i></span>\n        </label>\n      </div>\n    </div>\n  </div>\n\n  <div class=\"checkbox-group hosting_amenities filters-section panel-body panel-light\"\n       data-name=\"hosting_amenities\">\n    <div class=\"row\">\n      <div class=\"col-lg-2 col-md-12 filter-label\">\n        <label>Amenities</label>\n      </div>\n\n      <div class=\"col-lg-9 col-md-11\">\n        <div class=\"row row-condensed filters-columns\">\n        </div>\n\n        <div class=\"filters-more collapse\">\n          <hr>\n          <div class=\"row row-condensed filters-columns\">\n          </div>\n        </div>\n      </div>\n\n      <div class=\"col-md-1\">\n        <label class=\"show-more\">\n          <span>\n            <i class=\"icon icon-caret-down hide-sm\"></i>\n            <strong class=\"text-muted show-sm\">+ More</strong>\n          </span>\n          <span class=\"hide\"><i class=\"icon icon-caret-up\"></i></span>\n        </label>\n      </div>\n    </div>\n  </div>\n\n  <div class=\"checkbox-group cancel_policies filters-section panel-body panel-light\"\n       data-name=\"cancel_policies\">\n    <div class=\"row\">\n      <div class=\"col-lg-2 col-md-12 filter-label\">\n        <label>\n          Cancellation Policy\n            <i class=\"icon icon-question hide-sm hide-md\" id=\"cancel-policy-tooltip\"></i>\n        </label>\n\n        <div class=\"tooltip tooltip-left-middle show-lg\" role=\"tooltip\"\n             data-trigger=\"#cancel-policy-tooltip\" data-sticky=\"true\">\n          <dl class=\"panel-body\">\n            <dt>Flexible</dt>\n            <dd>Full refund 1 day prior to arrival, except fees</dd>\n            <dt>Moderate</dt>\n            <dd>Full refund 5 days prior to arrival, except fees</dd>\n            <dt>Strict</dt>\n            <dd>50% refund up until 1 week prior to arrival, except fees</dd>\n          </dl>\n        </div>\n      </div>\n\n      <div class=\"col-lg-9 col-md-11\">\n        <div class=\"row row-condensed filters-columns\">\n        </div>\n\n        <div class=\"filters-more collapse\">\n          <hr>\n          <div class=\"row row-condensed filters-columns\">\n          </div>\n        </div>\n      </div>\n\n      <div class=\"col-md-1\">\n        <label class=\"show-more\">\n          <span>\n            <i class=\"icon icon-caret-down hide-sm\"></i>\n            <strong class=\"text-muted show-sm\">+ More</strong>\n          </span>\n          <span class=\"hide\"><i class=\"icon icon-caret-up\"></i></span>\n        </label>\n      </div>\n    </div>\n  </div>\n\n  <div class=\"checkbox-group property_type_id filters-section panel-body panel-light\"\n       data-name=\"property_type_id\">\n    <div class=\"row\">\n      <div class=\"col-lg-2 col-md-12 filter-label\">\n        <label>Property Type</label>\n      </div>\n\n      <div class=\"col-lg-9 col-md-11\">\n        <div class=\"row row-condensed filters-columns\">\n        </div>\n\n        <div class=\"filters-more collapse\">\n          <hr>\n          <div class=\"row row-condensed filters-columns\">\n          </div>\n        </div>\n      </div>\n\n      <div class=\"col-md-1\">\n        <label class=\"show-more\">\n          <span>\n            <i class=\"icon icon-caret-down hide-sm\"></i>\n            <strong class=\"text-muted show-sm\">+ More</strong>\n          </span>\n          <span class=\"hide\"><i class=\"icon icon-caret-up\"></i></span>\n        </label>\n      </div>\n    </div>\n\n  </div>\n\n  <div class=\"checkbox-group languages filters-section panel-body panel-light\"\n       data-name=\"languages\">\n    <div class=\"row\">\n      <div class=\"col-lg-2 col-md-12 filter-label\">\n        <label>Host Language</label>\n      </div>\n\n      <div class=\"col-lg-9 col-md-11\">\n        <div class=\"row row-condensed filters-columns\">\n        </div>\n\n        <div class=\"filters-more collapse\">\n          <hr>\n          <div class=\"row row-condensed filters-columns\">\n          </div>\n        </div>\n      </div>\n\n      <div class=\"col-md-1\">\n        <label class=\"show-more\">\n          <span>\n            <i class=\"icon icon-caret-down hide-sm\"></i>\n            <strong class=\"text-muted show-sm\">+ More</strong>\n          </span>\n          <span class=\"hide\"><i class=\"icon icon-caret-up\"></i></span>\n        </label>\n      </div>\n    </div>\n  </div>\n\n  <div class=\"panel-body panel-light show-sm\">\n    <div class=\"sticky-apply-filters-placeholder\"></div>\n  </div>\n",
  "visible_results_count": 0,
  "results_count_string": null,
  "urgent_header_string": null,
  "urgent_div_class": null,
  "center_lat": null,
  "center_lng": null,
  "url_tag": "RaK4Cu31",
  "logging_info": {
    "search": {
      "market": null,
      "performance": {
        "monorail_request_construction": 0.04523348808288574,
        "backend_return_result": 0.05080986022949219
      }
    },
    "pricing": {}
  },
  "property_ids": [],
  "is_last_minute_search": false,
  "p2_ib_filter_on_last_minute_default": false,
  "p2_ib_filter_on_last_minute_default_enabled": true,
  "ib_override": null,
  "is_total_price": false,
  "average_price": null,
  "histogram": null,
  "max_price_total": 6000,
  "min_price_total": 60,
  "show_btr_banner": false,
  "search_geo_info": {},
  "canonical_location_en": "",
  "has_airbnb_plus_availability": false,
  "pagination_footer": "<div class=\"results-footer\">\n\n    <div class=\"pagination-buttons-container row-space-8\">\n      <div class=\"results_count\">\n        <p>\n          \n        </p>\n      </div>\n      \n    </div>\n\n\n</div>\n",
  "results": "\n<div class=\"listings-container\">\n      <div class=\"row\">\n\n      </div>\n\n      <div class=\"col-10 col-sm-offset-1 row-space-top-2-sm col-md-offset-0 col-lg-8\">\n        <p class=\"text-lead\">We couldn’t find any results that matched your criteria, but tweaking your search may help. Here are some ideas:</p>\n        <ul>\n          <li>Remove some filters.</li>\n          <li>Expand the area of your search.</li>\n          <li>Search for a city, address, or landmark.</li>\n        </ul>\n      </div>\n</div>\n",
  "guidebook_url": null
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment