ebay api呼び出し制限

最近ebayの挙動が不安定であり、時々下記メッセージが帰ってくる。

Your application has exceeded usage limit on this call, please make call to GetAPIAccessRules to check your call usage.

これを機に、色々調べてみた。

 

まずはメッセージにある通り、GetAPIAccessRulesを実行。大した情報じゃないんだから普通にwebに掲載しておいてくれればいいのにという内容。

xmlで帰ってくるのだが、単純な構造なので、2次元に整形したのが下記。

CallName CountsTowardAggregate DailyHardLimit DailySoftLimit DailyUsage HourlyHardLimitHourlySoftLimit HourlyUsage Period PeriodicHardLimit PeriodicSoftLimit PeriodicUsage RuleCurrentStatus RuleStatus
ApplicationAggregate TRUE 1,500,000 1,500,000 2 1,500,000 1,500,000 2 -1 0 0 0 NotSet RuleOn
AddItem FALSE 5,000,000 5,000,000 0 5,000,000 5,000,000 0 -1 0 0 0 NotSet RuleOn
LeaveFeedback FALSE 1,500,000 1,500,000 0 1,500,000 1,500,000 0 -1 0 0 0 NotSet RuleOn
RelistItem FALSE 5,000,000 5,000,000 0 5,000,000 5,000,000 0 -1 0 0 0 NotSet RuleOn
GetAPIAccessRules FALSE 1,000 950 0 1,000 950 0 -1 0 0 0 NotSet RuleOn
SetApplication FALSE 5,000 5,000 0 5,000 5,000 0 -1 0 0 0 NotSet RuleOff
GetNotificationPreferences TRUE 10,000 10,000 0 1,000 1,000 0 -1 0 0 0 NotSet RuleOn
SetNotificationPreferences TRUE 1,500,000 1,500,000 0 1,500,000 1,500,000 0 -1 0 0 0 NotSet RuleOn
PasswordAuthenticationLimiter TRUE 0 0 0 0 0 0 -1 0 0 0 NotSet ApplicationBlocked
NonUTF8UsageLimiter TRUE 0 0 0 0 0 0 -1 0 0 0 NotSet ApplicationBlocked
GetNotificationsUsage TRUE 1,000 1,000 0 50 50 0 -1 0 0 0 NotSet RuleOn
LegacyXmlEnforcementSoft TRUE 0 0 0 0 0 0 -1 0 0 0 NotSet ApplicationBlocked
LegacyXmlEnforcementHard TRUE 0 0 0 0 0 0 0 0 0 0 NotSet ApplicationBlocked
GetSearchResultsExpress TRUE 10,000 10,000 0 10,000 10,000 0 -1 0 0 0 NotSet RuleOn

肝心のGetOrdersはなかった。。。

 

次にapiの制限が書かれている下記ページ

https://developer.ebay.com/support/api-call-limits

GetOrdersが所属するTradingApiは1,5百万。制限に引っかかるわけないのだが。内部で細分化されているのか。。。

 

 

最後に自分のapi状態が見える下記ページ

https://developer.ebay.com/my/stats?index=0&env=production&start=2018%2F07%2F13+22%3A00&end=2018%2F07%2F14+22%3A00

staticshot_15-07-2018_17-26-49

時間はPST(カリフォルニア時間)で指定する。

GetOrdersは24時間で4,000以下。大したことはない。。。