<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: ArcGiS Developer Account API Key for Geocoding in ArcGIS Location Service Questions</title>
    <link>https://community.esri.com/t5/arcgis-location-service-questions/arcgis-developer-account-api-key-for-geocoding/m-p/1564321#M57</link>
    <description>&lt;P&gt;Same issue... the docs suggest you can use an api key or an access token, but it does not accept the api key.&amp;nbsp; This can be caused by incorrect referrers.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 03 Dec 2024 20:19:04 GMT</pubDate>
    <dc:creator>AlertMediaDev</dc:creator>
    <dc:date>2024-12-03T20:19:04Z</dc:date>
    <item>
      <title>ArcGiS Developer Account API Key for Geocoding</title>
      <link>https://community.esri.com/t5/arcgis-location-service-questions/arcgis-developer-account-api-key-for-geocoding/m-p/1543121#M47</link>
      <description>&lt;P&gt;I am attempting to setup a simple nodejs application to geocode addresses, which is based on the following blog post&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.esri.com/arcgis-blog/products/developers/developers/find-address-coordinates-using-node-js/" target="_blank"&gt;https://www.esri.com/arcgis-blog/products/developers/developers/find-address-coordinates-using-node-js/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;In doing so, I went through the process of setting up an account then setting up an ApiKey with my developer account. I also gave it access to the geocoding feature. However in every case, I keep getting an error&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;ArcGISAuthError: 498: Invalid Token&lt;BR /&gt;at checkForErrors (***/test-arcgis/node_modules/@esri/arcgis-rest-request/dist/cjs/request.js:145:23)&lt;BR /&gt;at /***/test-arcgis/node_modules/@esri/arcgis-rest-request/dist/cjs/request.js:366:30&lt;BR /&gt;at process.processTicksAndRejections (node:internal/process/task_queues:95:5) {&lt;BR /&gt;originalMessage: 'Invalid Token',&lt;BR /&gt;code: 498,&lt;BR /&gt;response: { error: { code: 498, message: 'Invalid Token', details: [] } },&lt;BR /&gt;url: '&lt;A href="https://geocode-api.arcgis.com/arcgis/rest/services/World/GeocodeServer/findAddressCandidates" target="_blank"&gt;https://geocode-api.arcgis.com/arcgis/rest/services/World/GeocodeServer/findAddressCandidates&lt;/A&gt;',&lt;BR /&gt;options: {&lt;BR /&gt;httpMethod: 'POST',&lt;BR /&gt;params: {&lt;BR /&gt;f: 'json',&lt;BR /&gt;address: 'N Main st',&lt;BR /&gt;postal: 38103,&lt;BR /&gt;countryCode: 'USA'&lt;BR /&gt;},&lt;BR /&gt;authentication: ApiKeyManager {&lt;BR /&gt;portal: '&lt;A href="https://www.arcgis.com/sharing/rest" target="_blank"&gt;https://www.arcgis.com/sharing/rest&lt;/A&gt;',&lt;BR /&gt;key: '***jGmAOVb'&lt;BR /&gt;},&lt;BR /&gt;headers: {}&lt;BR /&gt;}&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;I am not quite sure how to resolve this or determine if I set it up correctly&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have gone through a series of online resources and have not been able to find the correct way to set this up.&lt;/P&gt;&lt;P&gt;Any assistance is appreciated.&lt;BR /&gt;Any assistance&lt;/P&gt;</description>
      <pubDate>Thu, 26 Sep 2024 16:49:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-location-service-questions/arcgis-developer-account-api-key-for-geocoding/m-p/1543121#M47</guid>
      <dc:creator>thxmike13</dc:creator>
      <dc:date>2024-09-26T16:49:18Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGiS Developer Account API Key for Geocoding</title>
      <link>https://community.esri.com/t5/arcgis-location-service-questions/arcgis-developer-account-api-key-for-geocoding/m-p/1564321#M57</link>
      <description>&lt;P&gt;Same issue... the docs suggest you can use an api key or an access token, but it does not accept the api key.&amp;nbsp; This can be caused by incorrect referrers.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 03 Dec 2024 20:19:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-location-service-questions/arcgis-developer-account-api-key-for-geocoding/m-p/1564321#M57</guid>
      <dc:creator>AlertMediaDev</dc:creator>
      <dc:date>2024-12-03T20:19:04Z</dc:date>
    </item>
  </channel>
</rss>

