Get the headcount report
talenthr_get_headcount_reportHeadcount per month over a period (total and optionally grouped by gender, location, department, division, ...), plus the current headcount.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filter | No | Filter: key=comma-separated ids, keys separated by ';', e.g. location=36;emp_state=1,2,3. Valid keys and ids come from talenthr_get_directory_filters. | |
| period | No | Reporting period: l12m (last 12 months) or a 4-digit year (the current or the previous calendar year). Alternatively pass start_date and end_date (max 36 months). | |
| end_date | No | Custom range end, yyyy-mm-dd. | |
| group_by | No | Break the headcount down by this dimension. | |
| start_date | No | Custom range start, yyyy-mm-dd (use with end_date instead of period). |