API Documentation
Access myTrueNerd content programmatically
Overview
The myTrueNerd API provides programmatic access to our deep technical content. All responses are returned in JSON format.
Base URL
https://mytruenerd.vercel.app/apiAuthentication
Public endpoints are available without authentication. For higher rate limits and access to premium features, include your API key in the header.
Request Header
Authorization: Bearer YOUR_API_KEY
Articles
GET
/api/articlesReturns a list of all published articles.
Response
{
"articles": [
{
"slug": "physics-quantum-entanglement",
"title": "Understanding Quantum Entanglement",
"category": "Quantum Physics",
"author": "Dr. Quantum",
"readTime": "18 min",
"depth": "Advanced"
},
...
],
"total": 6
}GET
/api/articles/:slugReturns a single article with full content.
Path Parameters
slugstring (required)The article's URL slug
Categories
GET
/api/categoriesReturns all available content categories.
Response
{
"categories": [
{
"slug": "physics",
"name": "Quantum & Classical Physics",
"articleCount": 1
},
...
]
}Search
GET
/api/searchSearch across all articles.
Query Parameters
qstring (required)Search query
categorystringFilter by category slug
limitnumberMax results (default: 10, max: 50)
Rate Limits
Public (No Auth)
100 requests/hourAuthenticated
1,000 requests/hourPremium
10,000 requests/hourRate limit headers are included in all responses:X-RateLimit-Remaining, X-RateLimit-Reset
Need Help?
Contact us at api@mytruenerd.com for API key requests or technical support.