Apaleo icon

Apaleo

Interact with Apaleo API

Actions66

Block → GET block count

AI-generated

Overview

This node operation retrieves the count of blocks from the Apaleo API, optionally filtered by property IDs, date range, and status. It is useful for scenarios where you need to know the number of blocks matching specific criteria, such as generating reports or monitoring block statuses within a given timeframe.

Use Case Examples

  1. Count blocks for specific property IDs to analyze booking trends.
  2. Get the number of blocks created between two dates to monitor occupancy.
  3. Filter blocks by status (Tentative, Definite, Canceled) to assess booking confirmations.

Properties

Name Meaning
Property IDs Comma-separated list of property IDs to filter the blocks by.
From Date Filter blocks starting from this date.
To Date Filter blocks until this date.
Status Filter blocks by their status, such as Tentative, Definite, or Canceled.

Output

JSON

  • count - The total number of blocks matching the filter criteria.

Dependencies

  • Requires an API key credential for Apaleo API authentication.

Troubleshooting

  • Common issues include invalid or expired API credentials, resulting in authentication errors.
  • Incorrect date formats or invalid property IDs may cause the API to return errors or empty results.
  • If the node throws errors, ensure the 'resource' is set to 'block' and 'operation' to 'GET block count' as expected.

Links

Discussion