
Product
Reachability for Ruby Now in Beta
Reachability analysis for Ruby is now in beta, helping teams identify which vulnerabilities are truly exploitable in their applications.
Library to interact with v2 of the Oura API.
Available as ESM module for Deno, Bun and Node.js through JSR Package and as CommonJS module for Node.js via a NPM package. Deno users can also use the deno.land/x package.
# For Deno
deno add @pinta365/oura-api
# For Bun
bunx jsr add @pinta365/oura-api
# For Node.js
npx jsr add @pinta365/oura-api
import { Oura, DateFormat } from "@pinta365/oura-api";
// Replace 'YOUR_ACCESS_TOKEN' with your actual access token
const accessToken = "YOUR_ACCESS_TOKEN";
const ouraClient = new Oura(accessToken);
const startDate: DateFormat = "2023-01-01";
const endDate: DateFormat = "2023-01-10";
try {
const dailyActivityData = await ouraClient.getDailyActivityDocuments(startDate, endDate);
console.log(`Daily Activity Data: ${JSON.stringify(dailyActivityData, null, 4)}`);
} catch (error) {
console.error(`Error fetching daily activity data: ${error}`);
}
Install package.
npm install oura_api --save
Code example.
const Api = require("oura_api");
// Replace 'YOUR_ACCESS_TOKEN' with your actual access token
const accessToken = "YOUR_ACCESS_TOKEN";
const ouraClient = new Api.Oura(accessToken);
const startDate = "2023-01-01";
const endDate = "2023-01-10";
const example = async () => {
try {
const dailyActivityData = await ouraClient.getDailyActivityDocuments(startDate, endDate);
console.log(`Daily Activity Data: ${JSON.stringify(dailyActivityData, null, 4)}`);
} catch (error) {
console.error(`Error fetching daily activity data: ${error}`);
}
};
example();
Library documentation can be found at the JSR documentation page.
| Endpoint/Scope | Status |
|---|---|
| Oura Base | |
| Daily Activity | Implemented |
| Daily Readiness | Implemented |
| Daily Resilience | Implemented |
| Daily Sleep | Implemented |
| Daily Spo2 | Implemented |
| Daily Stress | Implemented |
| Enhanced Tag | Implemented |
| Heart Rate | Implemented |
| Personal Info | Implemented |
| Rest Mode Period | Implemented |
| Ring Configuration | Implemented |
| Session | Implemented |
| Sleep | Implemented |
| Sleep Time | Implemented |
| Tag | DEPRICATED |
| Workout | Implemented |
| Webhook Subscription | |
| List subscription | Implemented |
| Create subscription | Implemented |
| Update subscription | Implemented |
| Delete subscription | Implemented |
| Renew subscription | Implemented |
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 or questions concerning the library can be raised at the github repository page.
This project is licensed under the MIT License - see the LICENSE file for details.
FAQs
ĹŚURA Cloud API. Interact with v2 of the Oura API using Personal Access Tokens, OAuth2, or the Sandbox environment. Includes support for the Webhook subscriptions.
We found that oura_api demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Product
Reachability analysis for Ruby is now in beta, helping teams identify which vulnerabilities are truly exploitable in their applications.

Research
/Security News
Malicious npm packages use Adspect cloaking and fake CAPTCHAs to fingerprint visitors and redirect victims to crypto-themed scam sites.

Security News
Recent coverage mislabels the latest TEA protocol spam as a worm. Here’s what’s actually happening.