fix from/to bug in API (delivers #46940993) and add pager to API (delivers #46941047)