Hello Everyone,
I am setting up the API for the JavaScript. Following the tutorial, I should be able to give access to hosted feature services in my ArcGIS online account to API as pictures below by "Add items" option:
However, what I see under my account is:
Does anyone know what happens and how I can fix it?
Thank you!
Hi @SeanZhouTL -
This is most likely happening because you're logged in with your ArcGIS Online account and not a developer account. You can only use API keys to access private content and items if you're using a Developer account and you can't do this with an ArcGIS Online account.
This information is outlined here: https://developers.arcgis.com/documentation/mapping-apis-and-services/security/api-keys/#access-cont...