{"id":19196721,"url":"https://github.com/sajanv88/pexels_deno","last_synced_at":"2026-04-21T10:02:12.867Z","repository":{"id":57675617,"uuid":"455968667","full_name":"sajanv88/pexels_deno","owner":"sajanv88","description":"A simple Deno library for accessing Pexels api. You may use this library to integrate with your existing product. ","archived":false,"fork":false,"pushed_at":"2022-02-06T10:43:32.000Z","size":24,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-18T00:30:12.932Z","etag":null,"topics":["deno","javascript","library","pexels","pexels-api","typescript"],"latest_commit_sha":null,"homepage":"https://deno.land/x/pexels_deno@v1.0.1","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sajanv88.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-02-05T19:42:26.000Z","updated_at":"2022-06-28T12:47:12.000Z","dependencies_parsed_at":"2022-09-26T20:41:37.508Z","dependency_job_id":null,"html_url":"https://github.com/sajanv88/pexels_deno","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sajanv88%2Fpexels_deno","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sajanv88%2Fpexels_deno/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sajanv88%2Fpexels_deno/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sajanv88%2Fpexels_deno/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sajanv88","download_url":"https://codeload.github.com/sajanv88/pexels_deno/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240271529,"owners_count":19774859,"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":["deno","javascript","library","pexels","pexels-api","typescript"],"created_at":"2024-11-09T12:14:20.591Z","updated_at":"2026-04-21T10:02:07.814Z","avatar_url":"https://github.com/sajanv88.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# pexels_deno\nA simple Deno library for accessing pexels api service. [Pexels API](https://www.pexels.com/api/). Please refer to the API docs to understand the inputs and expected results.\n\n### Supported API methods are.\n* Photos\n* Videos\n* Collections\n\n\n[Create authorization key from pexels](https://www.pexels.com/api/documentation/#authorization)\n\n### Usage\n\n```js\nimport { Pexels } from \"https://deno.land/x/pexels_deno/mod.ts\";\n\n// Create Client instance by passing in API key \n\nconst pexelsClient = new PexelsApi(\"\u003cAPI_KEY\u003e\");\n\n// Search Photos API\ntry {\n    return await pexelsClient.searchPhotos({query: 'food'});\n}catch(err) {\n    console.log(err);\n} \n\n// Search Videos API\ntry {\n    return await pexelsClient.searchVideos({query:\"people\"});\n}catch(err) {\n    console.log(err);\n} \n\n// Trending Photos\ntry {\n    return await pexelsClient.getTrendingPhotos();\n}catch(err) {\n    console.log(err);\n} \n\n// Random Photos\ntry {\n    return await pexelsClient.getRandomPhotos();\n}catch(err) {\n    console.log(err);\n} \n\n// Photo by ID\ntry {\n    return await pexelsClient.getPhotoById(1710795);\n}catch(err) {\n    console.log(err);\n} \n\n// Popular Videos\ntry {\n    return await pexelsClient.getPopularVideos();\n}catch(err) {\n    console.log(err);\n} \n\n\n// My collections\ntry {\n    return await pexelsClient.getMyCollection();\n}catch(err) {\n    console.log(err);\n} \n\n//  Collections Media\ntry {\n    return await pexelsClient.getCollectionsMedia('9mp14cx', 'all');\n}catch(err) {\n    console.log(err);\n} \n\n\n// Featured collections\ntry {\n    return await pexelsClient.getFeaturedCollections();\n}catch(err) {\n    console.log(err);\n} \n\n\n\n```\n\n#### API Version\nGet Pexels API version\n\n```js\nPexelsAPIInstance.getPexelsApiVerison();\n```\n\n### Development\ngit clone [pexels_deno](git@github.com:sajanv88/pexels_deno.git)\n\n* `deno run --allow-net src/mod.ts`\n\n### Acknowledgements\nThanks, [Pexels](http://pexels.com) for creating a great platform for great images.\nI'd like to thank all the folks who have been using this library!\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsajanv88%2Fpexels_deno","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsajanv88%2Fpexels_deno","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsajanv88%2Fpexels_deno/lists"}