← API Documentation
Noosphere Prime · Developer API
GraphQL Federation Subgraph
SIGMA sovereign risk scores exposed via Apollo Federation v2 subgraph spec. Works with Apollo Router, Apollo Gateway, Apollo Studio, and any standard GraphQL client. No external library required — pure HTTP.
Endpoint
POST https://noosphereprime.space/api/graphqlAuth
None (public)
Rate Limit
60 req/min
Federation
v2.0
Quick Start
curl -X POST https://noosphereprime.space/api/graphql \
-H "Content-Type: application/json" \
-d '{"query":"{ sigma(slug: \"turkey\") { name score regime earlyWarningSignal } }"}'Schema Definition Language (SDL)
Federation v2 subgraph SDL. Register this service with Apollo Router using https://noosphereprime.space/api/graphql.
extend schema @link(
url: "https://specs.apollo.dev/federation/v2.0"
import: ["@key"]
)
type Query {
sigma(slug: String!): SigmaScore
allScores: [SigmaScore!]!
}
type SigmaScore @key(fields: "slug") {
slug: String!
name: String!
flag: String
region: String
score: Float!
regime: String!
earlyWarningSignal: Boolean!
hurstExponent: Float!
r0Financial: Float!
minskyPhase: String!
kairosDays: Float!
proofUrl: String!
updatedAt: String!
}SigmaScore Fields
Example Queries
Apollo Router / Gateway Integration
Register this subgraph in your Apollo supergraph configuration:
# supergraph.yaml
federation_version: =2.0.0
subgraphs:
noosphere:
routing_url: https://noosphereprime.space/api/graphql
schema:
subgraph_url: https://noosphereprime.space/api/graphqlPython Example
import requests
ENDPOINT = "https://noosphereprime.space/api/graphql"
query = """
query TopRisks {
allScores {
slug name flag score regime earlyWarningSignal hurstExponent
}
}
"""
resp = requests.post(ENDPOINT, json={"query": query})
data = resp.json()["data"]["allScores"]
for country in data[:5]:
ews = " EWS" if country["earlyWarningSignal"] else ""
print(f"{country['flag']} {country['name']}: {country['score']:.1f} [{country['regime'].upper()}]{ews}")This GraphQL endpoint is rate-limited to 60 requests/minute per IP. For higher limits, use the authenticated REST API.GET /api/graphql — SDL preview