Getting started overview

Getting started with WhatPulse involves installing the desktop client to collect data and configuring your account on the web dashboard to view statistics. For developers seeking programmatic access, WhatPulse offers an API for Premium users to retrieve personal pulsing data, enabling custom integrations and analytics WhatPulse Help Center.

The primary steps include:

  1. Client Installation: Download and install the WhatPulse desktop client for your operating system (Windows, macOS, Linux).
  2. Account Creation: Register a user account on the WhatPulse website.
  3. Client-Account Linking: Log in to your WhatPulse account from the desktop client to link the client and begin data collection.
  4. API Key Generation (Premium Users): For programmatic access, subscribe to a Premium account and generate an API key from your account settings.
  5. First API Request: Use the API key to authenticate and fetch your activity data.

This guide focuses on the streamlined process of setting up your account, obtaining necessary credentials, and executing a foundational API request.

Create an account and get keys

To begin using WhatPulse, you must first create an account and install the desktop client. Access to the WhatPulse API is restricted to Premium users WhatPulse Premium features, requiring an active subscription to generate an API key.

Step 1: Install the WhatPulse Desktop Client

The WhatPulse client is responsible for collecting your keyboard presses, mouse clicks, network usage, and application activity. Without the client running, no data can be sent to your account.

  1. Navigate to the official WhatPulse homepage.
  2. Locate the "Download" section or button.
  3. Select the appropriate installer for your operating system (Windows, macOS, or Linux).
  4. Download and run the installer. Follow the on-screen prompts to complete the installation.

Step 2: Create a WhatPulse Account

Your WhatPulse account stores all your statistics and provides access to the web dashboard.

  1. After installing the client, open it. You will be prompted to either log in or create a new account.
  2. Click on the option to "Create a new account" or visit the WhatPulse website directly and choose the registration option.
  3. Provide a unique username, a valid email address, and a strong password.
  4. Complete any necessary email verification steps.
  5. Once your account is created, log in to the desktop client with your new credentials. This links the client to your account and starts the data collection process.

Step 3: Upgrade to Premium (for API Access)

The WhatPulse API is a Premium feature. If you intend to use the API, you must subscribe to a Premium plan.

  1. Log in to your WhatPulse account on the WhatPulse website.
  2. Navigate to the Premium page or your account settings.
  3. Select a Premium subscription plan (monthly or yearly) and complete the payment process.

Step 4: Generate Your API Key

Once you have an active Premium subscription, you can generate your API key.

  1. Log in to your Premium WhatPulse account on the WhatPulse website.
  2. Go to your User Profile or Account Settings. Look for a section related to "API" or "Developer Settings."
  3. Click on "Generate API Key" or similar.
  4. Your API key will be displayed. This key acts as your authentication token for API requests. Treat it like a password and keep it confidential.

Your first request

With your WhatPulse client installed, account created, and API key obtained (for Premium users), you can now make your first programmatic request to retrieve your data. WhatPulse's API typically involves sending HTTP requests to specific endpoints and authenticating with your API key.

This example demonstrates how to fetch basic user statistics using a common HTTP client like curl. Before proceeding, ensure your WhatPulse client has been running for some time to accumulate data.

Prerequisites

  • An active WhatPulse Premium account with an API key.
  • A command-line interface with curl installed (or any HTTP client library in your preferred programming language).
  • Your WhatPulse username.

API Endpoint Structure

Based on WhatPulse documentation, API requests are typically structured around a base URL followed by the specific endpoint and your user ID or username WhatPulse API documentation. Authentication is usually handled via the API key as a query parameter or header.

A hypothetical endpoint to retrieve user statistics might look like:

GET https://whatpulse.org/api/v1/user/{username}/stats/?api_key={your_api_key}

Note: Replace {username} with your actual WhatPulse username and {your_api_key} with the key you generated. Consult the official WhatPulse API documentation for the exact endpoints and parameters.

Example: Fetching User Statistics with curl

Open your command-line interface and execute the following curl command. Remember to substitute the placeholder values.


curl -X GET \
  "https://whatpulse.org/api/v1/user/YOUR_USERNAME/stats/?api_key=YOUR_API_KEY"

Expected Output (JSON)

A successful request will return a JSON object containing your user statistics. The exact fields will depend on the API version and endpoint, but a typical response might include total pulses, total network usage, and uptime figures.


{
  "username": "YOUR_USERNAME",
  "total_pulses": 123456789,
  "keyboard_pulses": 98765432,
  "mouse_clicks": 24680135,
  "network_sent": 50000000000, // bytes
  "network_received": 100000000000, // bytes
  "uptime": 864000, // seconds
  "last_pulse": 1678886400 // Unix timestamp
}

If you receive a response similar to the above, you have successfully made your first authenticated request to the WhatPulse API.

Common next steps

After successfully retrieving your first set of WhatPulse data, several common next steps can enhance your experience or integration:

  1. Explore More API Endpoints: Review the WhatPulse API documentation for other available endpoints. You might find endpoints for team statistics, detailed per-application usage, or historical data. Understanding the full API surface allows you to extract more granular and specific insights.

  2. Integrate into Applications: Begin integrating the API into a personal project or application. This could be a custom dashboard, a script that sends daily summaries to a messaging platform, or a tool that visualizes your activity over time. Use an HTTP client library in your preferred programming language (e.g., Python's requests, Node.js's axios, Java's HttpClient) for robust integration.

  3. Data Visualization: Utilize data visualization libraries or tools to represent your pulsing data graphically. Libraries like D3.js, Chart.js, or tools like Grafana can turn raw API data into insightful charts and graphs, helping you identify trends or patterns in your activity.

  4. Automate Data Collection: If you're building an application, consider setting up automated scripts or cron jobs to regularly fetch data from the WhatPulse API. This ensures your application always has up-to-date statistics without manual intervention.

  5. Implement Error Handling: As you build out your integration, implement robust error handling. This includes checking HTTP status codes (e.g., 401 for unauthorized, 404 for not found, 5xx for server errors) and parsing error messages returned by the API to provide meaningful feedback or retry mechanisms. For general API error handling strategies, resources like Google Cloud's API Design Guide on Errors offer valuable principles.

  6. Secure Your API Key: Ensure your API key is stored and used securely. Avoid hardcoding it directly into client-side code or public repositories. Use environment variables, secure configuration files, or a secrets management service for server-side applications. Best practices for API key security are detailed in resources like Google Maps API Security Best Practices, which apply broadly to various API integrations.

  7. Join the Community: Engage with the WhatPulse community forums or social channels. This can be a source of inspiration, help for specific challenges, and updates on API changes or new features.

Troubleshooting the first call

Encountering issues during your first API call is common. Here's a quick reference for troubleshooting and resolving potential problems:

Step What to Do Where to Check
1. Verify API Key Double-check that your API key is correct and has not expired. Ensure there are no leading/trailing spaces or typos. WhatPulse website > Account Settings > API Key section
2. Confirm Premium Status API access requires a Premium account. Ensure your subscription is active. WhatPulse website > Account Settings > Premium status
3. Check Username/ID Verify the username or user ID in your API request matches your WhatPulse account username exactly (case-sensitive if applicable). Your WhatPulse profile on the website
4. Endpoint Accuracy Ensure the API endpoint URL is correct and matches the official documentation, including any version numbers (e.g., /v1/). WhatPulse API documentation
5. Internet Connection Confirm your device has an active internet connection and no firewall or proxy is blocking the request. Network settings, try accessing whatpulse.org in a browser
6. Client Data Pulsing Ensure your WhatPulse desktop client is running and actively sending (pulsing) data to your account. API will only return data that has been collected. WhatPulse desktop client application status, web dashboard
7. Review HTTP Status Codes Examine the HTTP status code returned by the API (e.g., 400 Bad Request, 401 Unauthorized, 403 Forbidden, 404 Not Found, 500 Internal Server Error). Each code indicates a specific type of issue. curl output or your programming language's HTTP client error logs
8. Check Error Messages The API often returns descriptive error messages in the response body. Read these messages carefully for clues. API response body (JSON or plain text)
9. Rate Limiting If you've made many requests in a short period, you might be rate-limited. Wait a few minutes and try again. API response headers (look for X-RateLimit-*), WhatPulse API documentation
10. Consult Documentation/Support If issues persist, consult the comprehensive WhatPulse Help Center or their community forums for specific guidance. WhatPulse Help Center, community forums