<?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 Adding API key to search widget in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/adding-api-key-to-search-widget/m-p/1053725#M72841</link>
    <description>&lt;P&gt;Good day,&lt;/P&gt;&lt;P&gt;Could someone please advise on how I could add / include my API key to the search widget (below)?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;A href="https://codepen.io/U_B_U/pen/VwKBywq" target="_self"&gt;Search widget&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Louis&lt;/P&gt;</description>
    <pubDate>Mon, 03 May 2021 10:59:00 GMT</pubDate>
    <dc:creator>LouisCoetzee</dc:creator>
    <dc:date>2021-05-03T10:59:00Z</dc:date>
    <item>
      <title>Adding API key to search widget</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/adding-api-key-to-search-widget/m-p/1053725#M72841</link>
      <description>&lt;P&gt;Good day,&lt;/P&gt;&lt;P&gt;Could someone please advise on how I could add / include my API key to the search widget (below)?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;A href="https://codepen.io/U_B_U/pen/VwKBywq" target="_self"&gt;Search widget&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Louis&lt;/P&gt;</description>
      <pubDate>Mon, 03 May 2021 10:59:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/adding-api-key-to-search-widget/m-p/1053725#M72841</guid>
      <dc:creator>LouisCoetzee</dc:creator>
      <dc:date>2021-05-03T10:59:00Z</dc:date>
    </item>
    <item>
      <title>Re: Adding API key to search widget</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/adding-api-key-to-search-widget/m-p/1053839#M72847</link>
      <description>&lt;P&gt;Hey&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/471236"&gt;@LouisCoetzee&lt;/a&gt;,&amp;nbsp;thank for the question. Currently, there are two ways you can use an apiKey with the Search widget.&lt;/P&gt;&lt;P&gt;As of 4.18, you can use a global apiKey with esriConfig, which will work with the Search widget, and any other widget or basemap that requires&amp;nbsp;an apiKey. Example based on your app:&lt;/P&gt;&lt;P&gt;&lt;A href="https://codepen.io/noash/pen/yLgmRWK?editors=1000" target="_blank"&gt;https://codepen.io/noash/pen/yLgmRWK?editors=1000&lt;/A&gt;&lt;/P&gt;&lt;P&gt;At 4.19, you can also use a finely-grained apiKey on the LocatorSearchSource property of the Search widget.&amp;nbsp;Example based on your app:&lt;/P&gt;&lt;P&gt;&lt;A href="https://codepen.io/noash/pen/bGgXmZq?editors=1000" target="_blank"&gt;https://codepen.io/noash/pen/bGgXmZq?editors=1000&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;More information about apiKeys in general can be found here:&amp;nbsp;&lt;A href="https://developers.arcgis.com/javascript/latest/release-notes/#api-keys" target="_blank"&gt;https://developers.arcgis.com/javascript/latest/release-notes/#api-keys&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 03 May 2021 16:13:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/adding-api-key-to-search-widget/m-p/1053839#M72847</guid>
      <dc:creator>Noah-Sager</dc:creator>
      <dc:date>2021-05-03T16:13:33Z</dc:date>
    </item>
    <item>
      <title>Re: Adding API key to search widget</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/adding-api-key-to-search-widget/m-p/1055585#M72981</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/169842"&gt;@Noah-Sager&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;Thank you for your reply and for the examples.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have implemented the first example with my API key and it is working. - thank you!&lt;/P&gt;</description>
      <pubDate>Fri, 07 May 2021 09:15:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/adding-api-key-to-search-widget/m-p/1055585#M72981</guid>
      <dc:creator>LouisCoetzee</dc:creator>
      <dc:date>2021-05-07T09:15:51Z</dc:date>
    </item>
  </channel>
</rss>

