Export CSV of control indices

Automatic translation. View original

You can import PADMA control indices into your systems.

The control indices are monthly per school.

ENDPOINT:

GET https://crm.derose.app/statistics/accounts/ACCOUNT_ID/monthly_stats.csv
ou
GET https://crm.derose.app/statistics/monthly_stats.csv

COLUMNS IN EXPORT

staff note: see views/statistics/monthly_stats/index

ref_date : Date representing the validity of the data. Always the last day of the respective month.

account_id : Internal identifier to derose.app of the school

name : Name of the control index that identifies what the data represents.

value : Value of the control index.

Example

ref_date account_id name value
2022-7-31 cervino students 69

This row indicates that the school ‘cervino’ closed July 2022 with 69 students.

PARAMETERS FOR EXPORT

report : (optional) request this value from our team Contact

secret_key_login : is the apikey for public access to the export from your system. To generate a school key, consult How to generate and manage API keys for your school.

where[since_ref_date] : Date in YYYY-MM-DD format. will return only indices from this date onward.

where[until_ref_date] : Date in YYYY-MM-DD format. will return only indices up to this date.

where[name][] : this field can appear multiple times. Indicates the indices you want to include in the report.

Available control indices

staff note: Statistics::MonthlyStat::VALID_NAMES

demand: Searches

male_demand: Search for men

interviews: Visits

male_interviews: Visits of men

p_interviews: Profile Visits

male_p_interviews: Profile Visits of men

enrollments: Enrollments

students: Students

male_students: Male students

standard_students: Students with ‘standard’ payment, above the MP.

lite_students: Students with ‘lite’ payment, below the MP.

aspirante_students, sadhaka_students, yogin_students, chela_students, graduado_students, assistant_students, professor_students, master_students: Students at aspirant, sadhaka, yogin levels, etc.

students_average_age: Average age of students

count_students_0_25: Students aged between 0 and 25 years (inclusive)

count_students_0_35: Students aged between 0 and 35 years (inclusive)

students_cycle_duration: How many days a student remains at the school on average.

dropouts: Dropouts

There are many other control indices not included in this documentation. Consult our team if you need another index: Contact

Example

https://crm.derose.app/statistics/monthly_stats.csv?report=xx&where[since_ref_date]=2022-7-1&where[name][]=students&where[name][]=enrollments&where[name][]=dropouts&where[name][]=interviews&secret_key_login=XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX

Example 2 - Google Drive

combining the INDEX function and the IMPORTDATA function we can obtain a control index in a cell of GoogleDrive.

=index(importdata("https://crm.derose.app/statistics/accounts/cervino/monthly_stats.csv?ts=4&secret_key_login="&apikey&"&where[type]=Statistics::SchoolMonthlyStat&where[name][]=students_cycle_duration&where[since_ref_date]="&ref_date&"&where[until_ref_date]="&eomonth),2,4)

Back to CRM API

Contact support