Pixela API

⭐ Beginner's Pick Tracking / X-Mashape-Key Intermediate HTTPS CORS
Check official documentation

Overview

Pixela is a fun and lightweight API for tracking habits, daily efforts, and personal goals using pixel-style activity graphs similar to GitHub contribution charts. You can record any numeric value (like pages read, minutes exercised, or commits made) and visualize it as a colorful graph. It requires no complex setup — just a username and token and you are ready to go.

💡

Beginner Tip

Your user token is set by you when creating your account via the API — it is not auto-generated. Choose a strong token since it is used as your authentication credential for all subsequent operations.

Available Data

track name and artist
album metadata
audio preview URLs
popularity score
genre classification

Example Response

JSON Response
{
  "name": "Bohemian Rhapsody",
  "artist": "Queen",
  "album": "A Night at the Opera",
  "duration_ms": 354000,
  "popularity": 92,
  "preview_url": "https://p.scdn.co/mp3-preview/..."
}

Field Reference

message Human-readable result message, e.g., "Success"
isSuccess Whether the operation completed successfully
quantity The numeric value recorded for the given date, returned as a string
date The date of the pixel record in yyyyMMdd format

Implementation Example

const url = "https://pixe.la/";
// Replace headers or query params with the values required by this API.
const response = await fetch(url, {
  headers: {
  "X-API-Key": "YOUR_API_KEY"
  }
});
if (!response.ok) throw new Error(`Request failed: ${response.status}`);
const data = await response.json();
console.log(data);

What Can You Build?

Note: These code examples are AI-generated and unverified. Always refer to the official API documentation for accurate usage.

Common Errors & Troubleshooting

401 Unauthorized Missing or incorrect X-USER-TOKEN header
Include your user token in the X-USER-TOKEN header; this is the token you set when creating your account via POST /v1/users
404 Graph not found The graph ID in the URL does not exist for your account
First create the graph with POST /v1/users/{username}/graphs before recording pixels
Invalid date format error The date field must be in yyyyMMdd format (e.g., 20240101), not ISO 8601
Format your date as an 8-digit string like "20240115" instead of "2024-01-15"

Matrix Score Breakdown

🌐 Reachability 30/30
⚡ Speed 5/20
🔒 Security 15/15
🛠 Developer XP 8/20
✓ Reliability 10/15

Partially tested on Apr 5, 2026

Technical Specifications

Auth X-Mashape-Key
HTTPS REQUIRED
CORS YES
Category Tracking
Difficulty Intermediate
Verified: 2026-04-04

Similar APIs

View All →