{'errors': '[API] Invalid API key or access token (unrecognized login or wrong password)'}

{'errors': '[API] Invalid API key or access token (unrecognized login or wrong password)'}

Alex381
Shopify Partner
2 0 0

I tried to get product information with this code.

 

url = f"https://{SHOPIFY_API_KEY}:{SHOPIFY_PASSWORD}@{SHOP_NAME}.myshopify.com/admin/api/2023-10/products.json"

 

I used shopify api key and secret key from my private app.

And I activated all rights.

 

I don't know what's wrong, I just get this message.

{'errors': '[API] Invalid API key or access token (unrecognized login or wrong password)'}

 

Can you help me?

Reply 1 (1)

Michael841
Shopify Partner
8 2 0

Hi Alex,

are you using python? To authenticate, you need to include the access token in the headers, like it's described here: REST Admin API reference (shopify.dev).

Alternatively, you can use the python api client: Shopify/shopify_python_api: ShopifyAPI library allows Python developers to programmatically access t...

All the best,

Michael