C# SDK
Install and start using the C# SDK.
Intro
The Tabstack API SDK provides access to the Tabstack API REST APIs.
Production API for web content extraction, transformation, research, and automation. Organize your workflows with semantic endpoints for extracting structured data, generating AI-powered content, conducting research, and automating browser tasks.
Installation
Add the SDK as a project reference into your solution:
dotnet add reference <path-to-sdk>/src/TabstackApi/TabstackApi.csprojThe project takes its build settings from the files around it, so reference it in place.
Quick Start
Dependency Injection
Register the client with IServiceCollection and resolve it from the container. The HttpClient is managed by IHttpClientFactory. Configure the client's behavior through TabstackApiClientOptions.
services.AddTabstackApiClient(options =>
{
options.BearerAuth = "YOUR_BEARER_TOKEN";
options.Environment = ServerEnvironment.Production;
// TODO: configure more client options here
});Direct Instantiation
Create the client by passing an HttpClient you manage yourself. Configure the client's behavior through TabstackApiClientOptions.
var httpClient = new HttpClient();
// TODO: configure more client options here
var options = new TabstackApiClientOptions
{
BearerAuth = "YOUR_BEARER_TOKEN",
Environment = ServerEnvironment.Production,
};
var client = new TabstackApiClient(httpClient, options);