In addition to using a customer key to access the Sitecore Search API, you can also set up a subdomain to work with the API. In this article, we will show you how to set this up.
![](/_next/image?url=https%3A%2F%2Fimages.ctfassets.net%2Fzi1ovlormku8%2F3W66U9VjsryWY6lKzFViHI%2F1a4566f956ef9234798101af48ddf61b%2Fkwan-fung-y4iF0-lGh6g-unsplash.jpg&w=3840&q=75)
Subdomain Setup
To open the screen for setting up a subdomain, select Administration - Domain Settings to open the Domain Settings screen, then select the Subdomain Setup tab. A screen similar to the one below will appear.
![subdomain01.png](/_next/image?url=https%3A%2F%2Fimages.ctfassets.net%2Fzi1ovlormku8%2F2NAPfHzqonW0XjvXXs98kW%2F63952576ccec7a3b4cc5e777a5a46ef0%2Fsubdomain01.png&w=3840&q=75)
The first time, click on the Run Setup button. After a few moments, you will see the information you need to configure in DNS.
![subdomain02.png](/_next/image?url=https%3A%2F%2Fimages.ctfassets.net%2Fzi1ovlormku8%2F7wlT3KHBKA9JKoMnvFlATK%2F4d09ba36883b6dd3125a77544d929a73%2Fsubdomain02.png&w=3840&q=75)
Set the value displayed in DNS and execute again. If the message "Setup Successful" is displayed, the setup is complete.
![subdomain03.png](/_next/image?url=https%3A%2F%2Fimages.ctfassets.net%2Fzi1ovlormku8%2F7azxvkcCBrsj5VzUp3rxEu%2F1334de516fe439b5c1bb9b3c25edc240%2Fsubdomain03.png&w=3840&q=75)
Summary
In this article, we have introduced a procedure regarding subdomains that can be used when you wish to operate without the use of a customer key. Although the setting of this function is optional, it may change the implementation of the site depending on, for example, whether the domains requesting the API are the same or different. For this reason, please decide whether or not to configure the setting according to your development and operation.