Skip to content

Welcome to match-bot Documentation

For full API reference visit m.pluggedspace.org.


Table of Contents

  1. Requesting an API Key
  2. Authentication
  3. Telegram Bot Usage
  4. API Endpoints
  5. GET /api/
  6. POST /api/retrain/
  7. GET /api/dashboard/overview/
  8. GET /api/dashboard/confidence/
  9. GET /api/predictions/latest/
  10. GET /api/dashboard/compare_versions/
  11. GET /dashboard/predictions/
  12. Rate Limits
  13. Support

Requesting an API Key

To use the match-bot API:

  1. Apply Online
  2. Visit: https://m.pluggedspace.org/apply
  3. Fill out the application form with:

    • Name / Organization
    • Intended usage (project or integration)
    • Contact email
  4. Email Request

  5. Send to: access@pluggedspace.org
  6. Subject: API Access Request
  7. Body: Include your details and intended usage.

Once approved, you will receive: - API Key (unique to your account) - Usage limits - API documentation link


Authentication

All API requests must include your API key:

Authorization: Bearer YOUR_API_KEY

Telegram Bot Usage

Find the bot on Telegram: @matchoutcomebot

Commands: - /predict Arsenal vs Manchester United — Predicts the outcome of a specific match - /nextmatch — Shows the next scheduled match with prediction - /help — Lists all available commands


API Endpoints

GET /api/

Returns available endpoints and service info.

Example:

curl -H "Authorization: Bearer YOUR_API_KEY" https://api.m.pluggedspace.org/api/

POST /api/retrain/

Triggers a model retrain. Admin access only.

Example:

curl -X POST -H "Authorization: Bearer ADMIN_API_KEY" \
https://api.m.pluggedspace.org/api/retrain/

GET /api/dashboard/overview/

Returns aggregated prediction stats.

Example Response:

{
  "total_predictions": 125,
  "accuracy": 0.82,
  "average_confidence": 0.74
}

GET /api/dashboard/confidence/

Returns prediction confidence distribution.

Example Response:

{
  "high_confidence": 58,
  "medium_confidence": 47,
  "low_confidence": 20
}

GET /api/predictions/latest/

Returns the most recent match predictions.

Example:

curl -H "Authorization: Bearer YOUR_API_KEY" \
https://api.m.pluggedspace.org/api/predictions/latest/

Example Response:

[
  {
    "match_id": 987,
    "home_team": "Arsenal",
    "away_team": "Manchester United",
    "predicted_outcome": "Home Win",
    "predicted_goal_diff": 1.4,
    "confidence": 0.81
  }
]

GET /api/dashboard/compare_versions/

Compares prediction accuracy between model versions.

Example Response:

{
  "version_1": { "accuracy": 0.78 },
  "version_2": { "accuracy": 0.82 }
}

GET /dashboard/predictions/

Returns prediction data for dashboard visualization.

Example Response:

[
  {
    "match": "Liverpool vs Chelsea",
    "outcome": "Draw",
    "confidence": 0.66
  },
  {
    "match": "Barcelona vs Real Madrid",
    "outcome": "Away Win",
    "confidence": 0.72
  }
]

Rate Limits

Plan Requests/day Notes
Free 50 Basic access
Pro 5,000 Higher limits & priority
Enterprise Custom Dedicated support

Support