Coflnet.Sky.Api.Client
0.7.5
dotnet add package Coflnet.Sky.Api.Client --version 0.7.5
NuGet\Install-Package Coflnet.Sky.Api.Client -Version 0.7.5
<PackageReference Include="Coflnet.Sky.Api.Client" Version="0.7.5" />
<PackageVersion Include="Coflnet.Sky.Api.Client" Version="0.7.5" />
<PackageReference Include="Coflnet.Sky.Api.Client" />
paket add Coflnet.Sky.Api.Client --version 0.7.5
#r "nuget: Coflnet.Sky.Api.Client, 0.7.5"
#:package Coflnet.Sky.Api.Client@0.7.5
#addin nuget:?package=Coflnet.Sky.Api.Client&version=0.7.5
#tool nuget:?package=Coflnet.Sky.Api.Client&version=0.7.5
Sky API
Deploying
This project should be deployed within a container.
Configuration
See appsettings.json
and jaeger
Rate Limiting
The API supports both IP-based rate limiting (for public/anonymous requests) and Client-based rate limiting (for authenticated clients with higher quotas).
IP Rate Limiting (Default)
By default, all requests are rate limited by IP address. The default limits are configured in appsettings.json under IpRateLimiting.
Client Rate Limiting (Premium Clients)
Premium clients can bypass IP rate limits by passing a client ID header (X-ClientId).
Environment Variables for Client Rate Limiting:
| Variable | Description | Example |
|---|---|---|
PREMIUM_CLIENT_IDS |
Comma-separated list of client IDs to whitelist (no rate limits) | client-1,client-2,client-3 |
PREMIUM_CLIENT_RULES |
Custom rate limit rules per client. Format: clientId:period=limit,period=limit;clientId2:... |
premium:1s=20,1m=500;vip:1s=50,1m=1000 |
Example Usage:
# Whitelist specific clients (no rate limits applied)
export PREMIUM_CLIENT_IDS="trusted-partner-1,trusted-partner-2"
# Configure custom limits for premium clients
export PREMIUM_CLIENT_RULES="basic-tier:10s=50,1m=200;premium-tier:10s=100,1m=500"
Making requests with Client ID:
# Request with client ID header (uses client-specific limits if configured)
curl -H "X-ClientId: your-client-id" https://api.example.com/api/endpoint
How it works:
- If a request contains the
X-ClientIdheader and the client ID is inPREMIUM_CLIENT_IDS, no rate limits apply - If the client ID has custom rules configured via
PREMIUM_CLIENT_RULES, those limits apply - If no client ID is provided or it doesn't match any rules, IP-based rate limits apply
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net8.0
- JsonSubTypes (>= 2.0.1)
- Newtonsoft.Json (>= 13.0.3)
- Polly (>= 8.1.0)
- RestSharp (>= 112.0.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 0.7.5 | 803 | 3/29/2026 |
| 0.7.4 | 240 | 3/28/2026 |
| 0.7.3 | 112 | 3/21/2026 |
| 0.7.2 | 5,013 | 1/4/2025 |
| 0.7.0 | 3,078 | 7/25/2024 |
| 0.6.1 | 1,867 | 4/24/2024 |
| 0.6.0 | 1,211 | 1/22/2024 |
| 0.5.0 | 1,830 | 10/14/2023 |
| 0.4.2 | 598 | 4/12/2023 |
| 0.4.1 | 398 | 3/28/2023 |
| 0.4.0 | 356 | 3/27/2023 |
| 0.3.0 | 1,905 | 3/17/2023 |
| 0.2.0 | 1,931 | 9/22/2022 |
| 0.1.0 | 864 | 5/31/2022 |
| 0.0.2 | 789 | 3/5/2022 |
| 0.0.1 | 560 | 3/5/2022 |
Minor update