Affiliate API - Get Hotels( getHotels )

Navigate to Affiliate API


  • CustomActionName get-hotels
  • Name Get Hotels
  • Description Find hotel ids for a specified request.
  • MethodGroup Content Service


  • q
    Type Int64
    Description The locality you want a list of hotel ids from.
    Example <a class="showCode" href="/api/get-hotels?q=373275&webid=45">/api/get-hotels?q=373275&webid=45</a>
    Required true
  • private
    Type String
    Description If you wish to include private apartments with normal results, set to <em>include</em>. <br />If you wish to ONLY search for private apartments, you need to set this to <em>true</em>.
    Example <a class="showCode" href="/api/get-hotels?q=373275&private=include&webid=45">/api/get-hotels?q=373275&private=include&webid=45</a>
    Example <a class="showCode" href="/api/get-hotels?q=373275&private=true&webid=45">/api/get-hotels?q=373275&private=true&webid=45</a>
  • cb
    Type String
    Description Define a callback function for cross-site ajax.
    Example <a class="showCode" href="/api/get-hotels?q=373275&webid=45&cb=jsonpEF3C337">/api/get-hotels?q=373275&webid=45&cb=jsonpEF3C337</a>
  • webid
    Type Int32
    Description The affiliate id for the message you are requesting.
    Required true
  • callback
    Type String
    Description Define a callback function for cross-site ajax
  • IgnoreCache
    Type Boolean
  • ShowError
    Type Boolean


  • Type <a href="/ui/Show?name=Microsoft.AspNetCore.Mvc.ActionResult"></a>


  • Name Affiliate Json Result Empty
    Type <a href="/ui/Show?name=Affiliate Json Result Empty">JsonpResultEmpty</a>