# Create Google API for your store

Even the API key is not compulsory for the app but it will help the app run smoothly, therefore we still recommend you to create an API key on your own for your business. There are 6 main steps to create an API key:

**1. Create a billing account**

The first step that you need to take is creating a billing account. If you already owned a billing account, you can skip this step.

First, you go to the [Google Cloud Platform Console](https://console.cloud.google.com/home/) and sign in to your account. Then, you click on the menu button and select **Billing**.

![](/files/-M8sMnWDdO7u8sUS2nVo)

After that, you will see the **Add billing account** button on the **My billing accounts** tab. Click on that button and fill all the required information including Name, Address, Card number,...&#x20;

![Click on the Add billing account button](/files/-M8sNEDwYuKvVyVC4JXS)

&#x20;

![Fill all the required information](/files/-M8sOI4FIvOz2NJKsybj)

**2. Enable billing for your project**

To let the API work, Google platform asks you to enable billing for your project.&#x20;One more time, click on the menu button and choose the **Billing** section.&#x20;

Then, you just need to link the project with your billing accounts.

![](/files/-M8sP4SRePDybvyCqrX0)

**3. Enable 5 types of API**

As our apps use 5 types of API, which are **Direction**, **Geocoding**, **Geolocation**, **Maps JavaScript,** and **Place APIs**, you need to check whether you enable these APIs or not.

Click on the menu button again and select **APIs & Services** and click on **Library** .

![](/files/-M8sPQA690_o8LLV23Pd)

Then, you click on the **View All** button and choose these 5 above APIs.&#x20;

![The 5 APIs need to be enabled ](/files/-M8sPr8lApWNHZikboma)

If you have already enabled these APIs, the platform will show the **Manage** button.&#x20;

![](/files/-M8thTMi83oUGpjQrJNr)

Otherwise, it will show the **Enable** button for you. Click on that button to enable them for your project.

![](/files/-M8tZska1GHfEBX79JpY)

**4. Create an API**

The next step that needs to be done is creating an API key. To create an API key, you also click on the menu button and select **APIs & Services** > **Credentials**.

![](/files/-M8thcDdWlhHHZ2eRvDB)

On the **Credentials** page, you click **Create** credentials and choose API key.

![](/files/-M8thzYZgW4n67kd38LN)

Google platform will automatically create for you an API but you need to restrict this API&#x20;

**5. Restrict the API key**

To restrict the API you click on the **Edit** icon, the platform will bring you to the **Restrict and rename API key page.**

![Click on the Edit icon](/files/-M8tiLVNG3_xCMDkVYdh)

On this page, you can rename the API as well as restrict it. In case you have many APIs, you can rename it as "Store Pickup", which makes it easier to keep track.&#x20;

![](/files/-M8tjEVSyMJIeAagW2bX)

When you scroll down, there will be the **Application restrictions** and **API restrictions** parts.&#x20;

With the **Application restrictions**, you choose the HTTP referrers and fill your store URL link in the "Website restrictions" field. Please remember to add a wildcard asterisk (\*) symbol after your store URL link, so the API can work with all the pages of your store:

![](/files/-M8tjuJaTqw2Pocc4M2e)

And for the **API restrictions,** you select the "Restrict key" option and click on all 5 types of APIs, including **Direction API, Geocoding API, Geolocation API, Maps Javascript API,** and **Places API.**

![](/files/-M8tkGiBLYaLVcnfhPhk)

**6. Apply the API key**

The final step is applying the API key to the app. To do that, you open the app from your Shopify admin, then go to the **Setting** section, enable the **Google Maps API** and enter your API key into the **API Key** field in the **General** tab:

![](/files/-MGH7BpRjjRgWUhg-6rp)

Don't forget to click on the **Save** and **Publish to Shop** buttons after you add the API Key to the app.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://storepickup-docs.secomapp.com/other-settings/create-google-api-for-your-store.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
