{"id":37051055,"url":"https://github.com/ninjastacktech/opensea-net","last_synced_at":"2026-01-14T05:54:22.789Z","repository":{"id":41853282,"uuid":"449851530","full_name":"ninjastacktech/opensea-net","owner":"ninjastacktech","description":".NET 6 C# SDK for the OpenSea marketplace.","archived":false,"fork":false,"pushed_at":"2024-08-05T12:45:21.000Z","size":83,"stargazers_count":14,"open_issues_count":2,"forks_count":4,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-11-06T19:25:54.983Z","etag":null,"topics":["csharp","httpclient","net6","opensea","sdk"],"latest_commit_sha":null,"homepage":"","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ninjastacktech.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-01-19T20:52:01.000Z","updated_at":"2022-09-10T13:32:20.000Z","dependencies_parsed_at":"2023-02-10T03:16:22.214Z","dependency_job_id":null,"html_url":"https://github.com/ninjastacktech/opensea-net","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ninjastacktech/opensea-net","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ninjastacktech%2Fopensea-net","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ninjastacktech%2Fopensea-net/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ninjastacktech%2Fopensea-net/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ninjastacktech%2Fopensea-net/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ninjastacktech","download_url":"https://codeload.github.com/ninjastacktech/opensea-net/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ninjastacktech%2Fopensea-net/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28411977,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T05:26:33.345Z","status":"ssl_error","status_checked_at":"2026-01-14T05:21:57.251Z","response_time":107,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["csharp","httpclient","net6","opensea","sdk"],"created_at":"2026-01-14T05:54:22.198Z","updated_at":"2026-01-14T05:54:22.780Z","avatar_url":"https://github.com/ninjastacktech.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cbr\u003e\n\n\u003cimg src=\"https://camo.githubusercontent.com/57cfb2f91adf5c2b206607d801cbf30710614fd4170f05352c75a2d351417ea4/68747470733a2f2f73746f726167652e676f6f676c65617069732e636f6d2f6f70656e7365612d7374617469632f6f70656e7365612d6a732d6c6f676f2d757064617465642e706e67\" width=\"305\" height=\"50\" /\u003e\n\n---\n[![NuGet](https://img.shields.io/nuget/v/OpenSeaClient)](https://www.nuget.org/packages/OpenSeaClient/) \n[![GitHub](https://img.shields.io/github/license/ninjastacktech/opensea-net)](https://github.com/ninjastacktech/opensea-net/blob/master/LICENSE)\n\n.NET 6 C# SDK for the OpenSea marketplace API.\n\nThe API docs can be found here: https://docs.opensea.io/reference/api-overview\n\nDemo API swagger: https://ninja-opensea.azurewebsites.net/swagger/index.html\n\n# install\n```xml\nPM\u003e Install-Package OpenSeaClient -Version 1.0.7\n```\n# snippets\n\n### DI configuration:\n```C#\nbuilder.Services.AddHttpClient\u003cIOpenSeaClient, OpenSeaHttpClient\u003e(config =\u003e\n{\n    config.DefaultRequestHeaders.Add(\"X-Api-Key\", \"\u003cyour_api_key_here\u003e\");\n});\n```\n\n### Get assets in batches of 50 with 1s delay between API calls to avoid throttling:\n```C#\nvar client = new OpenSeaHttpClient(apiKey: \"\u003cyour_api_key_here\u003e\");\n\nvar queryParams = new GetAssetsQueryParams\n{\n    CollectionSlug = collectionSlug,\n};\nvar count = 0;\nvar limit = 50;\nvar it = 0;\n\nvar assetsList = new List\u003cAsset\u003e();\n\ndo\n{\n    queryParams.Offset = limit * it;\n    queryParams.Limit = limit;\n\n    var assets = await client.GetAssetsAsync(queryParams);\n\n    if (assets != null)\n    {\n        if (assets.Count \u003e 0)\n        {\n            assetsList.AddRange(assets);\n        }\n    }\n    else\n    {\n        break;\n    }\n\n    await Task.Delay(1000);\n}\nwhile (count == 50);\n```\n\n### Get the price of a token's sale order:\nNote that the listing price of an asset is equal to the currentPrice of the lowest valid sell order on the asset. \nUsers can lower their listing price without invalidating previous sell orders, so all get shipped down until they're canceled, or one is fulfilled.\n```C#\nvar client = new OpenSeaHttpClient(apiKey: \"\u003cyour_api_key_here\u003e\");\n\nvar orders = await client.GetOrdersAsync(new GetOrdersQueryParams\n{\n   AssetContractAddress = contractAddress,\n   TokenId = tokenId,\n   Side = 1,\n   SaleKind = 0,\n});\n\nif (orders?.Any() == true)\n{\n    var order = orders.Where(x =\u003e x.Cancelled == false).OrderBy(x =\u003e x.CurrentPriceEth).FirstOrDefault();\n\n    if (order != null)\n    {\n        Console.WriteLine($\"Token {tokenId} has a sell order of {order.CurrentPriceEth} ETH\");                   \n    }\n}\n```\n\n\n---\n\n### MIT License\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fninjastacktech%2Fopensea-net","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fninjastacktech%2Fopensea-net","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fninjastacktech%2Fopensea-net/lists"}