You can use the internal API "https://appstoreconnect.apple.com/analytics/api/v1/data/time-series" but it's not well documented (https://developer.apple.com/forums/thread/29421)
Another option is to use an ELT (extract/load/transform) tool that provides and maintains the connector to App Store Analytics such as Rivery (https://docs.rivery.io/docs/walkthrough-appstore-connect-apps-analytics)
In your situation you'd want to use the "Source" as a dimension and retrieve the "total downloads" metrics to get this breakdown. However an ELT tool would work only if you plan on landing the data into a supported target (cloud data warehouse, bucket, email, data lake, etc)