{"__v":2,"_id":"564d1afb4567342100ad96bd","category":{"__v":1,"_id":"564d1af94567342100ad96ae","pages":["564d1afb4567342100ad96bb","564d1afb4567342100ad96bc","564d1afb4567342100ad96bd","564d1afb4567342100ad96be","564d1afb4567342100ad96bf"],"project":"551375e1d04af219007ddc52","version":"564d1af84567342100ad96aa","sync":{"url":"","isSync":false},"reference":false,"createdAt":"2015-03-27T02:56:56.435Z","from_sync":false,"order":3,"slug":"data-retrieval","title":"Data Retrieval"},"project":"551375e1d04af219007ddc52","user":"551375a3d04af219007ddc50","version":{"__v":1,"_id":"564d1af84567342100ad96aa","project":"551375e1d04af219007ddc52","createdAt":"2015-11-19T00:42:32.705Z","releaseDate":"2015-11-19T00:42:32.705Z","categories":["564d1af94567342100ad96ab","564d1af94567342100ad96ac","564d1af94567342100ad96ad","564d1af94567342100ad96ae","564d1af94567342100ad96af","564d1af94567342100ad96b0","564d1af94567342100ad96b1","564d1af94567342100ad96b2"],"is_deprecated":false,"is_hidden":false,"is_beta":false,"is_stable":true,"codename":"","version_clean":"1.1.0","version":"1.1"},"updates":[],"next":{"pages":[],"description":""},"createdAt":"2015-03-27T02:58:23.501Z","link_external":false,"link_url":"","githubsync":"","sync_unique":"","hidden":false,"api":{"results":{"codes":[]},"settings":"","auth":"required","params":[],"url":""},"isReference":false,"order":2,"body":"To help you get started quickly with Human API, we provide a demo data set that is similar to what you will get from a user. This demo data is based on anonymous personal data that we’ve collected.\n\nWe provide a demo token that allows you to query the API directly from your application without having to onboard real users or authenticate real data sources. Any stream that is currently available can be queried and the data will change over time (just like it would with a real user).\n[block:api-header]\n{\n  \"type\": \"basic\",\n  \"title\": \"Accessing Demo Data\"\n}\n[/block]\n\nTo start playing with demo data just use the string `demo` as a token instead of a real access token like so:\n\nAs a query parameter:\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"https://api.humanapi.co/v1/human?access_token=demo\",\n      \"language\": \"text\"\n    }\n  ]\n}\n[/block]\nAs a Bearer Token:\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"-H \\\"Authorization: Bearer demo\\\" https://api.humanapi.co/v1/human\",\n      \"language\": \"text\"\n    }\n  ]\n}\n[/block]\n#Filtering Demo Data by Source\nIf you would like to see a payload returned from a specific source, you can utilize the `source` query parameter like so:\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"https://api.humanapi.co/v1/human/activities/summaries?access_token=demo&source=jawbone\",\n      \"language\": \"http\"\n    }\n  ]\n}\n[/block]\n\n[block:callout]\n{\n  \"type\": \"info\",\n  \"body\": \"We regularly add new data sources to our network so demo data may not be available for all sources.\"\n}\n[/block]\n\n[block:api-header]\n{\n  \"type\": \"basic\",\n  \"title\": \"Don't have a user account for a specific source?\"\n}\n[/block]\nAlthough you can use the demo token as described above to pull demo data from our servers, in order to see the end-to-end authentication flow for each source you must log in with user credentials. See below for how to do so with each source type:\n\n#Wellness Data\nYou can set up free accounts for many of the services yourself. Just download and sign up for one of the apps and connect it through the authentication flow.\n\n\n#Medical Data\nYou can use the demo credentials `democlinical:::at:::gmail.com` and `password` to see the authentication flow in action end-to-end.","excerpt":"Work with demo data to get started quickly","slug":"demo-data","type":"basic","title":"Demo Data"}

Demo Data

Work with demo data to get started quickly

To help you get started quickly with Human API, we provide a demo data set that is similar to what you will get from a user. This demo data is based on anonymous personal data that we’ve collected. We provide a demo token that allows you to query the API directly from your application without having to onboard real users or authenticate real data sources. Any stream that is currently available can be queried and the data will change over time (just like it would with a real user). [block:api-header] { "type": "basic", "title": "Accessing Demo Data" } [/block] To start playing with demo data just use the string `demo` as a token instead of a real access token like so: As a query parameter: [block:code] { "codes": [ { "code": "https://api.humanapi.co/v1/human?access_token=demo", "language": "text" } ] } [/block] As a Bearer Token: [block:code] { "codes": [ { "code": "-H \"Authorization: Bearer demo\" https://api.humanapi.co/v1/human", "language": "text" } ] } [/block] #Filtering Demo Data by Source If you would like to see a payload returned from a specific source, you can utilize the `source` query parameter like so: [block:code] { "codes": [ { "code": "https://api.humanapi.co/v1/human/activities/summaries?access_token=demo&source=jawbone", "language": "http" } ] } [/block] [block:callout] { "type": "info", "body": "We regularly add new data sources to our network so demo data may not be available for all sources." } [/block] [block:api-header] { "type": "basic", "title": "Don't have a user account for a specific source?" } [/block] Although you can use the demo token as described above to pull demo data from our servers, in order to see the end-to-end authentication flow for each source you must log in with user credentials. See below for how to do so with each source type: #Wellness Data You can set up free accounts for many of the services yourself. Just download and sign up for one of the apps and connect it through the authentication flow. #Medical Data You can use the demo credentials `democlinical@gmail.com` and `password` to see the authentication flow in action end-to-end.