{"__v":5,"_id":"55fc9b7f3c21291900e7e0f7","category":{"__v":47,"_id":"55fc9bad4c80910d00b9bece","pages":["55fca04b7b4f510d00fbe4fc","55fca0933c21291900e7e112","55fca1184ee5911900d357fe","55fca18af95c5b0d0068fdf5","55fca2227b4f510d00fbe4ff","55fca28434ae7c0d00ab8e9c","55fca43d4c80910d00b9bed2","55fca4f72e55bb0d00a555e0","55fca5562e55bb0d00a555e3","55fca5c74c80910d00b9bed4","55fca64e4c80910d00b9bed6","55fca6b04c80910d00b9bed8","55fca80e3734100d00a9880b","55fca896b7e08d0d00e956be","55fca9013734100d00a9880d","55fca9c19bb5cc0d0007877c","55fcaa5afc496a0d00c68e2a","55fcaa78a6d22f0d008596b4","55fcab17dd8ab00d00305d5a","55fcab8efc496a0d00c68e30","55fcabf0fc496a0d00c68e31","55fcac18a6d22f0d008596b6","55fcac63fc496a0d00c68e32","55fcac88dd8ab00d00305d5d","55fcad6d6b17950d000750e0","55fcad9d342d1e0d000b21c2","55fcadd76b17950d000750e2","55fcadff51dbf70d00c61b42","55fcae43b652110d00758add","55fcae706b17950d000750e3","55fcaef3b652110d00758ae4","55fcaf55342d1e0d000b21c3","55fcaf92b652110d00758ae6","55fcb01156d6990d00a6ca20","55fcb0cba1dbbe0d001a1397","55fcb0e851dbf70d00c61b43","55fcb5a156d6990d00a6ca28","55fcb69cb652110d00758aec","55fcb6d1342d1e0d000b21ca","55fcb6e956d6990d00a6ca2a","55fcb724342d1e0d000b21cc","56290d680f90450d0061b0e1","56290dc00f90450d0061b0e4","5629115d2c0fd9190067da36","562911bc3398070d002f30e8","56291287e3b5f5230084fd92","562916310f90450d0061b0fa"],"project":"5553d36165e8260d0024419a","version":"55fc9b793c21291900e7e0d7","sync":{"url":"","isSync":false},"reference":false,"createdAt":"2015-09-18T23:18:05.069Z","from_sync":false,"order":13,"slug":"apimetrics-api","title":"APImetrics API"},"parentDoc":null,"project":"5553d36165e8260d0024419a","user":"5553d33065e8260d00244199","version":{"__v":12,"_id":"55fc9b793c21291900e7e0d7","project":"5553d36165e8260d0024419a","createdAt":"2015-09-18T23:17:13.545Z","releaseDate":"2015-09-18T23:17:13.545Z","categories":["55fc9b7a3c21291900e7e0d8","55fc9b7a3c21291900e7e0d9","55fc9b7a3c21291900e7e0da","55fc9b7a3c21291900e7e0db","55fc9b7a3c21291900e7e0dc","55fc9b7a3c21291900e7e0dd","55fc9b7a3c21291900e7e0de","55fc9b7a3c21291900e7e0df","55fc9b7a3c21291900e7e0e0","55fc9b7a3c21291900e7e0e1","55fc9b7a3c21291900e7e0e2","55fc9b7a3c21291900e7e0e3","55fc9bad4c80910d00b9bece","56394a0c3539050d00082122","56394a2f68b11f0d0048c9ff","56394a462fc5520d001a4db3","56394a4c2fc5520d001a4db4","56394a5b049e420d00476b5c","56394a6a2fc5520d001a4db5","56394f791593e4190073a44b","567b3adfb56bac0d0019d8d9","569d590e5a2b060d008741eb","569ea93dffccd10d00a05c7f"],"is_deprecated":false,"is_hidden":false,"is_beta":false,"is_stable":true,"codename":"","version_clean":"2.0.0","version":"2"},"updates":[],"next":{"pages":[],"description":""},"createdAt":"2015-05-15T02:44:43.556Z","link_external":false,"link_url":"","githubsync":"","sync_unique":"","hidden":false,"api":{"results":{"codes":[]},"settings":"","auth":"required","params":[],"url":""},"isReference":false,"order":0,"body":"We are rolling out our v2 API! This API will allow you to control any aspect of your API monitoring by API instead of using our website.\n\nWe also have [sample Python code available](https://github.com/APImetrics/APImetrics-Python-Client) complete with a command-line tool.\n[block:callout]\n{\n  \"type\": \"danger\",\n  \"title\": \"API Access Depends on Account Type\",\n  \"body\": \"Not all features are available to all users.\"\n}\n[/block]\n\n[block:api-header]\n{\n  \"type\": \"basic\",\n  \"title\": \"API Key\"\n}\n[/block]\nTo use the APImetrics API Services you need to create an API key. Access your User Profile and click 'Generate API Key'.\n\nThis key can then be used for all the API calls, either as part of the HTTP headers, or in the query parameters:\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"GET /path HTTP/1.1\\nAuthorization: Bearer API_KEY\",\n      \"language\": \"http\",\n      \"name\": \"HTTP Header\"\n    },\n    {\n      \"code\": \"GET /path?_token=API_KEY&parameter=foo HTTP/1.1\",\n      \"language\": \"http\",\n      \"name\": \"Query Parameter\"\n    }\n  ]\n}\n[/block]\nRemember to replace API_KEY with your API Key.\n\nNote that when developing using our API, you can also specify a query parameter \"debug=1\" which will enable pretty-printing of the JSON results.","excerpt":"","slug":"exporting-data","type":"basic","title":"Using our API: Authentication"}

Using our API: Authentication


We are rolling out our v2 API! This API will allow you to control any aspect of your API monitoring by API instead of using our website. We also have [sample Python code available](https://github.com/APImetrics/APImetrics-Python-Client) complete with a command-line tool. [block:callout] { "type": "danger", "title": "API Access Depends on Account Type", "body": "Not all features are available to all users." } [/block] [block:api-header] { "type": "basic", "title": "API Key" } [/block] To use the APImetrics API Services you need to create an API key. Access your User Profile and click 'Generate API Key'. This key can then be used for all the API calls, either as part of the HTTP headers, or in the query parameters: [block:code] { "codes": [ { "code": "GET /path HTTP/1.1\nAuthorization: Bearer API_KEY", "language": "http", "name": "HTTP Header" }, { "code": "GET /path?_token=API_KEY&parameter=foo HTTP/1.1", "language": "http", "name": "Query Parameter" } ] } [/block] Remember to replace API_KEY with your API Key. Note that when developing using our API, you can also specify a query parameter "debug=1" which will enable pretty-printing of the JSON results.