Failed to connect to myshopify.com port 443 – Could not connect to server

Hi everyone,

I’m having trouble connecting to my Shopify store using curl.
When I run the following command:

curl https://mydomain.myshopify.com/admin/api/2023-10/products.json

I consistently get this error:

curl: (28) Failed to connect to mydomain.myshopify.com port 443 after XXXXX ms: Could not connect to server

What I’ve tried so far:

  • Verified that my internet connection is working.

  • Confirmed the store URL is correct.

  • Ensured port 443 is not blocked by firewall.

Additional context:

  • I’m attempting to connect to the Admin API.

    • No API credentials were required yet because I’m simply testing connection, but the request never reaches Shopify (connection timeout).

    Has anyone experienced this issue before? Is there something I’m missing?

Any guidance would be appreciated!

1 Like

Hey @Vaisakh_KS,

That REST endpoint (products.json) has been removed as part of the new product model migration, which could explain the connection issues you’re seeing.

I’d suggest trying GraphQL instead with proper authentication. You’ll need an access token with the appropriate scopes, then something like:

curl -X POST https://your-store.myshopify.com/admin/api/2025-10/graphql.json \
  -H "Content-Type: application/json" \
  -H "X-Shopify-Access-Token: your-access-token" \
  -d '{"query": "{ products(first: 10) { edges { node { id title } } } }"}'

Let me know if that works or what error you get back.