Pexafy · Schema

SearchEnvelope

ImagePhotosStock PhotosImage SearchSemantic SearchComputer VisionEmbeddingsMCPAgent-NativeContent Licensing

Properties

Name Type Description
success boolean
data array
pagination object
meta object
View JSON Schema on GitHub

JSON Schema

pexafy-search-envelope-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/pexafy/json-schema/pexafy-search-envelope-schema.json",
  "title": "SearchEnvelope",
  "x-generated": "2026-11-19",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/pexafy-photos-api-openapi.yml#/components/schemas/SearchEnvelope",
  "type": "object",
  "required": [
    "success",
    "data",
    "pagination"
  ],
  "properties": {
    "success": {
      "type": "boolean"
    },
    "data": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/Photo"
      }
    },
    "pagination": {
      "$ref": "#/$defs/Pagination"
    },
    "meta": {
      "$ref": "#/$defs/Meta"
    }
  },
  "$defs": {
    "Attribution": {
      "type": "object",
      "description": "Credit line, ready to drop into a page. Most upstream licences require it even when they do not require a link.",
      "properties": {
        "html": {
          "type": "string"
        },
        "plain": {
          "type": "string"
        }
      }
    },
    "ColorName": {
      "type": "string",
      "enum": [
        "black",
        "white",
        "grey",
        "red",
        "orange",
        "yellow",
        "green",
        "teal",
        "blue",
        "purple",
        "pink",
        "brown"
      ],
      "x-extensible-enum": true,
      "description": "Extensible."
    },
    "LicenseType": {
      "type": "string",
      "enum": [
        "cc0",
        "unsplash",
        "pexels",
        "pixabay",
        "cc-by",
        "cc-by-sa"
      ],
      "x-extensible-enum": true,
      "description": "Extensible."
    },
    "Meta": {
      "type": "object",
      "properties": {
        "request_id": {
          "type": "string"
        },
        "took_ms": {
          "type": "number",
          "description": "Server side time, excluding transfer."
        }
      }
    },
    "Orientation": {
      "type": "string",
      "enum": [
        "landscape",
        "portrait",
        "square"
      ],
      "x-extensible-enum": true,
      "description": "Extensible: new orientations may be added."
    },
    "Pagination": {
      "type": "object",
      "required": [
        "per_page",
        "has_more"
      ],
      "description": "Cursor paging. There is no total count: the result set is a ranked stream and counting it would cost more than returning it.",
      "properties": {
        "next_cursor": {
          "type": [
            "string",
            "null"
          ]
        },
        "per_page": {
          "type": "integer"
        },
        "has_more": {
          "type": "boolean"
        }
      }
    },
    "Photo": {
      "type": "object",
      "required": [
        "photo_id",
        "urls",
        "source",
        "license_type"
      ],
      "properties": {
        "photo_id": {
          "type": "string",
          "format": "uuid",
          "description": "UUIDv7. Sortable by creation time, which is why it is not an integer."
        },
        "image_url": {
          "type": "string",
          "format": "uri"
        },
        "urls": {
          "$ref": "#/$defs/PhotoUrls"
        },
        "width": {
          "type": "integer",
          "minimum": 1
        },
        "height": {
          "type": "integer",
          "minimum": 1
        },
        "blur_hash": {
          "type": [
            "string",
            "null"
          ],
          "description": "Placeholder while loading."
        },
        "orientation": {
          "$ref": "#/$defs/Orientation"
        },
        "color_name": {
          "$ref": "#/$defs/ColorName"
        },
        "color_hex": {
          "type": "string"
        },
        "photographer_username": {
          "type": "string"
        },
        "photographer_full_name": {
          "type": [
            "string",
            "null"
          ]
        },
        "photographer_url": {
          "type": [
            "string",
            "null"
          ],
          "format": "uri"
        },
        "source": {
          "$ref": "#/$defs/Source"
        },
        "license_type": {
          "$ref": "#/$defs/LicenseType"
        },
        "source_image_url": {
          "type": [
            "string",
            "null"
          ],
          "format": "uri"
        },
        "source_description": {
          "type": [
            "string",
            "null"
          ]
        },
        "description": {
          "type": [
            "string",
            "null"
          ]
        },
        "alt_description": {
          "type": [
            "string",
            "null"
          ],
          "description": "Short text for an alt attribute. Null for a large part of the catalogue; fall back to description, then to source_description, then to nothing rather than to the filename."
        },
        "uploaded_on": {
          "type": [
            "string",
            "null"
          ],
          "format": "date"
        },
        "relevance_score": {
          "type": [
            "number",
            "null"
          ],
          "minimum": 0,
          "maximum": 1,
          "description": "Only present on search results. Comparable within one response and not across responses: the scores are normalised per query."
        },
        "attribution": {
          "$ref": "#/$defs/Attribution"
        }
      }
    },
    "PhotoUrls": {
      "type": "object",
      "required": [
        "thumb",
        "small",
        "regular",
        "large",
        "full"
      ],
      "description": "The same image at five widths. Pick the smallest one that fits; the CDN charges you nothing for it but the upstream library counts a view either way.",
      "properties": {
        "thumb": {
          "type": "string",
          "format": "uri"
        },
        "small": {
          "type": "string",
          "format": "uri"
        },
        "regular": {
          "type": "string",
          "format": "uri"
        },
        "large": {
          "type": "string",
          "format": "uri"
        },
        "full": {
          "type": "string",
          "format": "uri"
        }
      }
    },
    "Source": {
      "type": "string",
      "enum": [
        "pexels",
        "unsplash",
        "pixabay",
        "wikimedia"
      ],
      "x-extensible-enum": true,
      "description": "Upstream library. Extensible: this list grows as libraries are indexed, so parse it as an open string."
    }
  }
}

Work with this as data

Every JSON Schema 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 schemas

4 MCP tools reach this
  • find_json_schemasBrowse and filter every JSON Schema in the catalog.
  • 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 JSON Schema
curl "https://apis.io/api/v1/json-schemas/pexafy-search-envelope"
All schemas
curl "https://apis.io/api/v1/json-schemas?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.