/v1/expenses
What a collective pays out
Essayez-le en direct
10 appels gratuits par jour — sans inscription, sans clé API. Passe par la passerelle oanor.
Ça marche. Récupérez une clé API et utilisez-la dans votre projet.
Obtenez une clé APIExtraits de code
curl "https://api.oanor.com/opencollective-api/v1/expenses" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/opencollective-api/v1/expenses", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/opencollective-api/v1/expenses");
curl_setopt($ch, CURLOPT_HTTPHEADER, ["x-oanor-key: oanor_test_..."]);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$out = curl_exec($ch);
import requests
requests.get(
"https://api.oanor.com/opencollective-api/v1/expenses",
headers={"x-oanor-key": "oanor_test_..."}
)
Exemple de réponse
Une réponse réelle de ce endpoint, capturée lors du dernier contrôle de santé.
{
"data": {
"slug": "webpack",
"count": 25,
"source": "Open Collective",
"expenses": [
{
"type": "RECEIPT",
"payee": "https://github.com/sponsors/python-pillow",
"amount": 2000,
"status": "REJECTED",
"currency": "USD",
"created_at": "2026-05-21T01:20:21.660Z",
"description": "Implement metrics label cardinality validation before rollout"
},
{
"type": "INVOICE",
"payee": "Hai",
"amount": 2000,
"status": "PAID",
"currency": "USD",
"created_at": "2026-05-20T17:10:03.615Z",
"description": "Development and communication (04/2026)"
},
{
"type": "INVOICE",
"payee": "Aleksander",
"amount": 7000,
"status": "PAID",
"currency": "USD",
"created_at": "2026-05-20T15:28:37.532Z",
"description": "Development and communication (04/2026)"
},
{
"type": "INVOICE",
"payee": "Natsu Xiao",
"amount": 2000,
"status": "PAID",
"currency": "USD",
"created_at": "2026-05-20T15:23:32.748Z",
"description": "Development and communication (04/2026)"
},
{
"type": "INVOICE",
"payee": "Aleksander",
"amount": 7000,
"status": "PAID",
"currency": "USD",
"created_at": "2026-04-23T14:46:22.120Z",
"description": "Development and communication (03/2026)"
},
{
"type": "INVOICE",
"payee": "Hai",
"amount": 2000,
"status": "PAID",
"currency": "USD",
"created_at": "2026-04-18T02:12:39.007Z",
"description": "Development and communication (03/2026)"
},
{
"type": "INVOICE",
"payee": "Natsu Xiao",
"amount": 2000,
"status": "PAID",
"currency": "USD",
"created_at": "2026-04-15T15:38:43.587Z",
"description": "Development and communication (March 2026)"
},
{
"type": "INVOICE",
"payee": "Aleksander",
"amount": 7000,
"status": "PAID",
"currency": "USD",
"created_at": "2026-03-19T14:44:40.835Z",
"description": "Development and communication (02/2026)"
},
{
"type": "INVOICE",
"payee": "Hai",
"amount": 2000,
"status": "PAID",
…