<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Is there any API limits in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Is-there-any-API-limits/m-p/184358#M7737</link>
    <description>&lt;P&gt;Greg,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here the code for good measure, I try and setup some reporting from the errors here. I though I was watching it, but looking at this perhaps not. It is a swift function.&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;func createSharedLink(lePath:String, completion: (string: String?, error: ErrorType?) -&amp;gt; Void) {&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; let request = NSMutableURLRequest(URL: NSURL(string: "&lt;A href="https://api.dropboxapi.com/2/sharing/create_shared_link_with_settings" rel="nofollow noreferrer"&gt;https://api.dropboxapi.com/2/sharing/create_shared_link_with_settings&lt;/A&gt;")!)&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; let session = NSURLSession.sharedSession()&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; request.HTTPMethod = "POST"&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; request.addValue("application/json",forHTTPHeaderField: "Content-Type")&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; request.addValue("path", forHTTPHeaderField: lePath)&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; request.addValue("short_url", forHTTPHeaderField: "false")&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; request.addValue("settings", forHTTPHeaderField: "requested_visibility\": \"public\"}")&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; let nodeA:NSMutableDictionary? = ["path":lePath]&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; do {&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; let jsonData = try NSJSONSerialization.dataWithJSONObject(nodeA!, options: [])&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; request.HTTPBody = jsonData&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; } catch {&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; completion(string: ", error: error)&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; let task = session.dataTaskWithRequest(request, completionHandler: {data, response, error -&amp;gt; Void in&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if let error = error {&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; completion(string: ", error: error)&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; return&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/P&gt;
&lt;P&gt;&amp;nbsp;})&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; task.resume()&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 11 Jun 2016 01:02:32 GMT</pubDate>
    <dc:creator>Mark L.45</dc:creator>
    <dc:date>2016-06-11T01:02:32Z</dc:date>
    <item>
      <title>Is there any API limits</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Is-there-any-API-limits/m-p/184352#M7731</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I am working on developing an integration, would like to understand what are the API limits for Dropbox APIs v2 per day per user?&lt;/P&gt;</description>
      <pubDate>Wed, 29 May 2019 09:33:24 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Is-there-any-API-limits/m-p/184352#M7731</guid>
      <dc:creator>prachi s.1</dc:creator>
      <dc:date>2019-05-29T09:33:24Z</dc:date>
    </item>
    <item>
      <title>Re: Is there any API limits</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Is-there-any-API-limits/m-p/184353#M7732</link>
      <description>&lt;P&gt;The Dropbox API does have a rate limiting system, but we don't have any specific numbers documented. It is only designed to prevent abuse though, and is accordingly very generous. Further, the limits operate on a per-user basis. That being the case, you generally don't need to worry about hitting it in normal use.&lt;/P&gt;
&lt;P&gt;Also note that not all 503s indicate rate limiting, but in any case that you get a 429 or 503 the best practice is to retry the request, respecting the Retry-After header if given in the response, or using an exponential back-off, if not.&lt;/P&gt;</description>
      <pubDate>Thu, 19 May 2016 00:17:12 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Is-there-any-API-limits/m-p/184353#M7732</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2016-05-19T00:17:12Z</dc:date>
    </item>
    <item>
      <title>Re: Is there any API limits</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Is-there-any-API-limits/m-p/184354#M7733</link>
      <description>&lt;P&gt;I am testing a dropbox app I have written and I running into limits it seems, although I not getting any errors, simply dead space. I am creating links to files so that I can share them, more than a hundred links @ a time? I am using the HTTP interface to do so with the call...&lt;/P&gt;
&lt;P&gt;&lt;A href="https://api.dropboxapi.com/2/sharing/create_shared_link_with_settings" rel="nofollow noreferrer"&gt;https://api.dropboxapi.com/2/sharing/create_shared_link_with_settings&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;I can of course limit this or issue warning if I can get some sort of response? How can I monitor this more effectively?&lt;/P&gt;</description>
      <pubDate>Fri, 10 Jun 2016 21:29:01 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Is-there-any-API-limits/m-p/184354#M7733</guid>
      <dc:creator>Mark L.45</dc:creator>
      <dc:date>2016-06-10T21:29:01Z</dc:date>
    </item>
    <item>
      <title>Re: Is there any API limits</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Is-there-any-API-limits/m-p/184355#M7734</link>
      <description>&lt;P&gt;Mark,&amp;nbsp;can you clarify what you mean when you say you don't get any error, but "simply dead space"? Any rate limiting from the&amp;nbsp;Dropbox API would return an explicit error.&amp;nbsp;It may be helpful if you share your code and output.&lt;/P&gt;</description>
      <pubDate>Fri, 10 Jun 2016 23:13:39 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Is-there-any-API-limits/m-p/184355#M7734</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2016-06-10T23:13:39Z</dc:date>
    </item>
    <item>
      <title>Re: Is there any API limits</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Is-there-any-API-limits/m-p/184356#M7735</link>
      <description>&lt;P&gt;Hi Greg.&lt;/P&gt;
&lt;P&gt;By dead space I mean the app appears to simply hang; it isn't hanging its waiting for dropbox to reply to all of its requests, replies that never it seems come back. &amp;nbsp;That said it does work, if I re-run the app, just moments later it retries the requests, and gets the response that the links already exist.&lt;/P&gt;
&lt;P&gt;So the limit that is coming up seems to be linked to the number of links i request and get an almost immediate response too.&amp;nbsp;It not an app killer as limitations&amp;nbsp;go, I don't really see the problem&amp;nbsp;unless I request 450+ links over a few seconds, but I am little worried&amp;nbsp;since I don't know what is happening and if I do manage to get app live on the apps store I don't want to watch it go up in smoke as it becomes more successful and fires off more and more requests for links that get silently throttled on the dropbox end.&lt;/P&gt;
&lt;P&gt;It would be better if I could monitor/throttle my app/give the user some feedback as oppose to guessing what the limits are.&lt;/P&gt;</description>
      <pubDate>Sat, 11 Jun 2016 00:48:37 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Is-there-any-API-limits/m-p/184356#M7735</guid>
      <dc:creator>Mark L.45</dc:creator>
      <dc:date>2016-06-11T00:48:37Z</dc:date>
    </item>
    <item>
      <title>Re: Is there any API limits</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Is-there-any-API-limits/m-p/184357#M7736</link>
      <description>&lt;P&gt;If the connection hangs, that sounds more like network issues, rather than rate limiting from our side. (E.g., if you're making many call&amp;nbsp;at the same time, your connection may be getting congested.)&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Any actual rate limiting from&amp;nbsp;Dropbox would return a response with a 429 or 503 status code, sometimes with a Retry-After header.&lt;/P&gt;</description>
      <pubDate>Sat, 11 Jun 2016 00:56:18 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Is-there-any-API-limits/m-p/184357#M7736</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2016-06-11T00:56:18Z</dc:date>
    </item>
    <item>
      <title>Re: Is there any API limits</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Is-there-any-API-limits/m-p/184358#M7737</link>
      <description>&lt;P&gt;Greg,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here the code for good measure, I try and setup some reporting from the errors here. I though I was watching it, but looking at this perhaps not. It is a swift function.&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;func createSharedLink(lePath:String, completion: (string: String?, error: ErrorType?) -&amp;gt; Void) {&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; let request = NSMutableURLRequest(URL: NSURL(string: "&lt;A href="https://api.dropboxapi.com/2/sharing/create_shared_link_with_settings" rel="nofollow noreferrer"&gt;https://api.dropboxapi.com/2/sharing/create_shared_link_with_settings&lt;/A&gt;")!)&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; let session = NSURLSession.sharedSession()&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; request.HTTPMethod = "POST"&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; request.addValue("application/json",forHTTPHeaderField: "Content-Type")&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; request.addValue("path", forHTTPHeaderField: lePath)&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; request.addValue("short_url", forHTTPHeaderField: "false")&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; request.addValue("settings", forHTTPHeaderField: "requested_visibility\": \"public\"}")&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; let nodeA:NSMutableDictionary? = ["path":lePath]&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; do {&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; let jsonData = try NSJSONSerialization.dataWithJSONObject(nodeA!, options: [])&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; request.HTTPBody = jsonData&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; } catch {&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; completion(string: ", error: error)&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; let task = session.dataTaskWithRequest(request, completionHandler: {data, response, error -&amp;gt; Void in&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if let error = error {&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; completion(string: ", error: error)&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; return&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/P&gt;
&lt;P&gt;&amp;nbsp;})&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; task.resume()&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 11 Jun 2016 01:02:32 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Is-there-any-API-limits/m-p/184358#M7737</guid>
      <dc:creator>Mark L.45</dc:creator>
      <dc:date>2016-06-11T01:02:32Z</dc:date>
    </item>
    <item>
      <title>Re: Is there any API limits</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Is-there-any-API-limits/m-p/184359#M7738</link>
      <description>&lt;P&gt;Greg,&lt;/P&gt;
&lt;P&gt;Here is an error message.&lt;/P&gt;
&lt;P&gt;operation2 completion 609 744 ticktok 102&lt;/P&gt;
&lt;P&gt;error&amp;nbsp; Error Domain=NSURLErrorDomain Code=-1001 "The request timed out." UserInfo={NSUnderlyingError=0x14ea8ec70 {Error Domain=kCFErrorDomainCFNetwork Code=-1001 "(null)" UserInfo={_kCFStreamErrorCodeKey=-2102, _kCFStreamErrorDomainKey=4}}, NSErrorFailingURLStringKey=&lt;A href="https://api.dropboxapi.com/2/sharing/create_shared_link_with_settings" rel="nofollow noreferrer"&gt;https://api.dropboxapi.com/2/sharing/create_shared_link_with_settings&lt;/A&gt;, NSErrorFailingURLKey=&lt;A href="https://api.dropboxapi.com/2/sharing/create_shared_link_with_settings" rel="nofollow noreferrer"&gt;https://api.dropboxapi.com/2/sharing/create_shared_link_with_settings&lt;/A&gt;, _kCFStreamErrorDomainKey=4, _kCFStreamErrorCodeKey=-2102, NSLocalizedDescription=The request timed out.}&lt;/P&gt;
&lt;P&gt;So I ask for a shared link and NSURLSession.sharedSession() gives up waiting for a reply? This was at 609 links. I think these all existed, I simply sending a create to check at this point. If I actually create links the error must be happening sooner. &amp;nbsp;Sorry, I think your right, this looks like Swift/Network issue...&lt;/P&gt;</description>
      <pubDate>Sat, 11 Jun 2016 01:16:16 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Is-there-any-API-limits/m-p/184359#M7738</guid>
      <dc:creator>Mark L.45</dc:creator>
      <dc:date>2016-06-11T01:16:16Z</dc:date>
    </item>
    <item>
      <title>Re: Is there any API limits</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Is-there-any-API-limits/m-p/184360#M7739</link>
      <description>&lt;P&gt;Yes, that looks like what's happening. That is, the connection took too long and timed out. That can certainly happen if you try to make too many at the same time, so you'll probably just want to put a limit on how many you do simultaneously.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 11 Jun 2016 01:18:27 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Is-there-any-API-limits/m-p/184360#M7739</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2016-06-11T01:18:27Z</dc:date>
    </item>
    <item>
      <title>Re: Is there any API limits</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Is-there-any-API-limits/m-p/184361#M7740</link>
      <description>&lt;P&gt;Yes; I checked and changed this line of code; which fixed it. Its not a good fix; I need to throttle the requests; but that I needs more coding and its been a long day &lt;img class="lia-deferred-image lia-image-emoji" src="https://www.dropboxforum.com/html/@FBF7D2AB59A0D6E861EBF6A36F93B7E2/emoticons/1f642.png" alt=":slightly_smiling_face:" title=":slightly_smiling_face:" /&gt;&lt;/P&gt;
&lt;P&gt;let url = NSURL(string:"&lt;A href="https://api.dropboxapi.com/2/sharing/create_shared_link_with_settings" rel="nofollow noreferrer"&gt;https://api.dropboxapi.com/2/sharing/create_shared_link_with_settings&lt;/A&gt;")&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; let request = NSMutableURLRequest(URL: url! ,cachePolicy: .ReloadIgnoringLocalAndRemoteCacheData, timeoutInterval: 120.0)&lt;/P&gt;
&lt;P&gt;The default timeout I find out is 60 seconds, I doubled it &lt;img class="lia-deferred-image lia-image-emoji" src="https://www.dropboxforum.com/html/@FBF7D2AB59A0D6E861EBF6A36F93B7E2/emoticons/1f642.png" alt=":slightly_smiling_face:" title=":slightly_smiling_face:" /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 11 Jun 2016 01:38:48 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Is-there-any-API-limits/m-p/184361#M7740</guid>
      <dc:creator>Mark L.45</dc:creator>
      <dc:date>2016-06-11T01:38:48Z</dc:date>
    </item>
    <item>
      <title>Re: Is there any API limits</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Is-there-any-API-limits/m-p/184362#M7741</link>
      <description>&lt;P&gt;&lt;EM&gt;“Long Path Tool” is very helpful for this error!&lt;/EM&gt;&lt;EM&gt;&lt;BR /&gt; You can use to solve this problem&lt;BR /&gt; thanks&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 11 Jul 2016 21:55:13 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Is-there-any-API-limits/m-p/184362#M7741</guid>
      <dc:creator>Jorina</dc:creator>
      <dc:date>2016-07-11T21:55:13Z</dc:date>
    </item>
  </channel>
</rss>

