While doing getAllSitesId () i only receive 100 sites id of 253 sites

csvFilewithALLid

As explained in the API reference all Matomo APIs by default are limited to 100 rows of results, but by setting filter_limit you can specify your own limit (or -1 for no limit)