Confluence.Server.ApiClient.Net 1.0.3

dotnet add package Confluence.Server.ApiClient.Net --version 1.0.3
                    
NuGet\Install-Package Confluence.Server.ApiClient.Net -Version 1.0.3
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Confluence.Server.ApiClient.Net" Version="1.0.3" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Confluence.Server.ApiClient.Net" Version="1.0.3" />
                    
Directory.Packages.props
<PackageReference Include="Confluence.Server.ApiClient.Net" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Confluence.Server.ApiClient.Net --version 1.0.3
                    
#r "nuget: Confluence.Server.ApiClient.Net, 1.0.3"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Confluence.Server.ApiClient.Net@1.0.3
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Confluence.Server.ApiClient.Net&version=1.0.3
                    
Install as a Cake Addin
#tool nuget:?package=Confluence.Server.ApiClient.Net&version=1.0.3
                    
Install as a Cake Tool

Confluence.Server.ApiClient.Net

A .NET 8+ client library for interacting with Atlassian Confluence Server's REST API. This package is designed for Confluence Server (not Confluence Cloud) and provides strongly-typed access to spaces, pages, and search endpoints, including support for Confluence Query Language (CQL).

Features

  • Authenticate using API tokens
  • Retrieve spaces and pages
  • Search content using CQL
  • Fetch page bodies and metadata
  • Strongly-typed response models

Requirements

  • .NET 8 or later
  • Confluence Server instance with REST API enabled

Installation

Install via NuGet Package Manager: Install-Package Confluence.Server.ApiClient.Net Or via .NET CLI: dotnet add package Confluence.Server.ApiClient.Net

Usage

1. Configure the clientusing ConfluenceApiClient;

var config = new ConfluenceApiConfig { BaseUrl = "https://your-confluence-server/rest/api/", ApiToken = "YOUR_API_TOKEN" };

var client = new ConfluenceApiClient(config);

2. List spacesvar spacesResponse = await client.GetSpacesAsync(start: 0, limit: 10);

if (spacesResponse.IsSuccessStatusCode) { foreach (var space in spacesResponse.Content.Results) { Console.WriteLine($"Space: {space.Key} - {space.Name}"); } }

3. Search content using CQLstring cql = "type=page AND space=DEV";

var searchResponse = await client.SearchContentAsync(cql); if (searchResponse.IsSuccessStatusCode) { foreach (var page in searchResponse.Content.Results) { Console.WriteLine($"Page: {page.Title}"); } }

4. Get page by IDvar pageResponse = await client.GetPageByIdAsync("123456");

if (pageResponse.IsSuccessStatusCode) { Console.WriteLine(pageResponse.Content.Title); Console.WriteLine(pageResponse.Content.Body.Storage.Value); // HTML content }

5. Get all page titles and bodies in a spacevar result = await client.GetConfluencePageTitleAndBodyListAsync("SPACEKEY");

if (result.HttpStatusCode == System.Net.HttpStatusCode.OK) { foreach (var item in result.Result.TitleAndBodyList) { Console.WriteLine($"Title: {item.Title}\nBody: {item.BodyHtml}"); } }

Confluence Query Language (CQL)

This client supports CQL for advanced searching. See CONFLUENCE_CQL.md for a quick reference and examples.

Contributing

Contributions are welcome! Please open issues or submit pull requests for improvements and bug fixes.

License

MIT


This package is not affiliated with Atlassian. For Confluence Cloud, use the official Atlassian SDKs.

Product 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • net8.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.0.3 243 7/16/2025
1.0.2 214 7/2/2025
1.0.1 195 7/2/2025
1.0.0 188 7/2/2025