DataForSeo.Client
2.1.0
dotnet add package DataForSeo.Client --version 2.1.0
NuGet\Install-Package DataForSeo.Client -Version 2.1.0
<PackageReference Include="DataForSeo.Client" Version="2.1.0" />
<PackageVersion Include="DataForSeo.Client" Version="2.1.0" />
<PackageReference Include="DataForSeo.Client" />
paket add DataForSeo.Client --version 2.1.0
#r "nuget: DataForSeo.Client, 2.1.0"
#:package DataForSeo.Client@2.1.0
#addin nuget:?package=DataForSeo.Client&version=2.1.0
#tool nuget:?package=DataForSeo.Client&version=2.1.0
OVERVIEW
This is a C# client providing you, as a developer, with a tool for obtaining the necessary data from DataForSEO APIs. You don't have to figure out how to make a request and process a response - all that is readily available in this client.
DataForSEO API uses REST technology for interchanging data between your application and our service. The data exchange is made through the widely used HTTP protocol, which allows using our API with almost any programming language.
Client contains 12 sections (aka APIs):
- AI Optimization API (source docs | api docs)
- SERP (source docs | api docs)
- Keywords Data (source docs | api docs)
- Domain Analytics (source docs | api docs)
- DataForSEO Labs (source docs | api docs)
- Backlinks (source docs | api docs)
- OnPage (source docs | api docs)
- Content Analysis (source docs | api docs)
- Merchant (source docs | api docs)
- AppData (source docs | api docs)
- Business Data (source docs | api docs)
- Appendix (source docs | api docs)
API Contains 2 types of requests:
- Live (Simple HTTP request/response message)
- Task-based (Requires sending a 'Task' entity to execute, waiting until the 'Task' status is ready, and getting the 'Task' result in a special endpoint. Usually, it is represented by 3 types of endpoints: 'TaskPost', 'TaskReady', and 'TaskGet')
For more details, please follow here
YAML Spec
Our API description is based on the OpenAPI syntax in YAML format. The YAML file attached to the project with the name here
Code generation
Code generated using the NSwag lib
Documentation
The documentation for code objects, formatted in the Markdown (.md) is available here. Official documentation for DataForSEO APIs is available here.
Install package from nuget.org
dotnet add package DataForSeo.Client
Examples of usage
Example of live request
var dfsClient = new DataForSeoClient(new DataForSeoClientConfiguration()
{
Username = "USERNAME",
Password = "PASSWORD",
});
var result = await dfsClient.SerpApi.GoogleOrganicLiveAdvancedAsync(new List<SerpGoogleOrganicLiveAdvancedRequestInfo>()
{
new()
{
LanguageCode = "en",
LocationCode = 2840,
Keyword = "albert einstein",
CalculateRectangles = true,
}
});
Example of Task-based request
var dfsClient = new DataForSeoClient(new DataForSeoClientConfiguration()
{
Username = "USERNAME",
Password = "PASSWORD",
});
var result = await dfsClient.SerpApi.GoogleOrganicTaskPostAsync(new List<SerpTaskRequestInfo>()
{
new()
{
LanguageCode = "en",
LocationCode = 2840,
Keyword = "albert einstein",
Priority = 2,
}
});
var sw = Stopwatch.StartNew();
var id = result.Tasks.First().Id;
while (!await GoogleOrganicTaskReady(id) && sw.Elapsed < TimeSpan.FromMinutes(1))
await Task.Delay(1_000);
var taskGetResult = await dfsClient.SerpApi.GoogleOrganicTaskGetAdvancedAsync(id);
async Task<bool> GoogleOrganicTaskReady(string id)
{
var result = await dfsClient.SerpApi.GoogleOrganicTasksReadyAsync();
return result.Tasks?.Any(x => x.Result?.Any(xx => xx.Id == id) ?? false) ?? false;
}
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. 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. |
| .NET Core | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
| .NET Standard | netstandard2.0 is compatible. netstandard2.1 is compatible. |
| .NET Framework | net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
| MonoAndroid | monoandroid was computed. |
| MonoMac | monomac was computed. |
| MonoTouch | monotouch was computed. |
| Tizen | tizen40 was computed. tizen60 was computed. |
| Xamarin.iOS | xamarinios was computed. |
| Xamarin.Mac | xamarinmac was computed. |
| Xamarin.TVOS | xamarintvos was computed. |
| Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETStandard 2.0
- Newtonsoft.Json (>= 13.0.3)
-
.NETStandard 2.1
- Newtonsoft.Json (>= 13.0.3)
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 |
|---|---|---|
| 2.1.0 | 22 | 7/22/2026 |
| 2.0.26 | 614 | 6/2/2026 |
| 2.0.25 | 609 | 4/28/2026 |
| 2.0.24 | 138 | 4/20/2026 |
| 2.0.23 | 184 | 4/15/2026 |
| 2.0.22 | 3,672 | 3/30/2026 |
| 2.0.21 | 804 | 3/3/2026 |
| 2.0.20 | 1,230 | 2/18/2026 |
| 2.0.19 | 937 | 2/2/2026 |
| 2.0.18 | 658 | 12/19/2025 |
| 2.0.17 | 166 | 12/14/2025 |
| 2.0.16 | 168 | 12/14/2025 |
| 2.0.15 | 438 | 11/22/2025 |
| 2.0.14 | 494 | 11/13/2025 |
| 2.0.13 | 392 | 11/10/2025 |
| 2.0.12 | 205 | 11/6/2025 |
| 2.0.11 | 206 | 11/5/2025 |
| 2.0.10 | 201 | 11/5/2025 |
| 2.0.9 | 420 | 10/24/2025 |
| 2.0.8 | 454 | 10/14/2025 |