CodeBrix.NotionApi.MitLicenseForever 1.0.196.1198

dotnet add package CodeBrix.NotionApi.MitLicenseForever --version 1.0.196.1198
                    
NuGet\Install-Package CodeBrix.NotionApi.MitLicenseForever -Version 1.0.196.1198
                    
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="CodeBrix.NotionApi.MitLicenseForever" Version="1.0.196.1198" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="CodeBrix.NotionApi.MitLicenseForever" Version="1.0.196.1198" />
                    
Directory.Packages.props
<PackageReference Include="CodeBrix.NotionApi.MitLicenseForever" />
                    
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 CodeBrix.NotionApi.MitLicenseForever --version 1.0.196.1198
                    
#r "nuget: CodeBrix.NotionApi.MitLicenseForever, 1.0.196.1198"
                    
#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 CodeBrix.NotionApi.MitLicenseForever@1.0.196.1198
                    
#: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=CodeBrix.NotionApi.MitLicenseForever&version=1.0.196.1198
                    
Install as a Cake Addin
#tool nuget:?package=CodeBrix.NotionApi.MitLicenseForever&version=1.0.196.1198
                    
Install as a Cake Tool

CodeBrix.NotionApi

A fully managed .NET client library for the Notion API — a CodeBrix vendored replacement for the Notion.Net package (ported from notion-sdk-net 5.0.0), rebuilt on System.Text.Json with no Newtonsoft.Json or JsonSubTypes dependencies. CodeBrix.NotionApi is provided as a .NET 10 library and associated CodeBrix.NotionApi.MitLicenseForever NuGet package, which delivers the single CodeBrix.NotionApi assembly (the Notion API client). Its only non-Microsoft dependency is the CodeBrix.Json.Extensions.MitLicenseForever NuGet package, which supplies discriminator-based polymorphic JSON deserialization with fallback types (built on System.Text.Json); the remaining dependencies are a small set of Microsoft-maintained abstractions packages.

CodeBrix.NotionApi supports applications and assemblies that target Microsoft .NET version 10.0 and later. Microsoft .NET version 10.0 is a Long-Term Supported (LTS) version of .NET, and was released on Nov 11, 2025; and will be actively supported by Microsoft until Nov 14, 2028. Please update your C#/.NET code and projects to the latest LTS version of Microsoft .NET.

CodeBrix.NotionApi supports:

  • All of the Notion API endpoint groups covered by Notion.Net 5.0.0 — blocks, pages, databases, data sources, users, comments, search, file uploads, and OAuth authentication
  • Discriminator-driven polymorphic models (blocks, rich text, property values, parents, files, and more) deserialized via the CodeBrix.Json.Extensions.Polymorphism types from the CodeBrix.Json.Extensions.MitLicenseForever package — unknown variants fall back to the registered fallback type instead of throwing
  • Configurable retry policy with Notion rate-limit handling, request logging, and Microsoft.Extensions.DependencyInjection registration via AddNotionClient(...)
  • All JSON operations via System.Text.Json — no Newtonsoft.Json, no JsonSubTypes

Sample Code

Retrieve the bot user for an integration token

using CodeBrix.NotionApi;

var client = NotionClientFactory.Create(new ClientOptions
{
    AuthToken = "ntn_your_integration_token",
});

var me = await client.Users.MeAsync();
Console.WriteLine($"Connected as: {me.Name}");

Query a database

using CodeBrix.NotionApi;

var pages = await client.Databases.QueryAsync("database-id", new DatabasesQueryParameters());

foreach (var page in pages.Results)
{
    Console.WriteLine(page.Id);
}

License

The project is licensed under the MIT License. see: https://en.wikipedia.org/wiki/MIT_License

Product Compatible and additional computed target framework versions.
.NET net10.0 is compatible.  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.

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.196.1198 84 7/15/2026
1.0.194.841 82 7/13/2026
1.0.193.1265 84 7/12/2026
1.0.193.1168 90 7/12/2026