openapi: 3.0.3 info: title: Smithsonian Open Access content metrics API description: 'REST API providing programmatic access to millions of digitized Smithsonian collection objects, metadata, images, and 3D models across 19 museums and research centers. All content is released under CC0 (public domain). Supports search, content retrieval, and term browsing. An API key from api.data.gov is required for all requests. ' version: 1.0.0 contact: name: Smithsonian Open Access Team email: openaccess@si.edu license: name: CC0 1.0 Universal url: https://creativecommons.org/publicdomain/zero/1.0/ termsOfService: https://www.si.edu/termsofuse servers: - url: https://api.si.edu/openaccess description: Smithsonian Open Access API security: - ApiKeyAuth: [] tags: - name: metrics description: Statistics about CC0 objects and media paths: /api/v1.0/stats: get: operationId: getStats summary: Get CC0 statistics description: Fetches statistics for CC0 objects and media across all Smithsonian collections. tags: - metrics parameters: - $ref: '#/components/parameters/ApiKey' responses: '200': description: Statistics returned successfully. content: application/json: schema: $ref: '#/components/schemas/StatsResponse' '400': description: Bad request. content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' components: schemas: ErrorResponse: type: object properties: status: type: integer description: HTTP status code. example: 404 responseCode: type: integer description: API response code (0 = error). example: 0 response: type: object properties: error: type: string description: Error message describing the issue. example: 'not found: the resource you were acting on could not be found' timestamp: type: string description: Timestamp of the error. example: Fri Jun 07 09:23:09 EDT 2019 StatsResponse: type: object properties: status: type: integer example: 200 responseCode: type: integer example: 1 response: type: object description: Statistics about CC0 objects and media in the Smithsonian collections. additionalProperties: true parameters: ApiKey: name: api_key in: query required: true description: API key received from https://api.data.gov/signup/ schema: type: string securitySchemes: ApiKeyAuth: type: apiKey in: query name: api_key description: API key from https://api.data.gov/signup/ externalDocs: description: Open Access API Documentation url: https://edan.si.edu/openaccess/apidocs/