Skip to content

Commit 90c6f46

Browse files
Hubotgjtorikian
authored andcommitted
Sync changes from upstream repository
1 parent 248567a commit 90c6f46

File tree

3 files changed

+8
-9
lines changed

3 files changed

+8
-9
lines changed

content/changes/2012-10-14-rate-limit-changes.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
[authenticate](http://developer.github.com/v3/#authentication) via Basic Auth
1212
or OAuth. Unauthenticated requests will be limited to 60 per hour unless you
1313
[include your OAuth client and
14-
secret](http://developer.github.com/v3/#unauthenticated-rate-limited-requests).
14+
secret](http://developer.github.com/v3/#increasing-the-unauthenticated-rate-limit-for-oauth-applications).
1515

1616
We'll soon require all requests to include a valid [User Agent
1717
header](http://en.wikipedia.org/wiki/User_agent). Setting a

content/v3.md

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ $ curl 'https://api.github.com/users/whatever?client_id=xxxx&client_secret=yyyy'
233233

234234
This should only be used in server to server scenarios. Don't leak your
235235
OAuth application's client secret to your users. Read [more about
236-
unauthenticated rate limiting](#unauthenticated-rate-limited-requests).
236+
unauthenticated rate limiting](#increasing-the-unauthenticated-rate-limit-for-oauth-applications).
237237

238238
### Failed login limit
239239

@@ -333,8 +333,9 @@ Name | Description
333333

334334
For requests using Basic Authentication or OAuth, you can make up to 5,000
335335
requests per hour. For unauthenticated requests, the rate limit allows you to
336-
make up to 60 requests per hour. (The Search API has [custom rate limit
337-
rules](/v3/search/#rate-limit).)
336+
make up to 60 requests per hour. Unauthenticated requests are associated with your IP address,
337+
and not the user making requests. Note that [the Search API has custom rate limit
338+
rules](/v3/search/#rate-limit).
338339

339340
You can check the returned HTTP headers of any API request to see your current
340341
rate limit status:
@@ -384,11 +385,9 @@ You can also [check your rate limit status](/v3/rate_limit) without incurring an
384385
API hit.
385386
<br>
386387

387-
### Unauthenticated rate limited requests
388+
### Increasing the unauthenticated rate limit for OAuth applications
388389

389-
If you need to make unauthenticated calls but need to use a higher rate limit
390-
associated with your OAuth application, you can send over your client ID and
391-
secret in the query string.
390+
If your OAuth application needs to make unauthenticated calls with a higher rate limit, you can pass your app's client ID and secret as part of the query string.
392391

393392
<pre class="terminal">
394393
$ curl -i 'https://api.github.com/users/whatever?client_id=xxxx&client_secret=yyyy'

content/v3/search.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ relevant item to the top of the result list.
3030

3131
The Search API has a custom rate limit. For requests using [Basic
3232
Authentication](/v3/#authentication), [OAuth](/v3/#authentication), or [client
33-
ID and secret](/v3/#unauthenticated-rate-limited-requests), you can make up to
33+
ID and secret](/v3/#increasing-the-unauthenticated-rate-limit-for-oauth-applications), you can make up to
3434
20 requests per minute. For unauthenticated requests, the rate limit allows you
3535
to make up to 5 requests per minute.
3636

0 commit comments

Comments
 (0)