CodeBrix.NotionApi.MitLicenseForever
1.0.242.1390
See the version list below for details.
dotnet add package CodeBrix.NotionApi.MitLicenseForever --version 1.0.242.1390
NuGet\Install-Package CodeBrix.NotionApi.MitLicenseForever -Version 1.0.242.1390
<PackageReference Include="CodeBrix.NotionApi.MitLicenseForever" Version="1.0.242.1390" />
<PackageVersion Include="CodeBrix.NotionApi.MitLicenseForever" Version="1.0.242.1390" />
<PackageReference Include="CodeBrix.NotionApi.MitLicenseForever" />
paket add CodeBrix.NotionApi.MitLicenseForever --version 1.0.242.1390
#r "nuget: CodeBrix.NotionApi.MitLicenseForever, 1.0.242.1390"
#:package CodeBrix.NotionApi.MitLicenseForever@1.0.242.1390
#addin nuget:?package=CodeBrix.NotionApi.MitLicenseForever&version=1.0.242.1390
#tool nuget:?package=CodeBrix.NotionApi.MitLicenseForever&version=1.0.242.1390
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), rebuilt on System.Text.Json with no Newtonsoft.Json or JsonSubTypes dependencies.
The client targets Notion API version 2026-03-11.
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:
- Every Notion API endpoint group — blocks, pages, databases, data sources, views, users, comments, custom emojis, 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.Polymorphismtypes from theCodeBrix.Json.Extensions.MitLicenseForeverpackage — 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.DependencyInjectionregistration viaAddNotionClient(...) - All JSON operations via
System.Text.Json— no Newtonsoft.Json, no JsonSubTypes - High-level authoring helpers (
NotionText,NotionBlocks,NotionAuthoringExtensions) that handle Notion's 2,000-character rich-text runs and 100-block append limits for you
Sample Code
Retrieve the bot user for an integration token
using CodeBrix.NotionApi;
var client = NotionClientFactory.Instance.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;
// A database holds one or more data sources; rows are queried per data source.
var database = await client.Databases.RetrieveAsync("database-id");
var dataSourceId = database.DataSources.First().DataSourceId;
var pages = await client.DataSources.QueryAsync(new QueryDataSourceRequest
{
DataSourceId = dataSourceId,
});
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 | Versions 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. |
-
net10.0
- CodeBrix.Json.Extensions.MitLicenseForever (>= 1.0.242.1163)
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 10.0.11)
- Microsoft.Extensions.Http (>= 10.0.11)
- Microsoft.Extensions.Logging.Abstractions (>= 10.0.11)
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.275.146 | 42 | 10/2/2026 |
| 1.0.254.1408 | 109 | 9/11/2026 |
| 1.0.242.1390 | 122 | 8/30/2026 |
| 1.0.196.1198 | 140 | 7/15/2026 |
| 1.0.194.841 | 118 | 7/13/2026 |
| 1.0.193.1265 | 116 | 7/12/2026 |
| 1.0.193.1168 | 124 | 7/12/2026 |