IanKhan.com API
Publish content from IanKhan.com on your website using our API. Access articles, calculators, and tools programmatically.
Base URL
https://workspace.ian424.repl.co
All API endpoints are relative to this base URL. Responses are in JSON. No authentication required for read endpoints.
Content API
Access articles, content types, and statistics.
GET /api/posts?limit=10&offset=0&status=published
Retrieve published articles with pagination, filtering, and search.
GET /api/posts/:id
Retrieve a single article by ID, including full content.
GET /api/content-types
List all available content categories and types.
GET /api/dashboard/summary
Get high-level statistics: total articles, today’s count, publishing rate.
GET /api/dashboard/recent
Get the 20 most recently published articles.
Calculator Embeds
Embed any of the 10 Ian Khan Labs interactive calculators on your website.
Method 1: iframe Embed
<iframe src="https://workspace.ian424.repl.co/calculator/frs-lite?embed=1" width="100%" height="820" style="border:0; border-radius:12px;" loading="lazy" ></iframe>
Method 2: embed.js Script (auto-resize)
<div id="futurist-calculator" data-calculator="frs-lite"></div> <script src="https://workspace.ian424.repl.co/embed.js"></script>
Available Calculator Slugs
frs-lite |
Future Readiness Score (Lite) |
ai-readiness |
AI Readiness Calculator |
disruption-risk |
Industry Disruption Risk |
leadership-agility |
Leadership Agility Index |
innovation-capacity |
Innovation Capacity Score |
execution-resilience |
Execution Resilience Index |
tech-maturity |
Technology Maturity Score |
strategic-foresight |
Strategic Foresight Index |
board-governance |
Board AI Governance Index |
automation-risk |
Automation Risk Calculator |
Quick Start Examples
JavaScript: Fetch Latest Articles
fetch("https://workspace.ian424.repl.co/api/posts?limit=5&status=published")
.then(res => res.json())
.then(articles => {
articles.forEach(a => {
console.log(a.title, a.wordpressUrl);
});
});
HTML: Display a Content Widget
<div id="ik-articles"></div>
<script>
fetch("https://workspace.ian424.repl.co/api/posts?limit=5&status=published")
.then(r => r.json())
.then(posts => {
const el = document.getElementById("ik-articles");
el.innerHTML = posts.map(p =>
'<a href="' + p.wordpressUrl + '">' + p.title + '</a><br/>'
).join("");
});
</script>
Python: Fetch Articles
import requests
response = requests.get("https://workspace.ian424.repl.co/api/posts", params={
"limit": 10,
"status": "published"
})
articles = response.json()
for article in articles:
print(article["title"])
Usage Guidelines
- All GET endpoints are publicly accessible – no API key required.
- Responses are in JSON format with standard HTTP status codes.
- Please include attribution to IanKhan.com when displaying content.
- Calculator embeds include built-in attribution in the footer.
- Rate limiting: Please keep requests reasonable (under 60/minute).
- Content is owned by Ian Khan and should be credited appropriately.
- For commercial use or high-volume access, please contact us.
Powered by The Futurist | Ian Khan | iankhan.com