Pexafy Collections API

Saved sets, owned by an API key. One resource group of the Pexafy Stock Photos API (the name the provider publishes in its apis.json and OpenAPI).

GitHub OpenAPI

Operations 12

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

GET /collections List collections (v2) · Collections owned by the calling key #
Ask an LLM
“Which saved albums do I have on Pexafy?”
“Can I see my collections newest first?”
Tell an agent
List my collections.
Show every saved album on my account.
POST /collections Create a collection (v2) · Create a collection #
Ask an LLM
“How do I create a new saved album?”
“Can I make a collection public?”
Tell an agent
Create a collection called {name}.
Create a public collection {name} described as {description}.
GET /collections/{collection_id} Get a collection (v2) · One collection #
Ask an LLM
“What photos are in one of my collections?”
“Can I see a collection's cover photo?”
Tell an agent
Show collection {collection_id}.
Get the photos in collection {collection_id}.
DELETE /collections/{collection_id} Delete a collection (v2) · Delete a collection #
Ask an LLM
“How do I delete a saved album?”
“Does deleting a collection remove its photos?”
Tell an agent destructive · confirm first
Delete collection {collection_id}.
Remove saved album {collection_id} from my account.
POST /collections/{collection_id}/photos Add a photo to a collection (legacy path) · Add a photo to a collection #
Ask an LLM
“Can I add a photo to a collection using the older collection path?”
“Is there a legacy endpoint that just appends a photo to a collection?”
Tell an agent
Using the legacy path, add photo {photo_id} to collection {collection_id}.
Save the older-style photo {photo_id} into collection {collection_id}.
DELETE /collections/{collection_id}/photos/{photo_id} Remove a photo from a collection (v2) · Remove a photo from a collection #
Ask an LLM
“How do I take a photo out of a collection?”
“What happens to the cover photo when I remove one?”
Tell an agent destructive · confirm first
Remove photo {photo_id} from collection {collection_id}.
Delete photo {photo_id} from saved album {collection_id}.
GET /api/v1/collections List my saved photo collections · List collections #
Ask an LLM
“Which photo albums do I have saved in my account, and how many photos does each hold?”
“Can I see the name, description and cover photo of every collection I own?”
Tell an agent
List all the collections in my account, newest first.
Show each of my albums with its photo count and cover photo ID.
POST /api/v1/collections Create a saved photo album · Create a collection #
Ask an LLM
“How do I save a new album of photos to my account?”
“Can a new collection be public or private?”
Tell an agent
Create a collection named {name}.
Create collection {name} described as {description} with public set to {is_public}.
GET /api/v1/collections/{collection_id} Get a saved photo album and its photos · Get a collection #
Ask an LLM
“What photos are in a collection I saved?”
“Can I see a saved album with its most recent photo first?”
Tell an agent
Get collection {collection_id}.
Show the photos in saved album {collection_id}, newest first.
DELETE /api/v1/collections/{collection_id} Delete a saved photo album · Delete a collection #
Ask an LLM
“Does deleting a collection also remove every photo in it?”
“Can I undo a deleted saved album?”
Tell an agent destructive · confirm first
Delete collection {collection_id} and everything in it.
Permanently remove saved album {collection_id}.
POST /api/v1/collections/{collection_id}/photos Add a photo to a collection · Add a photo to a collection #
Ask an LLM
“How do I add a photo to an existing collection?”
“Can I set the thumbnail URL when saving a photo into a collection?”
Tell an agent
Add photo {photo_id} to collection {collection_id}.
Save {photo_id} into {collection_id} with thumbnail {photo_thumbnail_url}.
DELETE /api/v1/collections/{collection_id}/photos/{photo_id} Remove a photo from a collection · Remove a photo from a collection #
Ask an LLM
“What happens to a collection's cover if I take out the cover photo?”
“Can I pull one photo out of an album without deleting the whole thing?”
Tell an agent destructive · confirm first
Remove photo {photo_id} from collection {collection_id}, leaving the rest of the album intact.
Take photo {photo_id} out of my moodboard {collection_id}.

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/pexafy:pexafy-collections-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

pexafy-collections-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Pexafy Collections API
  version: 1.3.0
  summary: Semantic search over a catalogue of freely licensed stock photography.
  description: 'Search runs on meaning rather than keywords, so queries read like sentences and filters narrow what the ranking already found.


    Every response is an envelope: `success`, then `data`, then `pagination` on the list endpoints and `meta` everywhere. Failures use the same envelope with an `error` object whose `code` is stable across versions. Branch on the code, never on the message.


    Enums marked `x-extensible-enum` grow between releases. Parse them as open strings; a client whose type is a closed set will fail the day a value is added.'
  license:
    name: MIT
    identifier: MIT
  contact:
    name: Pexafy
    url: https://pexafy.com
servers:
- url: https://api.pexafy.com/api/v1
  description: Production
security:
- apiKey: []
tags:


# --- truncated at 32 KB (33 KB total) ---
# Full source: https://artifacts.apis.io/pexafy/openapi/pexafy-collections-api-openapi.yml