# Get Event Photos GET https://photos.conventionphotography.com/event/ASDAR26 ## Get Event Photos Retrieves all photos from a specific event with pagination. ### Endpoint `GET https://photos.conventionphotography.com/event/ASDAR26` ### Description Fetches a paginated list of all photos from a specific convention event. This is the main endpoint for browsing an event's complete photo gallery. ### Path Parameters - **eventCode**: `ASDAR26` - The unique event identifier/code ### Query Parameters - **page**: `1` - Page number for pagination (starts at 1) - **limit**: `50` - Number of photos to return per page (max: 100) ### Headers - **Accept**: `*/*` - Accepts any response format - **Sec-Fetch-Mode**: `cors` - CORS-enabled request - **Sec-Fetch-Site**: `same-origin` - Same-origin request ### Response Format Returns JSON object with: ```json { "photos": [ { "id": "photo_id", "number": "1234", "thumbnail": "url", "fullSize": "url", "metadata": {} } ], "totalCount": 500, "currentPage": 1, "totalPages": 10 } ``` ### Pagination - Default: 50 photos per page - Use `page` parameter to navigate - Response includes pagination metadata ### Use Cases - Display event photo gallery - Implement photo browsing interface - Search photos within event - Generate photo listings ### Authentication No authentication required for public event access. Reference: https://docs.convention.photos/api-reference/cps-api/photos-conventionphotography-com/get-event-photos ## OpenAPI Specification ```yaml openapi: 3.1.0 info: title: Convention Photography System (CPS) version: 1.0.0 paths: /event/ASDAR26: get: operationId: get-event-photos summary: Get Event Photos description: >- ## Get Event Photos Retrieves all photos from a specific event with pagination. ### Endpoint `GET https://photos.conventionphotography.com/event/ASDAR26` ### Description Fetches a paginated list of all photos from a specific convention event. This is the main endpoint for browsing an event's complete photo gallery. ### Path Parameters - **eventCode**: `ASDAR26` - The unique event identifier/code ### Query Parameters - **page**: `1` - Page number for pagination (starts at 1) - **limit**: `50` - Number of photos to return per page (max: 100) ### Headers - **Accept**: `*/*` - Accepts any response format - **Sec-Fetch-Mode**: `cors` - CORS-enabled request - **Sec-Fetch-Site**: `same-origin` - Same-origin request ### Response Format Returns JSON object with: ```json { "photos": [ { "id": "photo_id", "number": "1234", "thumbnail": "url", "fullSize": "url", "metadata": {} } ], "totalCount": 500, "currentPage": 1, "totalPages": 10 } ``` ### Pagination - Default: 50 photos per page - Use `page` parameter to navigate - Response includes pagination metadata ### Use Cases - Display event photo gallery - Implement photo browsing interface - Search photos within event - Generate photo listings ### Authentication No authentication required for public event access. tags: - subpackage_photosConventionphotographyCom parameters: - name: page in: query required: false schema: type: integer - name: limit in: query required: false schema: type: integer - name: host in: header required: false schema: type: string - name: sec-ch-ua in: header required: false schema: type: string - name: Sec-Fetch-Dest in: header required: false schema: type: string - name: Sec-Fetch-Mode in: header required: false schema: type: string - name: Sec-Fetch-Site in: header required: false schema: type: string - name: sec-ch-ua-mobile in: header required: false schema: type: string - name: sec-ch-ua-platform in: header required: false schema: type: string responses: '200': description: Get Event Photos content: application/json: schema: $ref: >- #/components/schemas/photos.conventionphotography.com_getEventPhotos_Response_200 servers: - url: https://photos.conventionphotography.com - url: https://convention.photos components: schemas: photos.conventionphotography.com_getEventPhotos_Response_200: type: object properties: {} description: Empty response body title: photos.conventionphotography.com_getEventPhotos_Response_200 ``` ## SDK Code Examples ```python import requests url = "https://photos.conventionphotography.com/event/ASDAR26" querystring = {"page":"1","limit":"50"} headers = { "host": "photos.conventionphotography.com", "sec-ch-ua": "\"Not:A-Brand\";v=\"99\", \"Google Chrome\";v=\"145\", \"Chromium\";v=\"145\"", "Sec-Fetch-Dest": "empty", "Sec-Fetch-Mode": "cors", "Sec-Fetch-Site": "same-origin", "sec-ch-ua-mobile": "?0", "sec-ch-ua-platform": "\"Windows\"" } response = requests.get(url, headers=headers, params=querystring) print(response.json()) ``` ```javascript const url = 'https://photos.conventionphotography.com/event/ASDAR26?page=1&limit=50'; const options = { method: 'GET', headers: { host: 'photos.conventionphotography.com', 'sec-ch-ua': '"Not:A-Brand";v="99", "Google Chrome";v="145", "Chromium";v="145"', 'Sec-Fetch-Dest': 'empty', 'Sec-Fetch-Mode': 'cors', 'Sec-Fetch-Site': 'same-origin', 'sec-ch-ua-mobile': '?0', 'sec-ch-ua-platform': '"Windows"' } }; try { const response = await fetch(url, options); const data = await response.json(); console.log(data); } catch (error) { console.error(error); } ``` ```go package main import ( "fmt" "net/http" "io" ) func main() { url := "https://photos.conventionphotography.com/event/ASDAR26?page=1&limit=50" req, _ := http.NewRequest("GET", url, nil) req.Header.Add("host", "photos.conventionphotography.com") req.Header.Add("sec-ch-ua", "\"Not:A-Brand\";v=\"99\", \"Google Chrome\";v=\"145\", \"Chromium\";v=\"145\"") req.Header.Add("Sec-Fetch-Dest", "empty") req.Header.Add("Sec-Fetch-Mode", "cors") req.Header.Add("Sec-Fetch-Site", "same-origin") req.Header.Add("sec-ch-ua-mobile", "?0") req.Header.Add("sec-ch-ua-platform", "\"Windows\"") res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := io.ReadAll(res.Body) fmt.Println(res) fmt.Println(string(body)) } ``` ```ruby require 'uri' require 'net/http' url = URI("https://photos.conventionphotography.com/event/ASDAR26?page=1&limit=50") http = Net::HTTP.new(url.host, url.port) http.use_ssl = true request = Net::HTTP::Get.new(url) request["host"] = 'photos.conventionphotography.com' request["sec-ch-ua"] = '"Not:A-Brand";v="99", "Google Chrome";v="145", "Chromium";v="145"' request["Sec-Fetch-Dest"] = 'empty' request["Sec-Fetch-Mode"] = 'cors' request["Sec-Fetch-Site"] = 'same-origin' request["sec-ch-ua-mobile"] = '?0' request["sec-ch-ua-platform"] = '"Windows"' response = http.request(request) puts response.read_body ``` ```java import com.mashape.unirest.http.HttpResponse; import com.mashape.unirest.http.Unirest; HttpResponse response = Unirest.get("https://photos.conventionphotography.com/event/ASDAR26?page=1&limit=50") .header("host", "photos.conventionphotography.com") .header("sec-ch-ua", "\"Not:A-Brand\";v=\"99\", \"Google Chrome\";v=\"145\", \"Chromium\";v=\"145\"") .header("Sec-Fetch-Dest", "empty") .header("Sec-Fetch-Mode", "cors") .header("Sec-Fetch-Site", "same-origin") .header("sec-ch-ua-mobile", "?0") .header("sec-ch-ua-platform", "\"Windows\"") .asString(); ``` ```php request('GET', 'https://photos.conventionphotography.com/event/ASDAR26?page=1&limit=50', [ 'headers' => [ 'Sec-Fetch-Dest' => 'empty', 'Sec-Fetch-Mode' => 'cors', 'Sec-Fetch-Site' => 'same-origin', 'host' => 'photos.conventionphotography.com', 'sec-ch-ua' => '"Not:A-Brand";v="99", "Google Chrome";v="145", "Chromium";v="145"', 'sec-ch-ua-mobile' => '?0', 'sec-ch-ua-platform' => '"Windows"', ], ]); echo $response->getBody(); ``` ```csharp using RestSharp; var client = new RestClient("https://photos.conventionphotography.com/event/ASDAR26?page=1&limit=50"); var request = new RestRequest(Method.GET); request.AddHeader("host", "photos.conventionphotography.com"); request.AddHeader("sec-ch-ua", "\"Not:A-Brand\";v=\"99\", \"Google Chrome\";v=\"145\", \"Chromium\";v=\"145\""); request.AddHeader("Sec-Fetch-Dest", "empty"); request.AddHeader("Sec-Fetch-Mode", "cors"); request.AddHeader("Sec-Fetch-Site", "same-origin"); request.AddHeader("sec-ch-ua-mobile", "?0"); request.AddHeader("sec-ch-ua-platform", "\"Windows\""); IRestResponse response = client.Execute(request); ``` ```swift import Foundation let headers = [ "host": "photos.conventionphotography.com", "sec-ch-ua": "\"Not:A-Brand\";v=\"99\", \"Google Chrome\";v=\"145\", \"Chromium\";v=\"145\"", "Sec-Fetch-Dest": "empty", "Sec-Fetch-Mode": "cors", "Sec-Fetch-Site": "same-origin", "sec-ch-ua-mobile": "?0", "sec-ch-ua-platform": "\"Windows\"" ] let request = NSMutableURLRequest(url: NSURL(string: "https://photos.conventionphotography.com/event/ASDAR26?page=1&limit=50")! as URL, cachePolicy: .useProtocolCachePolicy, timeoutInterval: 10.0) request.httpMethod = "GET" request.allHTTPHeaderFields = headers let session = URLSession.shared let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in if (error != nil) { print(error as Any) } else { let httpResponse = response as? HTTPURLResponse print(httpResponse) } }) dataTask.resume() ```