Skip to main content
The Deno 2 Release Candidate is here
Learn more

OURA_API

Deno library to interact with v2 of the Oura API.

The library is also available for Node.js via a NPM package.


Installation/Importing

Deno

import { Oura, Webhook } from "https://deno.land/x/oura_api/mod.ts";

Node.js

npm install oura_api --save

Documentaion

Library and method documentation can be found at the Deno Land documentation page.

Included data scopes:

Endpoint/Scope Status
Oura Base
Daily Activity Implemented
Daily Readiness Implemented
Daily Sleep Implemented
Daily Spo2 Implemented
Heart Rate Implemented
Personal Info Implemented
Rest Mode Period Implemented
Ring Configuration Implemented
Session Implemented
Sleep Implemented
Sleep Time Implemented
Tag Implemented
Workout Implemented
Webhook Subscription
List subscription Implemented
Create subscription Implemented
Update subscription Implemented
Delete subscription Implemented
Renew subscription Implemented

Additional info concerning the webhook API

According to the API docs the webhooks enable you to receive near real-time Oura data updates and are the preferred way to receive the latest data from the Oura API.

I have not been able to fully verify this yet but the subscription workflow has been implemented.

Read the Webhook docs before atempting to use it.

Issues

Issues or questions concerning the library can be raised at the github repository page.

License

MIT