Quick Start Guide

Get up and running with the Akili SDK in minutes.


1. Create an Account

Before you can access the API, you need to create an account and generate an API key.

  1. Go to the Sign Up page.
  2. Create an organization account.
  3. Navigate to Settings > API Keys in your dashboard.
  4. Click Generate New Key and copy it to a safe place.

2. Install the SDK

Install the official Akili SDK for your project. We support Node.js, Python, and R.

Terminal
npm install @akili/sdk

3. Fetch Your First Dataset

Use the SDK to query weather data for a specific location.

import { AkiliClient } from '@akili/sdk';

const client = new AkiliClient({
  apiKey: 'YOUR_API_KEY'
});

async function getWeather() {
  const data = await client.weather.getHistorical({
    lat: -1.2921,
    lon: 36.8219, // Nairobi
    startDate: '2023-01-01',
    endDate: '2023-01-31',
    variables: ['temperature_2m', 'precipitation']
  });

  console.log(data);
}

getWeather();

Next Steps