### Get Featured Collections - C# Source: https://github.com/pexels/pexelsdotnetsdk/blob/master/ReadMe.md Retrieves a list of featured collections from the Pexels API. These are curated collections highlighted by Pexels. ```C# var result = await pexelsClient.FeaturedCollectionsAsync(); ``` -------------------------------- ### Get Curated Photos - C# Source: https://github.com/pexels/pexelsdotnetsdk/blob/master/ReadMe.md Retrieves a list of curated photos from the Pexels API. This method returns a selection of high-quality photos hand-picked by Pexels. ```C# var result = await pexelsClient.CuratedPhotosAsync(); ``` -------------------------------- ### Get Popular Videos - C# Source: https://github.com/pexels/pexelsdotnetsdk/blob/master/ReadMe.md Retrieves a list of popular videos from the Pexels API. This method returns a selection of trending videos on the platform. ```C# var result = await pexelsClient.PopularVideosAsync(); ``` -------------------------------- ### Get Collection Media by ID - C# Source: https://github.com/pexels/pexelsdotnetsdk/blob/master/ReadMe.md Retrieves all media (photos and videos) for a specific collection ID. Replace '[your collection id]' with the actual ID of the collection. ```C# var result = await pexelsClient.GetCollectionAsync("[your collection id]"); ``` -------------------------------- ### Get Specific Photo - C# Source: https://github.com/pexels/pexelsdotnetsdk/blob/master/ReadMe.md Retrieves a specific photo by its unique ID from the Pexels API. This is useful for fetching details of a known photo. ```C# var result = await pexelsClient.GetPhotoAsync(2014422); ``` -------------------------------- ### Get Specific Video - C# Source: https://github.com/pexels/pexelsdotnetsdk/blob/master/ReadMe.md Retrieves a specific video by its unique ID from the Pexels API. This is useful for fetching details of a known video. ```C# var result = await pexelsClient.GetVideoAsync(2499611); ``` -------------------------------- ### Get User Collections - C# Source: https://github.com/pexels/pexelsdotnetsdk/blob/master/ReadMe.md Retrieves a list of collections belonging to the API user. Note that this is limited to collections associated with the account linked to the API key. ```C# var result = await pexelsClient.CollectionsAsync(); ``` -------------------------------- ### Get Collection Media by ID and Type - C# Source: https://github.com/pexels/pexelsdotnetsdk/blob/master/ReadMe.md Retrieves media for a specific collection ID, allowing filtering by media type ('photos' or 'videos'). Replace '[your collection id]' with the actual ID. ```C# var result = await pexelsClient.GetCollectionAsync(id: "[your collection id]", type: "photos"); ``` -------------------------------- ### Initialize PexelsClient - C# Source: https://github.com/pexels/pexelsdotnetsdk/blob/master/ReadMe.md Creates a new instance of the PexelsClient using your API key. This client is essential for making any subsequent API calls to Pexels. ```C# var pexelsClient = new PexelsClient("[YOUR_API_KEY]"); ``` -------------------------------- ### Search Videos - C# Source: https://github.com/pexels/pexelsdotnetsdk/blob/master/ReadMe.md Searches for videos based on a query string using the Pexels API. It returns a result object containing the videos that match the search term. ```C# var result = await pexelsClient.SearchVideosAsync("nature"); ``` -------------------------------- ### Search Photos - C# Source: https://github.com/pexels/pexelsdotnetsdk/blob/master/ReadMe.md Searches for photos based on a query string using the Pexels API. It returns a result object containing the photos that match the search term. ```C# var result = await pexelsClient.SearchPhotosAsync("nature"); ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.