Running into rate limits on first api call

Hey all,

Writing a simple procedure to clear all products in my store and build them up again from a config. (Using the products REST API)

The first calls which I have to fetch all existing products (of which there is only 1) fails immediately due to rate limiting:

Response(code=429, body=“b’{“errors”:“Exceeded 2 calls per second for api client. Reduce request rates to resume uninterrupted service.”}'”, headers={‘Date’: ‘Sat, 14 Jun 2025 02:50:24 GMT’, ‘Content-Type’: ‘application/json; charset=utf-8’, ‘Transfer-Encoding’: ‘chunked’, ‘Connection’: ‘close’, ‘x-sorting-hat-podid’: ‘159’, ‘x-sorting-hat-shopid’: ‘67624665248’, ‘referrer-policy’: ‘origin-when-cross-origin’, ‘x-frame-options’: ‘DENY’, ‘x-shopid’: ‘67624665248’, ‘x-shardid’: ‘159’, ‘x-stats-userid’: ‘’, ‘x-stats-apiclientid’: ‘254253334529’, ‘x-stats-apipermissionid’: '569059213472

Honestly, I didnt think REST supported product delete/upsert. I would write this in graphQL given the rest API is legacy.

+1 to @ChrisBradley suggestion above, you should use GraphQL for this, eg:

query {
  products(first: 250) {
    edges {
      node {
        id
        title
      }
    }
  }
}

You can use pagination to get more results.

Hi @HeartlyWood - are you still experiencing this issue, or can I mark it as closed?