Picnic.Api 1.1.1

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

Picnic.Api

NuGet

A C# wrapper for the unofficial Picnic API.

This library is based on the Node.js library picnic-api and on the Python library python-picnic-api. This library is inspired by the mentioned projects and adapted for C#.

This API is unofficial and is not affiliated with Picnic in any way.

Getting Started

1. Install the package

dotnet add package Picnic.Api

2. Create a client

using Picnic.Api;
using Picnic.Api.Configuration;

var client = new PicnicClient(new PicnicApiOptions
{
  CountryCode = "DE",
  ApiVersion = "15"
});

3. Login

var login = await client.LoginAsync("your-email-or-phone", "your-password");

if (login.SecondFactorAuthenticationRequired)
{
  await client.Auth.Generate2FaCodeAsync(Picnic.Api.Models.Auth.TwoFactorChannel.Email);
  // Ask the user for the code received by email/sms.
  await client.Auth.Verify2FaCodeAsync("123456");
}

4. Make your first calls

var user = await client.User.GetUserDetailsAsync();
var results = await client.Catalog.SearchAsync("milch");
var cart = await client.Cart.GetCartAsync();

5. Optional: reuse an existing auth token

using Picnic.Api;
using Picnic.Api.Configuration;

var client = new PicnicClient(new PicnicApiOptions
{
  AuthToken = "your-existing-auth-token",
  CountryCode = "DE"
});

Contributing

Contributions are welcome.

If you find a bug, have an idea for improvement, or want to add a feature, feel free to open an issue or submit a pull request.

Disclaimer

Use this library at your own risk.

You are fully responsible for how you use this project and for complying with Picnic terms, policies, and applicable laws.

You are responsible for your own use of this library, including any account limitations, warnings, temporary suspensions, permanent bans, data loss, or any other consequences that may result.

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.
  • net10.0

    • No dependencies.

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.1.1 196 7/30/2026
1.1.0 94 7/30/2026
1.0.1 97 7/27/2026
1.0.0 116 7/27/2026