'Where to find Shopify API Password?

I'm trying to get Shopify data with Python. I'm stuck making a request to the API because I'm doing something wrong, obviously..

The request url has to be like : https://{API_KEY}:{PASSWORD}@Shop-name/admin/api/2022-04/orders.json

1

I used the access token instead but it gives me a 401 error.

Can someone help?



Solution 1:[1]

here is a step-by-step of how to do that.

1- Log in to your Shopify store

2- Once you’re in, you’ll need to enable private app development from the Shopify Admin (Only the owner of the story can do this, but the steps are quite simple) Go to Apps Select Manage private apps Click Enable Once you’re done reading the terms, click Enable private app development

3- After you’ve enabled the development of private apps, click ‘Create private app’

4- Open the App details section, choose a name for your private app and then tie it to a valid email address. The email is needed because Shopify will contact you if there is an issue with the private app that might cause disruptions in the API integration.

5- The Admin API section on Shopify gives you a chance to pick the areas that the app can access. So, you don’t have to provide API access to all areas of the store.

6- If you need or plan on using the Storefront API, you will also need to enable the app to access the relevant storefront data. (This step is optional) The Shopify Storefront API allows you to collect more data regarding sales and purchases regardless of where your customers came from, whether an app, a video game, or a website. The Storefront API comes in handy for custom requirements not covered by mainstream channels like POS or the online store. If the Storefront API is public and not authenticated, there’s nothing to worry about. Windsor.ai precisely steps in here.

7- Click ‘Save’

Source: https://windsor.ai/how-to-setup-api-credentials-for-shopify/

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Pushkin