IpStack
A .NET Core client wrapper for accessing the ipstack API.
Install / Use
/learn @mattosaurus/IpStackREADME
IpStack
.NET wrapper to query the IpStack API for IP address data.
Installation
To use IpStack in your C# project, you can either download the IpStack C# .NET libraries directly from the Github repository or, if you have the NuGet package manager installed, you can grab them automatically.
PM> Install-Package IpStack
Once you have the IpStack libraries properly referenced in your project, you can include calls to them in your code.
Add the following namespaces to use the library:
using IpStack;
using IpStack.Models;
Usage
The client is intended to be used via Dependency Injection and added using the AddIpStack extension.
// Add API client
serviceCollection.AddIpStack(
"<API KEY>"
);
The injected client can then be used as expected.
public class App
{
private readonly ILogger<App> _logger;
private readonly IIpStackService _IpStackService;
public App(ILoggerFactory loggerFactory, IIpStackService IpStackService)
{
_logger = loggerFactory.CreateLogger<App>();
_IpStackService = IpStackService;
}
public async Task RunAsync()
{
var ipAddressDetails = await _IpStackService.GetIpAddressDetailsAsync();
}
}
See the debug project for an example.
Related Skills
node-connect
351.4kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
110.7kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
351.4kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
351.4kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
