Hosted Feature Services not available

161
1
11-30-2022 01:28 PM
SeanZhouTL
New Contributor

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:

Shouldbe.png

However, what I see under my account is:

Now.png

Does anyone know what happens and how I can fix it?

 

Thank you!

0 Kudos
1 Reply
LaurenBoyd
Esri Contributor

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...

Lauren