If you are an app developer and want to earn from your app, then you need to connect your app to the App Store. For connecting your app, you need to have an App-Store-Connect account. Here are the steps to get your App-Store-Connect Api Credentials.
You need to obtain these credentials:
Navigate to https://appstoreconnect.apple.com/access/api in your browser
Create a new ApiKey with Access “ADMIN”
Why Admin? We need admin access to pull information about your earning AND your current apps to show all information. https://developer.apple.com/help/app-store-connect/get-started/app-store-connect-api The keys are only stored on device, safely in your keychain
More information can be found here
Creating API Keys for App Store Connect API | Apple Developer Documentation