{"openapi":"3.1.0","info":{"title":"Public API","version":"1","description":"Read-only JSON for photos, collections, print prices, shop products, and videos. No API key. /api/public is the same v1 API as /api/public/v1."},"servers":[{"url":"https://haydengarfield.photography/api/public/v1"},{"url":"https://haydengarfield.photography/api/public","description":"Unversioned alias of v1"}],"paths":{"/search":{"get":{"operationId":"search","summary":"Search","description":"Find published photos, shop products, or videos. Photos are the catalog. Fine-art prints are photos with for_sale set. Products are external links and print-on-demand goods.","parameters":[{"name":"q","in":"query","required":true,"description":"Search text. Required. * lists without a text filter.","schema":{"type":"string"}},{"name":"type","in":"query","required":false,"description":"photos (default), products, or videos.","schema":{"type":"string"}},{"name":"limit","in":"query","required":false,"description":"Hits per page. Default 10, maximum 20. Out-of-range values are clamped.","schema":{"type":"integer"}},{"name":"page","in":"query","required":false,"description":"Page number, starting at 1. Maximum 20.","schema":{"type":"integer"}},{"name":"sort","in":"query","required":false,"description":"Photos only. relevance (default), newest, oldest, or title. relevance is featured photos first, then newest.","schema":{"type":"string"}},{"name":"photo_type","in":"query","required":false,"description":"Photos only. Type slug, such as landscape.","schema":{"type":"string"}},{"name":"tag","in":"query","required":false,"description":"Photos only. Tag slug.","schema":{"type":"string"}},{"name":"collection","in":"query","required":false,"description":"Photos only. Collection slug.","schema":{"type":"string"}},{"name":"subcategory","in":"query","required":false,"description":"Photos only. Requires collection.","schema":{"type":"string"}},{"name":"city","in":"query","required":false,"description":"Photos only. City name.","schema":{"type":"string"}},{"name":"state","in":"query","required":false,"description":"Photos only. State or region.","schema":{"type":"string"}},{"name":"country","in":"query","required":false,"description":"Photos only. Country.","schema":{"type":"string"}},{"name":"for_sale","in":"query","required":false,"description":"Photos only. true keeps prints that are offered for sale, including ones not currently featured on the shop page.","schema":{"type":"boolean"}},{"name":"featured","in":"query","required":false,"description":"Photos only.","schema":{"type":"boolean"}},{"name":"category","in":"query","required":false,"description":"Products only. prints, merch, misc, or books.","schema":{"type":"string"}}],"responses":{"200":{"description":"Success. Body is { success: true, data }.","content":{"application/json":{"example":{"success":true,"data":{"query":"coast","type":"photos","limit":5,"page":1,"found":12,"has_more":true,"sort":"relevance","filters":{"photo_type":null,"tag":null,"collection":null,"subcategory":null,"city":null,"state":null,"country":null,"for_sale":true,"featured":null},"hits":[{"type":"photos","id":"photo_123","slug":"north-coast","title":"North Coast","image_url":"https://example.com/media/photos/north-coast.webp","width":2400,"height":1600,"location":{"name":null,"city":"Mendocino","state":"California","country":"USA","label":"Mendocino, California · USA"},"types":[{"slug":"landscape","name":"Landscape"}],"tags":[{"slug":"coast","name":"Coast","category":"place"}],"collection":{"id":"col_1","slug":"california","name":"California"},"for_sale":true,"sold_out":false,"from_price_usd":75,"featured":true,"urls":{"detail":"https://example.com/l/north-coast","api":"https://example.com/api/public/v1/photos/north-coast"}}]}}}}},"400":{"description":"Bad request."},"404":{"description":"Not found."},"429":{"description":"Rate limit exceeded."}}}},"/collections":{"get":{"operationId":"collections","summary":"Collections","description":"Photo collections, with a published photo count and a cover when one is set.","parameters":[{"name":"sort","in":"query","required":false,"description":"newest (default), name, or photo_count.","schema":{"type":"string"}},{"name":"limit","in":"query","required":false,"description":"Default 10, maximum 20.","schema":{"type":"integer"}},{"name":"page","in":"query","required":false,"description":"Starting at 1. Maximum 20.","schema":{"type":"integer"}}],"responses":{"200":{"description":"Success. Body is { success: true, data }.","content":{"application/json":{"example":{"success":true,"data":{"sort":"photo_count","limit":10,"page":1,"found":4,"has_more":false,"hits":[{"id":"col_1","slug":"california","name":"California","description":null,"photo_count":18,"cover_url":"https://example.com/media/photos/cover.webp","urls":{"html":"https://example.com/collections/california","api":"https://example.com/api/public/v1/collections/california"}}],"urls":{"html":"https://example.com/collections"}}}}}},"400":{"description":"Bad request."},"404":{"description":"Not found."},"429":{"description":"Rate limit exceeded."}}}},"/collections/{slug}":{"get":{"operationId":"collection","summary":"Collection","description":"One collection, its subcategories, and a page of photos. Photo hits match search.","parameters":[{"name":"slug","in":"path","required":true,"description":"Collection slug.","schema":{"type":"string"}},{"name":"subcategory","in":"query","required":false,"description":"Subcategory slug. Narrows the photo page.","schema":{"type":"string"}},{"name":"limit","in":"query","required":false,"description":"Photos per page. Default 10, maximum 20.","schema":{"type":"integer"}},{"name":"page","in":"query","required":false,"description":"Starting at 1. Maximum 20.","schema":{"type":"integer"}}],"responses":{"200":{"description":"Success. Body is { success: true, data }.","content":{"application/json":{"example":{"success":true,"data":{"id":"col_1","slug":"california","name":"California","description":null,"photo_count":18,"cover_url":null,"subcategories":[{"id":"sub_1","slug":"coast","name":"Coast","photo_count":6}],"subcategory":null,"limit":5,"page":1,"found":18,"has_more":true,"photos":[{"type":"photos","id":"photo_123","slug":"north-coast","title":"North Coast","image_url":"https://example.com/media/photos/north-coast.webp","width":2400,"height":1600,"location":{"name":null,"city":"Mendocino","state":"California","country":"USA","label":"Mendocino, California · USA"},"types":[{"slug":"landscape","name":"Landscape"}],"tags":[{"slug":"coast","name":"Coast","category":"place"}],"collection":{"id":"col_1","slug":"california","name":"California"},"for_sale":true,"sold_out":false,"from_price_usd":75,"featured":true,"urls":{"detail":"https://example.com/l/north-coast","api":"https://example.com/api/public/v1/photos/north-coast"}}],"urls":{"html":"https://example.com/collections/california","api":"https://example.com/api/public/v1/collections/california"}}}}}},"400":{"description":"Bad request."},"404":{"description":"Not found."},"429":{"description":"Rate limit exceeded."}}}},"/photos/{id}":{"get":{"operationId":"photo","summary":"Photo","description":"One published photo: images, location, tags, edition, and the starting print price when it is for sale. Pass an id or a slug. Exact GPS coordinates are left out.","parameters":[{"name":"id","in":"path","required":true,"description":"Photo id or slug.","schema":{"type":"string"}}],"responses":{"200":{"description":"Success. Body is { success: true, data }.","content":{"application/json":{"example":{"success":true,"data":{"type":"photos","id":"photo_123","slug":"north-coast","title":"North Coast","image_url":"https://example.com/media/photos/north-coast.webp","width":2400,"height":1600,"location":{"name":null,"city":"Mendocino","state":"California","country":"USA","label":"Mendocino, California · USA"},"types":[{"slug":"landscape","name":"Landscape"}],"tags":[{"slug":"coast","name":"Coast","category":"place"}],"collection":{"id":"col_1","slug":"california","name":"California"},"for_sale":true,"sold_out":false,"from_price_usd":75,"featured":true,"urls":{"detail":"https://example.com/l/north-coast","api":"https://example.com/api/public/v1/photos/north-coast","pricing":"https://example.com/api/public/v1/pricing?photo=north-coast"},"alt":"Fog over a rocky shore","description":"Morning fog along the Mendocino coast.","images":[{"id":"photo_123","url":"https://example.com/media/photos/north-coast.webp","width":2400,"height":1600,"alt":"Fog over a rocky shore"}],"edition":{"type":"open","total":null,"sold":0,"remaining":null,"sold_out":false,"note":null},"camera":{"camera":"Hasselblad","lens":null,"iso":100,"shutter":"1/125","aperture":"f/8","focal_length":"80mm","taken_at":null},"created_at":"2024-06-01T00:00:00.000Z"}}}}},"400":{"description":"Bad request."},"404":{"description":"Not found."},"429":{"description":"Rate limit exceeded."}}}},"/pricing":{"get":{"operationId":"pricing","summary":"Print pricing","description":"Sizes, materials, the optional frame, and USD prices for one photo. Variant prices already include the size, material, and any photo premium. Add the frame delta when the print is framed. Shipping is quoted at checkout.","parameters":[{"name":"photo","in":"query","required":true,"description":"Photo id or slug.","schema":{"type":"string"}}],"responses":{"200":{"description":"Success. Body is { success: true, data }.","content":{"application/json":{"example":{"success":true,"data":{"photo":{"id":"photo_123","slug":"north-coast","title":"North Coast"},"currency":"USD","for_sale":true,"sold_out":false,"edition":{"type":"open","total":null,"sold":0,"remaining":null,"sold_out":false,"note":null},"from_price_usd":75,"sizes":[{"id":"size_1","label":"8×10","width_in":8,"height_in":10,"base_price_usd":75}],"materials":[{"id":"mat_1","label":"Matte","description":null,"price_delta_usd":0}],"frame":null,"variants":[{"size_id":"size_1","size_label":"8×10","material_id":"mat_1","material_label":"Matte","price_usd":75}],"variants_truncated":false,"shipping":{"quoted_at":"checkout","note":"Print shipping is calculated at checkout. Variant prices are the print itself."}}}}}},"400":{"description":"Bad request."},"404":{"description":"Not found."},"429":{"description":"Rate limit exceeded."}}}},"/products":{"get":{"operationId":"products","summary":"Products","description":"Active shop products other than fine-art photo prints. kind is external_link or printify. Open a photo with for_sale=true when you want a print of a photograph.","parameters":[{"name":"category","in":"query","required":false,"description":"prints, merch, misc, or books.","schema":{"type":"string"}},{"name":"limit","in":"query","required":false,"description":"Default 10, maximum 20.","schema":{"type":"integer"}},{"name":"page","in":"query","required":false,"description":"Starting at 1. Maximum 20.","schema":{"type":"integer"}}],"responses":{"200":{"description":"Success. Body is { success: true, data }.","content":{"application/json":{"example":{"success":true,"data":{"category":"merch","limit":10,"page":1,"found":1,"has_more":false,"hits":[{"id":"prod_1","slug":"field-notes","title":"Field Notes","kind":"printify","category":"merch","image_url":"https://example.com/notes.jpg","from_price_usd":18,"urls":{"html":"https://example.com/l/field-notes","api":"https://example.com/api/public/v1/products/field-notes"}}],"urls":{"html":"https://example.com/shop"}}}}}},"400":{"description":"Bad request."},"404":{"description":"Not found."},"429":{"description":"Rate limit exceeded."}}}},"/products/{slug}":{"get":{"operationId":"product","summary":"Product","description":"One shop product. Print-on-demand goods include variants and image_urls. External links include external_url.","parameters":[{"name":"slug","in":"path","required":true,"description":"Product slug or id.","schema":{"type":"string"}}],"responses":{"200":{"description":"Success. Body is { success: true, data }.","content":{"application/json":{"example":{"success":true,"data":{"id":"prod_1","slug":"field-notes","kind":"printify","category":"merch","title":"Field Notes","label":null,"description":null,"image_url":"https://example.com/notes.jpg","image_urls":["https://example.com/notes.jpg"],"from_price_usd":18,"external_url":null,"cta_label":null,"variants":[{"id":"401","title":"One size","price_usd":18}],"urls":{"html":"https://example.com/l/field-notes","api":"https://example.com/api/public/v1/products/field-notes"}}}}}},"400":{"description":"Bad request."},"404":{"description":"Not found."},"429":{"description":"Rate limit exceeded."}}}},"/videos":{"get":{"operationId":"videos","summary":"Videos","description":"Published videos. Featured videos come first.","parameters":[{"name":"limit","in":"query","required":false,"description":"Default 10, maximum 20.","schema":{"type":"integer"}},{"name":"page","in":"query","required":false,"description":"Starting at 1. Maximum 20.","schema":{"type":"integer"}}],"responses":{"200":{"description":"Success. Body is { success: true, data }.","content":{"application/json":{"example":{"success":true,"data":{"limit":5,"page":1,"found":1,"has_more":false,"hits":[{"id":"vid_1","slug":"studio-visit","title":"Studio visit","thumbnail_url":"https://i.ytimg.com/vi/abcdefghijk/maxresdefault.jpg","featured":true,"urls":{"detail":"https://example.com/videos/studio-visit","api":"https://example.com/api/public/v1/videos/studio-visit","watch":"https://www.youtube.com/watch?v=abcdefghijk"}}],"urls":{"html":"https://example.com/videos"}}}}}},"400":{"description":"Bad request."},"404":{"description":"Not found."},"429":{"description":"Rate limit exceeded."}}}},"/videos/{slug}":{"get":{"operationId":"video","summary":"Video","description":"One published video, by slug or id, with its description and watch URL.","parameters":[{"name":"slug","in":"path","required":true,"description":"Video slug or id.","schema":{"type":"string"}}],"responses":{"200":{"description":"Success. Body is { success: true, data }.","content":{"application/json":{"example":{"success":true,"data":{"id":"vid_1","slug":"studio-visit","title":"Studio visit","description":null,"thumbnail_url":"https://i.ytimg.com/vi/abcdefghijk/maxresdefault.jpg","featured":true,"youtube_video_id":"abcdefghijk","watch_url":"https://www.youtube.com/watch?v=abcdefghijk","urls":{"detail":"https://example.com/videos/studio-visit","api":"https://example.com/api/public/v1/videos/studio-visit","watch":"https://www.youtube.com/watch?v=abcdefghijk"}}}}}},"400":{"description":"Bad request."},"404":{"description":"Not found."},"429":{"description":"Rate limit exceeded."}}}},"/studio":{"get":{"operationId":"studio","summary":"Studio","description":"Public studio profile: name, tagline, bio, and the contact links already shown on the site. Account settings are left out.","parameters":[],"responses":{"200":{"description":"Success. Body is { success: true, data }.","content":{"application/json":{"example":{"success":true,"data":{"name":"Portfolio","tagline":null,"bio":null,"contact_email":null,"instagram":null,"twitter":null,"urls":{"home":"https://example.com/","search":"https://example.com/search","shop":"https://example.com/shop","collections":"https://example.com/collections","videos":"https://example.com/videos","public_api":"https://example.com/public-api"}}}}}},"400":{"description":"Bad request."},"404":{"description":"Not found."},"429":{"description":"Rate limit exceeded."}}}}},"x-rate-limit":{"tier":"free","limit_per_minute":60}}