{"id":15293160,"url":"https://github.com/xenoken/pexels","last_synced_at":"2025-04-13T12:34:42.969Z","repository":{"id":56836812,"uuid":"191984856","full_name":"xenoken/pexels","owner":"xenoken","description":"Unofficial Pexels REST Client for Dart","archived":false,"fork":false,"pushed_at":"2019-06-29T01:25:01.000Z","size":188,"stargazers_count":4,"open_issues_count":1,"forks_count":5,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-27T03:35:17.983Z","etag":null,"topics":["dart","dartlang","pexels","pexels-api","rest-api"],"latest_commit_sha":null,"homepage":null,"language":"Dart","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/xenoken.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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":"2019-06-14T17:52:17.000Z","updated_at":"2023-01-16T16:02:45.000Z","dependencies_parsed_at":"2022-08-28T21:11:40.905Z","dependency_job_id":null,"html_url":"https://github.com/xenoken/pexels","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xenoken%2Fpexels","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xenoken%2Fpexels/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xenoken%2Fpexels/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xenoken%2Fpexels/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/xenoken","download_url":"https://codeload.github.com/xenoken/pexels/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248714740,"owners_count":21149959,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["dart","dartlang","pexels","pexels-api","rest-api"],"created_at":"2024-09-30T16:40:02.123Z","updated_at":"2025-04-13T12:34:42.929Z","avatar_url":"https://github.com/xenoken.png","language":"Dart","readme":"# pexels\r\nPexels REST client for Dart\r\n\r\n## Usage\r\n\r\nTo use this library, add ```pexels``` as a dependency in your pubspec.yaml file.\r\n\r\n## Getting Started\r\n\r\n```dart\r\n// import pexels\r\nimport \"package:pexels/pexels.dart\";\r\n\r\n// create client instance\r\nvar client = PexelsClient('your_key_here');\r\n\r\n\r\n// get a photo from ID\r\nPhoto photo = await client.getPhoto(id);\r\n\r\n// get a random photo\r\nPhoto photo = await client.getPhoto();    // notice that the getPhoto method is called with no arguments.\r\n\r\n// get the photo's url\r\nString photoUrl = photo.sources['original'].link\r\n// equivalent to:\r\nString photoUrl = photo.get(ImageFormats.original);\r\n\r\n// search photos\r\nSearchResult\u003cPhoto\u003e result = await client.searchPhotos(query,collection: Collection.Popular,page: 1,resultsPerPage:15);\r\nPhoto photo = result[0]; // get the first photo found.\r\n\r\n\r\n\r\n// get a video from ID\r\nVideo video = await client.getVideo(id);\r\n\r\n// get a random video\r\nVideo video = await client.getVideo();    // notice that the getVIdeo method is called with no arguments.\r\n\r\n// get a video source url\r\nString videoUrl = video.sources[0].link;\r\n// equivalent to:\r\nString videoUrl = video.get(0);\r\n\r\n// search videos\r\nSearchResult\u003cVideo\u003e result = await client.searchVideos(query,collection: Collection.Regular,page: 1,resultsPerPage:15);\r\nVideo video = result[0]; // get the first video found.\r\n\r\n\r\n\r\n// get Quota - bundles statistics about the API usage.\r\nQuota quota = await client.getQuota();\r\n```\r\n\r\n\r\n## LICENSE\r\nsee LICENSE","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxenoken%2Fpexels","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fxenoken%2Fpexels","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxenoken%2Fpexels/lists"}