{ "openapi": "3.0.1", "info": { "title": "analytics-metrics.jwplayer.com", "version": "0.1", "x-jentic-source-url": "https://api.swaggerhub.com/apis/leeallanmorris/analytics-metrics.jwplayer.com/0.1", "contact": { "name": "API Support" }, "description": "analytics-metrics.jwplayer.com - OpenAPI Specification" }, "servers": [ { "url": "https://analytics-metrics.jwplayer.com/" } ], "paths": { "/v2/accounts/{accounttoken}/start_date/{start_date}/end_date/{end_date}": { "get": { "parameters": [ { "name": "accounttoken", "in": "path", "required": true, "schema": { "type": "string" } }, { "name": "start_date", "in": "path", "required": true, "schema": { "type": "string" } }, { "name": "page", "in": "query", "schema": { "type": "string" } }, { "name": "end_date", "in": "path", "required": true, "schema": { "type": "string" } }, { "name": "per_page", "in": "query", "schema": { "type": "string" } } ], "responses": { "200": { "description": "200 response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Accounts" } } } }, "400": { "description": "400 response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Error" } } } } }, "security": [ { "api_key": [] } ], "description": "GET /v2/accounts/{accounttoken}/start_date/{start_date}/end_date/{end_date}", "operationId": "get_v2_accounts_accounttoken_start_date_start_date_end_date_end_date", "tags": [ "v2" ] } }, "/v2/accounts/{accounttoken}/topvideos/start_date/{start_date}/end_date/{end_date}": { "get": { "parameters": [ { "name": "accounttoken", "in": "path", "required": true, "schema": { "type": "string" } }, { "name": "sort", "in": "query", "schema": { "type": "string" } }, { "name": "start_date", "in": "path", "required": true, "schema": { "type": "string" } }, { "name": "page", "in": "query", "schema": { "type": "string" } }, { "name": "end_date", "in": "path", "required": true, "schema": { "type": "string" } }, { "name": "per_page", "in": "query", "schema": { "type": "string" } } ], "responses": { "200": { "description": "200 response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/AccountTopVideos" } } } }, "400": { "description": "400 response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Error" } } } } }, "security": [ { "api_key": [] } ], "description": "GET /v2/accounts/{accounttoken}/topvideos/start_date/{start_date}/end_date/{end_date}", "operationId": "get_v2_accounts_accounttoken_topvideos_start_date_start_date_end_date_end_date", "tags": [ "v2" ] } } }, "components": { "schemas": { "Error": { "required": [ "errorMessage", "errorType" ], "type": "object", "properties": { "errorMessage": { "type": "string" }, "errorType": { "type": "string" } }, "description": "Accounts model class " }, "AccountMetrics": { "required": [ "completes", "date", "embeds", "plays", "uniques" ], "type": "object", "properties": { "completes": { "type": "integer" }, "date": { "type": "string" }, "embeds": { "type": "integer" }, "plays": { "type": "integer" }, "uniques": { "type": "integer" } } }, "AccountTopVideos": { "required": [ "accounttoken", "end_date", "start_date", "top_videos_count", "top_videos_metrics" ], "type": "object", "properties": { "accounttoken": { "type": "string" }, "end_date": { "type": "string" }, "start_date": { "type": "string" }, "top_videos_count": { "type": "integer" }, "top_videos_metrics": { "type": "array", "items": { "$ref": "#/components/schemas/AccountMetrics" } } }, "description": "Account Top Videos model class " }, "Accounts": { "required": [ "accounttoken", "end_date", "metrics", "start_date" ], "type": "object", "properties": { "accounttoken": { "type": "string" }, "end_date": { "type": "string" }, "last_page": { "type": "string" }, "metrics": { "type": "array", "items": { "$ref": "#/components/schemas/AccountMetrics" } }, "start_date": { "type": "string" } }, "description": "Accounts model class " } }, "securitySchemes": { "api_key": { "type": "apiKey", "name": "x-api-key", "in": "header" } } }, "tags": [ { "name": "v2" } ], "x-original-swagger-version": "2.0" }