Rate Limits
  • 1 Minute to read

    Rate Limits


      Article summary

      DSP Traffic API rate limits are adjustable on an account-by-account basis. As a baseline, all accounts are allotted a fixed number of requests per minute, per hour and per day.

      Adjustments to the rate limits can be requested by the account team.

      Rate Limits

      The DSP Traffic API rate is rate-limited per the following default quota limits based on the number of calls in a rolling window of time.

      Type

      Limit

      Description

      GET Requests Per Minute

      60

      Number of GET requests allowed in a minute per user account.

      PUT Requests Per Minute

      30

      Number of PUT requests allowed in a minute per user account.

      POST Requests Per Minute

      30

      Number of POST requests allowed in a minute per user account.

      GET Requests Per Hour

      360

      Number of GET requests allowed in an hour per user account

      PUT Requests Per Hour

      100

      Number of PUT requests allowed in an hour per user account.

      POST Requests Per Hour

      75

      Number of POST requests allowed in an hour per user account.

      GET Requests Per Day

      8000

      Number of GET requests allowed in a day per user account.

      PUT Requests Per Day

      2000

      Number of PUT requests allowed in a day per user account.

      POST Requests Per Day

      1000

      Number of POST requests allowed in a day per user account

      Read Current Rate Limits

      Retrieves the current rate limits and what remains of the specific rate limit for your user account.

      GET /traffic/ratelimit

      The request takes no parameters.

      Sample Request

      GET https://dspapi.admanagerplus.yahoo.com/traffic/ratelimit

      Sample Response

      The response contains the rate limits with legacy minute, hour and day and with new set and remaining by call type minute, hour and day for your user account.

      {
      "trafficApiRateLimit": {
          "userId": 1963,
          "getLimitPerMin": 60,
          "getLimitPerHr": 360,
          "getLimitPerDay": 8000,
          "postLimitPerMin": 30,
          "postLimitPerHr": 75,
          "postLimitPerDay": 1000,
          "putLimitPerMin": 30,
          "putLimitPerHr": 100,
          "putLimitPerDay": 2000,
          "getLimitPerMinRemaining": 7,
          "getLimitPerHrRemaining": 19,
          "getLimitPerDayRemaining": 6999,
          "postLimitPerMinRemaining": 20,
          "postLimitPerHrRemaining": 55,
          "postLimitPerDayRemaining": 789,
          "putLimitPerMinRemaining": 13,
          "putLimitPerHrRemaining": 56,
          "putLimitPerDayRemaining": 1340,
          "limitPerMin": 32,
          "limitPerHour": 94,
          "limitPerDay": 2332
      }

      The legacy rate limit values will be deprecated at a future date.

      Error Messages

      When any of the rate limits are exceeded, a response similar to the one below will be returned.

      {
       "response": null,
       "errors": {
        "httpStatusCode": 422,
        "message": null,
        "validationErrors": [
         {
           "message": "Rate Limit Exceeded (GET Per Minute)",
           "propertyName": "TRAFFIC_LIMIT_GET_PER_MIN"
         }
        ]
       },
       "timeStamp": "2017-04-25T18:00:37Z"
      }


      Was this article helpful?

      What's Next