Discover/unsplash.com API
live

unsplash.com APIunsplash.com

Search Unsplash photos by keyword, orientation, and sort order. Returns image URLs, EXIF data, tags, location, view counts, and photographer profiles.

Endpoints
3
Updated
4mo ago
Try it
Page number for pagination (1-based)
Search keyword or theme (e.g., 'nature', 'architecture', 'ocean')
Sort order: 'relevant' or 'latest'
Number of results per page (max 30)
Filter by orientation: 'landscape', 'portrait', or 'squarish'
api.parse.bot/scraper/d7435d90-1d30-4d76-911f-b0d609c511ae/<endpoint>
Ready to send
Fill in the parameters and hit sign in to send to see live response data here.
Use it in your codegrab a free API key at signup
curl -X GET 'https://api.parse.bot/scraper/d7435d90-1d30-4d76-911f-b0d609c511ae/search_photos?page=1&query=mountain&order_by=relevant&per_page=3' \
  -H 'X-API-Key: $PARSE_API_KEY'
All endpoints · 3 totalclick to expand

Search Unsplash photos by keyword or theme. Returns paginated results with image URLs, descriptions, and photographer details.

Input
ParamTypeDescription
pageintegerPage number for pagination (1-based)
queryrequiredstringSearch keyword or theme (e.g., 'nature', 'architecture', 'ocean')
order_bystringSort order: 'relevant' or 'latest'
per_pageintegerNumber of results per page (max 30)
orientationstringFilter by orientation: 'landscape', 'portrait', or 'squarish'
Response
{
  "type": "object",
  "fields": {
    "page": "integer — current page number",
    "query": "string — the search query used",
    "photos": "array of photo objects with id, slug, description, urls, photographer, etc.",
    "per_page": "integer — results per page",
    "total_pages": "integer — total pages available",
    "total_results": "integer — total matching photos on Unsplash"
  },
  "sample": {
    "data": {
      "page": 1,
      "query": "cats",
      "photos": [
        {
          "id": "gz0rGe7mhL8",
          "slug": "a-close-up-of-a-cat-on-a-bed-gz0rGe7mhL8",
          "urls": {
            "raw": "https://plus.unsplash.com/premium_photo-1667030474693-6d0632f97029?ixid=...",
            "full": "...",
            "small": "...",
            "thumb": "...",
            "regular": "..."
          },
          "color": "#c0d9d9",
          "likes": 55,
          "links": {
            "html": "https://unsplash.com/photos/a-close-up-of-a-cat-on-a-bed-gz0rGe7mhL8",
            "download": "..."
          },
          "width": 4106,
          "height": 6159,
          "premium": true,
          "description": null,
          "photographer": {
            "id": "go2iiXuMU50",
            "name": "Tim Schmidbauer",
            "location": "Germany, Stuttgart",
            "username": "timschmidbauer",
            "total_photos": 617
          },
          "alt_description": "a close up of a cat on a bed"
        }
      ],
      "per_page": 3,
      "total_pages": 515,
      "total_results": 10300
    },
    "status": "success"
  }
}

About the unsplash.com API

This API exposes 3 endpoints for querying and retrieving Unsplash photo data, returning up to 30 results per page with image URLs at five resolutions, photographer profiles, and metadata including tags, EXIF fields, and location. The search_photos endpoint accepts keyword queries with optional orientation and sort filters, while get_photo_details returns per-photo depth including view counts, download counts, and related collections.

Search and Filter Photos

The search_photos endpoint accepts a required query string and optional parameters — orientation (landscape, portrait, or squarish), order_by (relevant or latest), per_page (up to 30), and page for pagination. The response includes total_results and total_pages so you can page through an entire result set, plus an array of photo objects carrying id, slug, description, and urls at raw, full, regular, small, and thumb sizes.

Full Photo Details

The get_photo_details endpoint takes a photo_id or slug and returns the most complete record available: an exif object (make, model, exposure_time, aperture, focal_length, iso), a location object (name, city, country), views, downloads, a tags array, and a photographer object with username, bio, location, and social links. It also returns a related_collections summary with a total count and collection array.

Tag-Enriched Search

The search_photos_with_tags endpoint combines search and detail retrieval in one call. It accepts the same query, order_by, and orientation parameters as search_photos but returns each photo already enriched with its tags array. The limit parameter (1–30) controls how many enriched results come back. The response also surfaces returned_count and total_available for result-set context.

Response Shape Notes

All three endpoints share a consistent photo object structure. URLs are delivered in five size variants directly usable in <img> tags or download flows. Photographer data includes social links when provided by the source. Tags are title strings (e.g., "mountain", "sunset"), not IDs, making them straightforward to use as labels or filter keys without a separate lookup.

Common use cases
  • Populating a design tool's stock photo picker using search_photos with orientation filtering
  • Building a photo attribution widget by pulling photographer name, username, and bio from get_photo_details
  • Training an image classifier using keyword search results with their tags arrays from search_photos_with_tags
  • Displaying location metadata (city, country) alongside editorial photos retrieved via get_photo_details
  • Surfacing EXIF camera data (ISO, aperture, focal length) in a photography reference tool
  • Aggregating view and download counts to rank photo popularity by search topic
  • Curating themed mood boards by searching keywords and filtering results to squarish orientation
Pricing & limitsSee full pricing →
TierPriceCredits/monthRate limit
Free$0/mo1005 req/min
Hobby$30/mo1,00020 req/min
Developer$100/mo5,000250 req/min

One credit = one API call regardless of which marketplace API you call. Exceeding the rate limit returns a 429 response. Authenticate with the X-API-Key header.

Frequently asked questions
Does Unsplash have an official developer API?+
Yes. Unsplash publishes an official REST API documented at https://unsplash.com/developers. It requires registering an application to obtain an access key and is subject to its own rate limits and display guidelines.
What does `get_photo_details` return beyond what the search endpoints provide?+
It adds fields not present in search results: the exif object (make, model, exposure_time, aperture, focal_length, iso), a location object (name, city, country), views, downloads, and a related_collections summary. Search endpoints return urls, description, and basic photographer info, but not those depth fields.
Does the API return photo collections or user portfolios?+
Not directly. get_photo_details includes a related_collections object with a total count and collection array tied to a specific photo, but there are no endpoints for browsing collections independently or retrieving all photos from a given photographer's portfolio. You can fork the API on Parse and revise it to add those endpoints.
Is there a way to search by color or topic category rather than a text keyword?+
Currently the search parameters support query (text), orientation, and order_by. Color-based filtering and Unsplash's topic/collection taxonomy are not exposed. You can fork the API on Parse and revise it to add color or topic parameters.
What is the maximum number of results I can retrieve in one call, and how does pagination work?+
per_page is capped at 30 for search_photos. The response returns total_pages and total_results so you can iterate using the page parameter. search_photos_with_tags uses a limit parameter (1–30) instead and does not support page-level pagination in the same way.
Page content last updated . Spec covers 3 endpoints from unsplash.com.
Related APIs in OtherSee all →
ueex.com.ua API
Access real-time and historical pricing data for Ukrainian energy commodities including natural gas, electricity, coal, LPG, and timber directly from official exchange quotations and auction results. Monitor trading indices, check medium long-term market rates, and view the trading calendar to stay informed on energy market trends.
cses.fi API
Explore the CSES Problem Set by browsing problems across different categories, viewing detailed problem information, and discovering available courses and contests. Access comprehensive problem lists organized by topic to find coding challenges tailored to your learning goals.
bazaardb.gg API
Search and retrieve comprehensive data about The Bazaar game cards, including items, skills, merchants, trainers, monsters, and events with full details like tiers, attributes, enchantments, and tooltips. Quickly find the specific card information you need to optimize your gameplay strategy and deck building.
jurisprudencia.tst.jus.br API
Search and retrieve judicial decisions from Brazil's Superior Labor Court with filters by date, court body, and keywords to access decision summaries, outcomes, and full texts. Quickly find relevant labor law precedents and court rulings to support legal research and case analysis.
icons8.com API
Search for millions of icons across different visual styles like colorful, pattern-based, and minimalist designs to find the perfect icon for your project. Discover and retrieve icons in your preferred style to enhance your designs and applications.
smstome.com API
Browse temporary phone numbers from countries around the world and read incoming SMS messages in real time. List available numbers by country, retrieve messages sorted newest to oldest, and search message history by sender or content.
noor-book.com API
Search and discover books across 1,800+ categories in the Noor Book library, retrieving detailed information about titles, authors, biographies, and book metadata. Access comprehensive author profiles and browse one of the largest Arabic and English digital book collections with over 289,000 authors.
quizbowlpackets.com API
Search and browse thousands of quizbowl question sets across all competition levels, then access detailed metadata like difficulty, subjects, and download links for each packet. Find the perfect practice materials for High School, Collegiate, Middle School, or Pop Culture quizbowl competitions.
Unsplash API – Photos, Tags & Photographer Data · Parse