RipeClient 1.1.63
dotnet add package RipeClient --version 1.1.63
NuGet\Install-Package RipeClient -Version 1.1.63
<PackageReference Include="RipeClient" Version="1.1.63" />
<PackageVersion Include="RipeClient" Version="1.1.63" />
<PackageReference Include="RipeClient" />
paket add RipeClient --version 1.1.63
#r "nuget: RipeClient, 1.1.63"
#:package RipeClient@1.1.63
#addin nuget:?package=RipeClient&version=1.1.63
#tool nuget:?package=RipeClient&version=1.1.63
ripeclient
.NET Core RIPE Database client
Installation
dotnet add package RipeClient
Quick Start
var ripe = new RipeClient(new RipeSecureLocation(),
new RipeClientAuthAnonymous());
var result = await ripe.Search(new RipeSearchRequest(request.Prefix, TypeFilter.Inetnum));
Authentication
The RIPE Database supports multiple authentication methods. Choose the appropriate method based on your use case.
Anonymous Authentication
Use anonymous authentication for public read-only operations such as searching the database.
var auth = new RipeClientAuthAnonymous();
var client = new RipeClient(new RipeSecureLocation(), auth);
// Search for objects
var results = await client.Search(
new RipeSearchRequest("192.0.2.0/24", TypeFilter.Inetnum)
);
Password Authentication
Traditional authentication method using password query parameter. The password is sent as a query string parameter (?password=xxx).
var auth = new RipeClientAuthPassword("your-password");
var client = new RipeClient(new RipeSecureLocation(), auth);
// Create a new person object
var person = new Person();
person["person"] = "John Doe";
person["address"] = "123 Main St";
person["phone"] = "+1-234-567-8900";
person["nic-hdl"] = "AUTO-1";
person["mnt-by"] = "YOUR-MNT";
person["source"] = "RIPE";
await client.AddObject(person);
API Key Authentication
Modern authentication method using the X-API-Key HTTP header. This is the recommended method for automated systems and applications.
How to get an API key:
- Log in to your RIPE NCC Access account
- Navigate to API Keys management
- Create a new API key with appropriate permissions
var auth = new RipeClientAuthApiKey("your-api-key-here");
var client = new RipeClient(new RipeSecureLocation(), auth);
// Update an existing object
var route = await client.GetObjectByKey("192.0.2.0/24", "route", "ripe");
route["descr"] = "Updated description";
await client.UpdateObject(route);
Advantages of API Key authentication:
- More secure than password authentication
- Can be easily revoked without changing your account password
- Supports fine-grained permissions
- Recommended by RIPE NCC for API access
Basic Authentication
HTTP Basic Authentication sends credentials as a Base64-encoded username:password in the Authorization header.
var auth = new RipeClientAuthBasic("username", "password");
var client = new RipeClient(new RipeSecureLocation(), auth);
// Delete an object
var objectToDelete = await client.GetObjectByKey("PP1-RIPE", "person", "ripe");
await client.RemoveObject(objectToDelete);
Advanced Examples
Searching with Multiple Filters
var auth = new RipeClientAuthAnonymous();
var client = new RipeClient(new RipeSecureLocation(), auth);
// Search for both IPv4 and IPv6 routes
var request = new RipeSearchRequest("AS64512");
request.AddFilter(TypeFilter.Route | TypeFilter.Route6);
var results = await client.Search(request);
Search with Flags
// Find one level more specific
var request = new RipeSearchRequest("192.0.2.0/24", TypeFilter.Inetnum);
request.AddFlag(RipeSearchRequestFlags.OneMore);
var results = await client.Search(request);
HTTP Debugging
Enable HTTP request/response debugging to troubleshoot API calls:
var client = new RipeClient(new RipeSecureLocation(), auth);
client.Debug = true; // Logs all HTTP traffic to console
var results = await client.Search(request);
Authentication Method Comparison
| Method | Use Case | Security | Sent Via |
|---|---|---|---|
| Anonymous | Public searches | N/A | None |
| Password | Legacy systems, manual operations | Low | Query parameter |
| API Key | Automated systems, applications | High | HTTP Header (X-API-Key) |
| Basic Auth | Systems requiring standard auth | Medium | HTTP Header (Authorization) |
Recommendation: Use API Key authentication for production applications and automated systems. Use Anonymous for read-only operations.
Features
- Full CRUD operations for RIPE Database objects
- Multiple authentication methods (Anonymous, Password, API Key, Basic)
- Async/await support
- Type-safe search filters
- HTTP request/response debugging
- LIR Resources client
- RPKI client for ROA management
Documentation
For more information about RIPE Database API:
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net9.0 is compatible. 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. |
-
net9.0
- HttpTracer (>= 2.1.1)
- IPNetwork2 (>= 3.4.832)
- Microsoft.Extensions.Configuration.Abstractions (>= 10.0.0)
- Newtonsoft.Json (>= 13.0.4)
- NodaTime (>= 3.2.2)
- RestSharp (>= 112.1.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 | |
|---|---|---|---|
| 1.1.63 | 99 | 11/19/2025 | |
| 1.1.0 | 94 | 11/19/2025 | |
| 1.0.55 | 550 | 3/25/2025 | |
| 1.0.54 | 538 | 3/25/2025 | |
| 1.0.52 | 251 | 8/18/2024 | |
| 1.0.51 | 204 | 8/18/2024 | |
| 1.0.50 | 186 | 8/18/2024 | |
| 1.0.49 | 200 | 8/18/2024 | |
| 1.0.48 | 141 | 8/4/2024 | |
| 1.0.42 | 737 | 2/25/2022 | |
| 1.0.41 | 580 | 2/25/2022 | |
| 1.0.40 | 564 | 2/25/2022 | |
| 1.0.39 | 577 | 2/25/2022 | |
| 1.0.9 | 567 | 2/25/2022 | |
| 1.0.8 | 566 | 2/25/2022 | |
| 1.0.7 | 650 | 2/25/2022 | |
| 1.0.6 | 647 | 2/25/2022 | |
| 1.0.5 | 664 | 2/25/2022 | |
| 1.0.4 | 657 | 2/25/2022 | |
| 1.0.3 | 668 | 2/25/2022 | |
| 1.0.2 | 679 | 2/25/2022 | |
| 1.0.1 | 699 | 2/25/2022 | |
| 1.0.0 | 679 | 2/25/2022 |