API & SDK Reference

Integrate the Aevum Encyclopedia's 2.4M+ verified articles, real-time knowledge graphs, and semantic search directly into your applications. The API v2 provides RESTful access with full type safety and SDK support.

ℹ️
Base URL: https://api.aevum.com/v2
All requests require HTTPS. TLS 1.3 is recommended.

Authentication

Access to the Aevum API is secured via API keys. Include your key in the Authorization header using the Bearer scheme.

HTTP Header
Authorization: Bearer <YOUR_API_KEY>

Generate keys from the Developer Dashboard. Keys are scoped by environment and can be rotated without downtime.

Articles API

Retrieve structured content, metadata, and revision history for encyclopedia entries.

GET /articles/{id}

Fetch a single article by its unique ID or canonical slug.

Parameter Type Description
id Required string Article UUID or URL-friendly slug.
fields string Comma-separated list of fields to return (e.g., title,body,references).
format enum Response format: html or markdown. Default: html.
Example Response (200 OK)
{
  "id": "550e8400-e29b-41d4-a716-446655440000",
  "slug": "quantum-mechanics",
  "title": "Quantum Mechanics",
  "summary": "Quantum mechanics is a fundamental theory in physics...",
  "content": "<p>Quantum mechanics describes nature at the smallest scales...</p>",
  "categories": ["Physics", "Science"],
  "last_updated": "2025-01-14T08:30:00Z",
  "read_time_minutes": 12,
  "references_count": 47
}
POST /articles/{id}/verify

Trigger a real-time verification check on an article using the Aevum AI engine. Returns confidence scores and source validation.

⚠️
High compute endpoint. Rate limited to 10 requests/min per key.

Our search API goes beyond keywords. It understands context, intent, and cross-domain relationships.

POST /search

Perform a semantic search query across the entire knowledge base.

Request Body
{
  "query": "impact of dark energy on cosmic expansion",
  "filters": {
    "categories": ["Astronomy", "Cosmology"],
    "min_accuracy_score": 0.95
  },
  "limit": 5
}

Knowledge Graph

Explore the relational structure of knowledge. Retrieve nodes and edges representing concepts and their connections.

GET /graph/nodes/{concept_id}

Get a specific concept node and its immediate edges.

SDK Installation & Usage

We provide official SDKs for major languages. All SDKs are automatically generated from our OpenAPI spec and support full typing.

Install
pip install aevum-sdk
Usage Example
import aevum

client = aevum.Client(api_key="ae_live_...")

# Fetch an article
article = client.articles.get("renaissance-art")
print(article.title)

# Semantic Search
results = client.search.query(
    query="evolution of printing press",
    limit=3
)
for hit in results:
    print(hit.summary)
Install
npm install @aevum/sdk
Usage Example
import { AevumClient } from '@aevum/sdk';

const client = new AevumClient('ae_live_...');

const article = await client.articles.get('quantum-mechanics');
console.log(article.content);

const graph = await client.graph.getNeighbors('thermodynamics');
// Returns array of connected concepts
Install
go get github.com/aevum/enc-sdk-go
Usage Example
package main

import "github.com/aevum/enc-sdk-go"

func main() {
    client := aevum.New("ae_live_...")
    
    article, err := client.Articles.Get("history-of-rome")
    if err != nil {
        log.Fatal(err)
    }
    fmt.Println(article.Title)
}

Rate Limits & Errors

API access is rate-limited based on your tier. Limits are applied per key per minute.

Header Description
X-RateLimit-Limit Maximum requests per window.
X-RateLimit-Remaining Requests remaining in current window.
Retry-After Seconds to wait when rate limited (429).

Common Error Codes

Code Meaning
401 Invalid or missing API key.
403 Key lacks permission for requested scope.
429 Rate limit exceeded.
404 Resource not found.
πŸ“ž
Need help? Join the Aevum Developer Community or contact api-support@aevum.com.