API Documentation

Base URL

http://divergence.nyarchlinux.moe/api

Endpoints

Get Current Divergence

GET /divergence

Response

{
    "divergence": "1.938454"
}

Get News Articles

GET /news

Query Parameters

Parameter Type Default Description
page integer 1 Page number for pagination
per_page integer 10 Number of articles per page
min_impact float None Minimum impact value to filter by
max_impact float None Maximum impact value to filter by

Response

{
    "articles": [
        {
            "title": "Article Title",
            "divergence": "1.938454",
            "impact": 0.123,
            "description": "Article description",
            "independent_divergence": 0.456,
            "field": "ALPHA"
        }
    ],
    "pagination": {
        "current_page": 1,
        "per_page": 10,
        "total_count": 100,
        "total_pages": 10
    },
    "filters": {
        "min_impact": 0.01,
        "max_impact": null
    }
}

Get Divergence Plot

GET /plot

Response

Returns an HTML string containing the interactive Plotly plot.