Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 13 additions & 11 deletions content/docs/usage/authentication.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,22 +5,24 @@ title: Authentication

## Unauthenticated access

We maintain two request pools, to help us better understand user behavior and to manage service response times:
There are two ways to make requests to ecosyste.ms without a paid account.

### Polite Pool
### 1. Unauthenticated requests

The polite pool is our priority pool of known users. To access the polite pool you will need to provide an email address so that we can contact you should we need to discuss fair usage and rate limits.
Making requests without any kind of authentication is supported but not advised. The rate limit applied to anonymous
requests is the same as the [free](https://ecosyste.ms/pricing) rate limit, but anonymous users will have less
consistent response times, especially during peak periods as we prioritise authenticated users.

To access the polite pool:
### 2. Free plan

* Add `mailto=you@example.com` as a query parameter to your API request, or
* Add `mailto:you@example.com` somewhere in your User-Agent request header, or
* Configure your [`from` request header](https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/From).
We advise users without a paid account to create and use an API key.
To create an API key
[create an account and/or log in](https://ecosyste.ms/login),
select ‘API Key’ from the navigation menu and click ‘Create an API Key’.
Send your key with each request in an `X-API-Key` or `apikey` header, or as an `apikey` query parameter.

### Common Pool

The common pool is for everyone else. It will have less consistent response times, especially during peak periods so that we can prioritize polite requests more easily.
To increase your rate limit, upgrade to a [paid plan](https://ecosyste.ms).

## Authenticated access

Some of our APIs are available only to authenticated, paid users. We will expand upon this when our paid access tiers are made available to the general public.
To create an API key [create an account and/or login](https://ecosyste.ms/login), select API Key from the navigation menu and click 'Create an API Key'. Send your key with each request in an `X-API-Key` or `apikey` header, or as an `apikey` query parameter.
6 changes: 4 additions & 2 deletions content/docs/usage/rate-limits.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,13 @@ weight: 1
title: Rate limits
---

Rate limits apply to all requests to ensure the service is responsive and available for all users. Your rate limit depends upon your [access method](/docs/usage/authentication/) and [paid service tier](/docs/usage/commercial/):
Rate limits apply to all requests to ensure the service is responsive and available for all users.
Your rate limit depends upon your [access method](/docs/usage/authentication/) and
[paid service tier](https://ecosyste.ms/pricing):

## Default rate limits

We operate a two-tier rate limiting system for unatuhenticated access. Read more about [unauthenticated access](/docs/usage/authentication/)
We operate a rate limiting system for unatuhenticated access. Read more about [unauthenticated access](/docs/usage/authentication/).

## Commercial rate limits

Expand Down
2 changes: 2 additions & 0 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
module github.com/ecosyste-ms/docs

go 1.21

require github.com/imfing/hextra v0.13.0 // indirect
2 changes: 2 additions & 0 deletions go.sum
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
github.com/imfing/hextra v0.13.0 h1:1zhCYy0tA9ZRErFBlU6NJEgR1HjK69bgd52EmpwnG00=
github.com/imfing/hextra v0.13.0/go.mod h1:vi+yhpq8YPp/aghvJlNKVnJKcPJ/VyAEcfC1BSV9ARo=