API Documentation

Comprehensive API reference for HackerStats platform

Endpoints

GET/POST/api/graph

Retrieve and query graph data from Neo4j database

Examples

Get all nodes
GET /api/graph?nodeType=all&limit=100
Get hackers only
GET /api/graph?nodeType=hackers&limit=50
Custom Cypher query
POST /api/graph
{
  "query": "MATCH (h:Hacker)-[:CONTRIBUTED_TO]->(d:Devpost) RETURN h, d LIMIT 10"
}

Response Format

{
  "nodes": [
    {
      "id": "node1",
      "label": "Hacker",
      "properties": {
        "name": "John Doe",
        "username": "johndoe"
      }
    }
  ],
  "links": [
    {
      "source": "node1",
      "target": "node2",
      "type": "CONTRIBUTED_TO"
    }
  ],
  "totalNodes": 100,
  "totalLinks": 150
}

Quick Start

Get started with the HackerStats API in just a few steps:

1

Choose Endpoint

Select the appropriate API endpoint for your use case

2

Make Request

Send HTTP requests with proper parameters and headers

3

Process Data

Handle the JSON response and integrate with your application