{"id":32945979,"url":"https://github.com/gettyimages/gettyimages-api_dotnet","last_synced_at":"2026-02-05T21:05:19.895Z","repository":{"id":39580473,"uuid":"120959177","full_name":"gettyimages/gettyimages-api_dotnet","owner":"gettyimages","description":"Getty Images API SDK - .NET","archived":false,"fork":false,"pushed_at":"2025-11-24T19:23:11.000Z","size":1942,"stargazers_count":13,"open_issues_count":1,"forks_count":8,"subscribers_count":10,"default_branch":"main","last_synced_at":"2026-01-17T10:26:01.033Z","etag":null,"topics":["getty-images","nuget","sdk"],"latest_commit_sha":null,"homepage":null,"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/gettyimages.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2018-02-09T21:46:37.000Z","updated_at":"2025-05-19T16:23:54.000Z","dependencies_parsed_at":"2024-01-02T22:39:27.139Z","dependency_job_id":"769c4d51-bd04-4ea2-a839-1090f4842069","html_url":"https://github.com/gettyimages/gettyimages-api_dotnet","commit_stats":{"total_commits":197,"total_committers":23,"mean_commits":8.565217391304348,"dds":0.7614213197969544,"last_synced_commit":"5e84c3c0661c8412f0a2e98adf57af5491193346"},"previous_names":[],"tags_count":47,"template":false,"template_full_name":null,"purl":"pkg:github/gettyimages/gettyimages-api_dotnet","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gettyimages%2Fgettyimages-api_dotnet","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gettyimages%2Fgettyimages-api_dotnet/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gettyimages%2Fgettyimages-api_dotnet/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gettyimages%2Fgettyimages-api_dotnet/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gettyimages","download_url":"https://codeload.github.com/gettyimages/gettyimages-api_dotnet/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gettyimages%2Fgettyimages-api_dotnet/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29134265,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-05T20:50:26.975Z","status":"ssl_error","status_checked_at":"2026-02-05T20:49:26.082Z","response_time":65,"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":["getty-images","nuget","sdk"],"created_at":"2025-11-12T18:00:25.876Z","updated_at":"2026-02-05T21:05:18.192Z","avatar_url":"https://github.com/gettyimages.png","language":"C#","funding_links":[],"categories":["SDK and API Clients","SDK和API客户端","Identifiers"],"sub_categories":["GUI - other"],"readme":"# Getty Images API SDK - .NET\n\n[![build status](https://github.com/gettyimages/gettyimages-api_dotnet/actions/workflows/build.yml/badge.svg)](https://github.com/gettyimages/gettyimages-api_dotnet/actions/workflows/build.yml)\n[![NuGet version](https://badge.fury.io/nu/gettyimages.api.svg)](https://badge.fury.io/nu/gettyimages.api)\n[![NuGet](https://img.shields.io/nuget/dt/GettyImages.Api.svg?style=flat-square)](https://www.nuget.org/packages/gettyimages.api)\n[![Open Hub](https://img.shields.io/badge/Open-Hub-0185CA.svg)](https://www.openhub.net/p/gettyimages-api_dotnet)\n\n\n## Introduction\nThis SDK makes using the Getty Images [API](http://developers.gettyimages.com) easy. It handles credential management, makes HTTP requests and is written with a fluent style in mind. For more info about the API, see the [Documentation](https://developers.gettyimages.com/api/).\n\n* Functionality for all endpoints.\n\n## Help \u0026 Support\n\n* [Getty Images API](http://developers.gettyimages.com/)\n* [Issue Tracker](https://github.com/gettyimages/gettyimages-api_dotnet/issues)\n\n## Getting started\n### Obtain an API Key\n\nIf you don't already have an API key, fill out and submit the [contact form](http://engage.gettyimages.com/api-contact) to be connected to our Sales team.\n\n### Using the Nuget Package\nThe SDK is published to the public [Nuget](https://www.nuget.org/packages/GettyImages.Api/) package repository.\n\nOpen the package manager and add the package to your project:\n![Add nuget package reference](https://raw.githubusercontent.com/gettyimages/gettyimages-api_dotnet/master/nuget-add-ref.png)\n\n### Examples\nThe SDK supports async operations.\n```csharp\nvar client = ApiClient.GetApiClientWithClientCredentials(\"YOUR_API_KEY\", \"YOUR_API_SECRET\");\nvar searchResult = await client.SearchImagesEditorial()\n    .WithEditorialSegment(EditorialSegment.News)\n    .WithPhrase(\"all vocabulary\")\n    .WithSortOrder(SortOrder.Newest)\n    .ExecuteAsync();\n\nforeach (var image in searchResult.images)\n{\n    Console.WriteLine(\"Title: {0} \\r\\nId: {1}\", image.title, image.id);\n}\n````\n\nThe SDK can also be used synchronously, such as when running in a console application:\n\n```csharp\nvar client = ApiClient.GetApiClientWithClientCredentials(\"YOUR_API_KEY\", \"YOUR_API_SECRET\");\nvar searchResult = client.SearchImagesEditorial()\n    .WithEditorialSegment(EditorialSegment.News)\n    .WithPhrase(\"all vocabulary\")\n    .WithSortOrder(SortOrder.Newest)\n    .ExecuteAsync()\n    .Result;\n\nforeach (var image in searchResult.images)\n{\n    Console.WriteLine(\"Title: {0} \\r\\nId: {1}\", image.title, image.id);\n}\n\n````\n\nResults are returned as `dynamic`. Visit the [API Interactive Documentation](https://api.gettyimages.com/swagger) to learn more about available parameters and to see what the response objects look like.\n\n#### ASP.NET Webforms\n\nWhen using the SDK in a Webforms project, there are a few extra steps needed. For more detailed information, see [Using Asynchronous Methods in ASP.NET 4.5](https://docs.microsoft.com/en-us/aspnet/web-forms/overview/performance-and-caching/using-asynchronous-methods-in-aspnet-45) on Microsoft's documentation website.\n\nFirst, the Page must be marked as `Async=\"true\"`:\n\n```html\n\u003c%@ Page Language=\"C#\" Async=\"true\" AutoEventWireup=\"true\" CodeBehind=\"Images.aspx.cs\" Inherits=\"WebFormsSdkTest.Images\" %\u003e\n\n\u003c!DOCTYPE html\u003e\n\n\u003chtml xmlns=\"http://www.w3.org/1999/xhtml\"\u003e\n\u003chead runat=\"server\"\u003e\n    \u003ctitle\u003e\u003c/title\u003e\n\u003c/head\u003e\n\u003cbody\u003e\n    \u003cform id=\"form1\" runat=\"server\"\u003e\n        \u003cdiv\u003e\n            \u003casp:Repeater ID=\"RepeaterImages\" runat=\"server\"\u003e\n                \u003cItemTemplate\u003e\n                    \u003casp:Image runat=\"server\" ImageUrl='\u003c%#Container.DataItem%\u003e'/\u003e\n                \u003c/ItemTemplate\u003e\n            \u003c/asp:Repeater\u003e\n        \u003c/div\u003e\n    \u003c/form\u003e\n\u003c/body\u003e\n\u003c/html\u003e\n\n```\n\nThen register an async task in the `Page_Load` method:\n\n```csharp\npublic partial class Images : Page\n{\n    public List\u003cstring\u003e ImageList { get; set; }\n    protected void Page_Load(object sender, EventArgs e)\n    {\n        RegisterAsyncTask(new PageAsyncTask(GetImages));\n    }\n\n    private async Task GetImages()\n    {\n        var client = ApiClient.GetApiClientWithClientCredentials(\"YOUR_API_KEY\",\n            \"YOUR_API_SECRET\");\n        var response = await client.SearchImagesCreative().WithPhrase(\"tacos\").ExecuteAsync();\n        ImageList = new List\u003cstring\u003e();\n        for (int i = 0; i \u003c response.images.Count; i++)\n        {\n            ImageList.Add((string)response.images[i].display_sizes[0].uri);\n        }\n\n        RepeaterImages.DataSource = ImageList;\n        RepeaterImages.DataBind();\n    }\n}\n\n```\n\n### Building From Source Code\n_This is only necessary if you would like to contribute to the project. Otherwise, use the [Nuget Package](#using-the-nuget-package)_\n\n#### Assumptions\n+ You have [.NET Core 2.0](https://www.microsoft.com/net/learn/get-started/windows) or later installed\n+ You have [Git](https://git-scm.com/downloads) installed\n\n#### Clone the repository\nOpen a console window (Command Prompt, PowerShell or Bash) and issue the following commands to clone the Git repository:\n```sh\ngit clone git@github.com:gettyimages/gettyimages-api_dotnet.git\ncd gettyimages-api_dotnet\n```\n\n#### Build\n\n```sh\ndotnet restore\ndotnet build\ndotnet test UnitTests/\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgettyimages%2Fgettyimages-api_dotnet","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgettyimages%2Fgettyimages-api_dotnet","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgettyimages%2Fgettyimages-api_dotnet/lists"}