### Get Properties API Response (JSON) Source: https://apidocs.guestyforhosts.com/index This is an example JSON response for the 'Get Properties' API endpoint, detailing various properties with their attributes like ID, name, location, and pricing. ```JSON [ { "id": "2f5c2804-c724-4b1f-b6a7-de97b730f969", "name": "Airbnb Listing Name 1", "nickname": "Internal Listing Name 1", "propertyType": "entire_home", "numberOfBedrooms": 2, "numberOfBeds": 2, "numberOfBathrooms": 2, "accommodates": 4, "city": "St Helena", "country": "United States", "countryCode": "US", "zipCode": "94574", "latitude": 38.490467, "longitude": -122.460449, "currency": "USD", "listingPrice": 200, "listed": true }, { "id": "fb6dc2b8-dd82-437b-932f-edc4b5b23c40", "name": "Airbnb Listing Name 1", "nickname": "Internal Listing Name 2", "propertyType": "entire_home", "numberOfBedrooms": 3, "numberOfBeds": 3, "numberOfBathrooms": 2, "accommodates": 8, "city": "St Helena", "country": "United States", "countryCode": "US", "zipCode": "94574", "latitude": 38.490467, "longitude": -122.460449, "currency": "USD", "listingPrice": 100, "listed": true } ] ``` -------------------------------- ### Get Property Info API Response (JSON) Source: https://apidocs.guestyforhosts.com/index This is an example JSON response for the 'Get Property Info' API endpoint, providing detailed attributes for a single property, including its ID, name, and accommodation details. ```JSON { "id": "fb6dc2b8-dd82-437b-932f-edc4b5b23c40", "name": "Airbnb Listing Name 1", "nickname": "Internal Listing Name 2", "propertyType": "entire_home", "numberOfBedrooms": 3, "numberOfBeds": 3, "numberOfBathrooms": 2, "accommodates": 8, "city": "St Helena", "country": "United States", "countryCode": "US", "zipCode": "94574", "latitude": 38.490467, "longitude": -122.460449, "currency": "USD", "listingPrice": 100, "listed": true } ``` -------------------------------- ### Get Properties using cURL Source: https://apidocs.guestyforhosts.com/index This snippet demonstrates how to fetch a list of all properties using the Guesty For Hosts External API via cURL. It requires an Authorization header with a user token and an x-porter-api-key. ```cURL curl --location 'https://api.guestyforhosts.com/external/v1/listings/getAll' \ --header 'Authorization: Basic user_authorization_token' \ --header 'x-porter-api-key: porter_api_key' ``` -------------------------------- ### Get Rates Request (cURL) Source: https://apidocs.guestyforhosts.com/index This snippet demonstrates how to make a GET request to the Guesty for Hosts API to retrieve rates for a given listing and date range. It includes the necessary URL, authorization headers, and parameters. ```curl curl --location 'https://api.guestyforhosts.com/external/v1/rates?listing_id=2f5c2804-c724-4b1f-b6a7-de97b730f969&start_date=2020-12-01&end_date=2020-12-03' \ --header 'Authorization: Basic user_authorization_token' \ --header 'x-porter-api-key: porter_api_key' ``` -------------------------------- ### Get Rates Response (JSON) Source: https://apidocs.guestyforhosts.com/index This snippet shows a successful JSON response from the Guesty for Hosts API when requesting rates. It details the currency code and an array of daily rates, including the date, price, and availability. ```json { "currencyCode": "USD", "rates": [ { "date": "2020-12-01", "price": 102, "available": true }, { "date": "2020-12-02", "price": 102, "available": true }, { "date": "2020-12-03", "price": 102, "available": true } ] } ``` -------------------------------- ### Get Property Info using cURL Source: https://apidocs.guestyforhosts.com/index This snippet shows how to retrieve detailed information for a specific property using its ID via the Guesty For Hosts External API with cURL. It requires authentication headers and the listing_id parameter. ```cURL curl --location 'https://api.guestyforhosts.com/external/v1/listings/get?listing_id=2f5c2804-c724-4b1f-b6a7-de97b730f969' \ --header 'Authorization: Basic user_authorization_token' \ --header 'x-porter-api-key: porter_api_key' \ --data '' ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.