Apify.Client
0.10.1
dotnet add package Apify.Client --version 0.10.1
NuGet\Install-Package Apify.Client -Version 0.10.1
<PackageReference Include="Apify.Client" Version="0.10.1" />
<PackageVersion Include="Apify.Client" Version="0.10.1" />
<PackageReference Include="Apify.Client" />
paket add Apify.Client --version 0.10.1
#r "nuget: Apify.Client, 0.10.1"
#:package Apify.Client@0.10.1
#addin nuget:?package=Apify.Client&version=0.10.1
#tool nuget:?package=Apify.Client&version=0.10.1
Apify API client for .NET
Official, but experimental: AI-generated and AI-maintained. This is an official Apify client, but it is experimental: it is generated and maintained by AI. Review the code before relying on it in production and report issues on the repository.
A resource-oriented .NET client for the Apify API, mirroring the
official JavaScript reference client: start from an
ApifyClient, then drill down into resources (Actors, runs, datasets, key-value stores, request
queues, tasks, schedules, webhooks, the store, users and logs).
All calls are asynchronous (Task-returning, CancellationToken-aware).
Requirements
- .NET 8.0 or newer.
Installation
dotnet add package Apify.Client
Quick start
The snippets list every using explicitly; a project with ImplicitUsings enabled can omit using System;.
using System;
using Apify.Client;
var client = new ApifyClient("my-api-token");
// Start an Actor and wait for it to finish (pass `waitSecs` to bound the wait).
var run = await client.Actor("apify/hello-world").CallAsync();
// Read items from the run's default dataset.
var items = await client.Dataset(run.DefaultDatasetId!).ListItemsAsync();
// Items.Count is the number of items on this page; Total is the count across all pages.
Console.WriteLine($"Items on this page: {items.Items.Count} (of {items.Total} total)");
new ApifyClient("my-api-token") takes the token as an explicit argument and does not read
APIFY_TOKEN automatically. Create a token in
Apify Console → Settings → API & Integrations. Apify Console
shows the token only once, right after you create or rotate it, so copy it and store it somewhere safe.
Documentation
Full documentation lives in docs/, organized by resource, with runnable
examples.
Versioning
Apify.Client.ApifyClientVersion.ClientVersion: the semantic version of this library.Apify.Client.ApifyClientVersion.ApiSpecVersion: the Apify OpenAPI spec version this client was built against.
License
| Product | Versions 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. |
-
net8.0
- ZstdSharp.Port (>= 0.8.8)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.