{"id":13509643,"url":"https://github.com/waynehoover/unsplash-elixir","last_synced_at":"2026-02-19T02:32:06.307Z","repository":{"id":62430677,"uuid":"46264156","full_name":"waynehoover/unsplash-elixir","owner":"waynehoover","description":"Unsplash API client for Elixir","archived":false,"fork":false,"pushed_at":"2019-11-16T22:44:51.000Z","size":569,"stargazers_count":15,"open_issues_count":0,"forks_count":6,"subscribers_count":0,"default_branch":"master","last_synced_at":"2026-01-17T19:48:28.629Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Elixir","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/waynehoover.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":"2015-11-16T09:16:51.000Z","updated_at":"2024-06-28T08:08:20.000Z","dependencies_parsed_at":"2022-11-01T20:19:56.557Z","dependency_job_id":null,"html_url":"https://github.com/waynehoover/unsplash-elixir","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/waynehoover/unsplash-elixir","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/waynehoover%2Funsplash-elixir","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/waynehoover%2Funsplash-elixir/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/waynehoover%2Funsplash-elixir/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/waynehoover%2Funsplash-elixir/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/waynehoover","download_url":"https://codeload.github.com/waynehoover/unsplash-elixir/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/waynehoover%2Funsplash-elixir/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29601090,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-19T00:59:38.239Z","status":"online","status_checked_at":"2026-02-19T02:00:07.702Z","response_time":117,"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-08-01T02:01:10.888Z","updated_at":"2026-02-19T02:32:06.250Z","avatar_url":"https://github.com/waynehoover.png","language":"Elixir","funding_links":[],"categories":["Third Party APIs"],"sub_categories":[],"readme":"# Unsplash [![Build Status](https://travis-ci.org/waynehoover/unsplash-elixir.svg?branch=master)](https://travis-ci.org/waynehoover/unsplash-elixir) [![Hex pm](http://img.shields.io/hexpm/v/unsplash.svg?style=flat)](https://hex.pm/packages/unsplash) [![Codacy Badge](https://api.codacy.com/project/badge/Grade/9ecf49d0c73e4b268e77b34e766e149a)](https://www.codacy.com/app/waynehoover/unsplash-elixir?utm_source=github.com\u0026amp;utm_medium=referral\u0026amp;utm_content=waynehoover/unsplash-elixir\u0026amp;utm_campaign=Badge_Grade)\n\n[Unsplash](https://unsplash.com) API wrapper in Elixir.\n\n\n## Exmaple Usage\n\n* `Unsplash.Photos.search(query: \"Austin\", catgeroy: \"2\") |\u003e Enum.take(1)`\n* `Unsplash.Collections.all |\u003e Enum.take(1)`\n* All [API endpoints](https://unsplash.com/documentation) are supported. See the [documentation](http://hexdocs.pm/unsplash/Unsplash.html) for full list.\n\nEach API call that is paginated returns a stream. You can resolve the stream by calling any Enum function, this way you don't have to think about pagination. For example to get one random photo: `Unsplash.Photos.random |\u003e Enum.take(1)` or to get 100 random photos: `Unsplash.Photos.random |\u003e Enum.take(100)`.\n\n\n## Configuration\n\nSee the `secrets.exs` file on what configuration variables need to be configured.\n\n\n## Authorization\n\nGet an auth code by directing a user to the url generated by this command (replace the scope with what you would like):\n`Unsplash.OAuth.authorize_url! scope: \"public read_user write_user read_photos write_photos write_likes read_collections write_collections\"`\n\nAfter the user grants access, she will be redirected back to your redirect_uri whith a `code` query paramater, which you then set like this:\n`Unsplash.OAuth.authorize!(code: auth_code_from_the_callback)`\n\nNow every API call will use the access_code gerenated in the above step automatically.\n\n\n## Installation\n\n1. Add unsplash to your list of dependencies in `mix.exs`:\n```elixir\n    def deps do\n      [{:unsplash, \"~\u003e 1.1.0\"}]\n    end\n```\n\n2. Ensure unsplash is started before your application:\n```elixir\n    def application do\n      [applications: [:unsplash]]\n    end\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwaynehoover%2Funsplash-elixir","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwaynehoover%2Funsplash-elixir","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwaynehoover%2Funsplash-elixir/lists"}