{"id":15774867,"url":"https://github.com/devkiran/unsplash-node","last_synced_at":"2025-10-15T20:30:23.018Z","repository":{"id":143948379,"uuid":"382581571","full_name":"devkiran/unsplash-node","owner":"devkiran","description":null,"archived":true,"fork":false,"pushed_at":"2021-07-03T15:39:30.000Z","size":7,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-10-04T16:41:29.912Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/devkiran.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-07-03T09:57:58.000Z","updated_at":"2024-03-24T08:10:05.000Z","dependencies_parsed_at":null,"dependency_job_id":"cb7faed6-f4e5-4112-bd78-9a9bbcba62fd","html_url":"https://github.com/devkiran/unsplash-node","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/devkiran/unsplash-node","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devkiran%2Funsplash-node","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devkiran%2Funsplash-node/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devkiran%2Funsplash-node/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devkiran%2Funsplash-node/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/devkiran","download_url":"https://codeload.github.com/devkiran/unsplash-node/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devkiran%2Funsplash-node/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279110986,"owners_count":26105907,"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","status":"online","status_checked_at":"2025-10-15T02:00:07.814Z","response_time":56,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":[],"created_at":"2024-10-04T16:41:17.781Z","updated_at":"2025-10-15T20:30:22.758Z","avatar_url":"https://github.com/devkiran.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"### Unsplash API\n\n```javascript\nconst api = new Unsplash({\n    access_key : ACCESS_KEY || process.env.ACCESS_KEY\n});\n\n// Search photos by keyword\napi.searchPhotos({ query : 'earth' }).then((photos) =\u003e {\n    for (photo of photos.results) {\n        console.log(photo.id);\n    }\n});\n\n// Get a random photo\napi.randomPhoto().then((photo) =\u003e {\n    console.log(photo);\n});\n\n// Get a photo by id\napi.getPhoto({ photo_id : 'x8ZStukS2PM' }).then((photo) =\u003e {\n    console.log(photo);\n});\n```\n\n```javascript\nlet photo1 = new Photo();\nconsole.log(photo1.fromUser('erondu').size(500, 700).fetch());\n\n// Fixed daily/weekly photo\nlet photo2 = new Photo();\nconsole.log(photo2.weekly().fetch());\n\n// Random from a user\nlet photo3 = new Photo();\nconsole.log(photo3.fromUser('erondu').weekly().fetch());\n\n// Random from a search term\nlet photo4 = new Photo();\nconsole.log(photo4.search('sea').weekly().fetch());\n\n// Random search term\nlet photo5 = new Photo();\nconsole.log(photo5.featured().search('nature').fetch());\n\n// Specific photo\nlet photo6 = new Photo('WLUHO9A_xik');\nconsole.log(photo6.size(1600, 900).fetch());\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevkiran%2Funsplash-node","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdevkiran%2Funsplash-node","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevkiran%2Funsplash-node/lists"}