Ir al contenido principal

API Reference

API Reference — Sovereign Climate Data Wiki

All pages in this book are publicly accessible via the BookStack REST API. No authentication is required for read access.

Base URL

https://wiki.cleantechhub.net/api

Common Queries

PurposeEndpoint
List all principles pagesGET /api/pages?filter[book_slug]=sovereign-climate-data
Get a principle by slugGET /api/pages?filter[slug]=verifiability-by-design
Get full page contentGET /api/pages/{id}
Search all principlesGET /api/search?query=CBAM+embedded+carbon
List chaptersGET /api/chapters?filter[book_id]=860
Get book metadataGET /api/books/860

Static Machine-Readable Files

FormatURLUse case
Flat JSONhttps://wiki.cleantechhub.net/data/principles.jsonGeneral API consumers, dashboards
JSON-LD (schema.org)https://wiki.cleantechhub.net/data/principles_jsonld.jsonAI agents, Google Dataset Search, semantic web

Example: Fetch Principle P01 as JSON

curl -s "https://wiki.cleantechhub.net/api/pages?filter[slug]=verifiability-by-design" \
  | python3 -c "import sys,json; d=json.load(sys.stdin); print(d['data'][0]['name'])"

Example: Search for CBAM-related principles

curl -s "https://wiki.cleantechhub.net/api/search?query=CBAM" \
  | python3 -m json.tool | grep -A3 '"name"'

Example: Pull principles.json for RAG ingestion

import requests
data = requests.get("https://wiki.cleantechhub.net/data/principles.json").json()
for p in data["principles"]:
    print(p["id"], p["title"])

Rate Limits

BookStack imposes no rate limit on read-only API calls. Be courteous: add a 100ms delay between calls in scripts.

Licence

All content in this wiki is published under CC-BY 4.0. Cite as: CleantechHUB (2026). Sovereign Climate Data Principles, v1.0.0.