Skip to main content

What The LLM API

Welcome to the What The LLM API documentation. Our API allows developers and partners to integrate our AI content, tools, and services into their applications.
The What The LLM API is currently in beta. Contact us at hello@myllm.news for access and partnership opportunities.

Overview

The What The LLM API provides programmatic access to:

Content Access

Retrieve articles, tutorials, and magazine content

AI Tools

Access our curated AI tools and services

Community Data

Get community insights and engagement metrics

Learning Resources

Access our educational content and progress tracking

Getting Started

Authentication

All API requests require authentication using an API key:
curl -H "Authorization: Bearer YOUR_API_KEY" \
     https://api.myllm.news/v1/content

Base URL

https://api.myllm.news/v1/

Rate Limits

  • Free tier: 100 requests per hour
  • Subscriber tier: 1,000 requests per hour
  • Partner tier: 10,000 requests per hour

Available Endpoints

Content Endpoints

Retrieve published articles and blog postsParameters:
  • limit: Number of articles to return (default: 10, max: 100)
  • offset: Pagination offset
  • category: Filter by content category
  • date_from: Filter articles from specific date
  • date_to: Filter articles to specific date
Access magazine issues and contentParameters:
  • issue: Specific issue number
  • year: Filter by publication year
  • subscriber_only: Include subscriber-only content (requires subscription)
Retrieve tutorial content and guidesParameters:
  • difficulty: Filter by difficulty level (beginner, intermediate, advanced)
  • topic: Filter by AI topic or technology
  • format: Content format (text, video, interactive)

AI Tools Endpoints

List available AI tools and servicesParameters:
  • category: Tool category (nlp, vision, audio, etc.)
  • pricing: Filter by pricing model (free, paid, freemium)
  • rating: Minimum rating threshold
Get detailed information about a specific AI toolResponse includes:
  • Tool description and features
  • Pricing information
  • User ratings and reviews
  • Integration examples
  • Alternative tools
Get AI tool recommendations based on requirementsRequest body:
{
  "use_case": "content creation",
  "budget": "under_50",
  "experience_level": "beginner",
  "features_required": ["text_generation", "editing"]
}

Community Endpoints

Get community engagement statisticsResponse includes:
  • Total community members
  • Active discussions
  • Popular topics
  • Engagement metrics
Retrieve community discussions and topicsParameters:
  • topic: Filter by discussion topic
  • popularity: Sort by engagement level
  • recent: Show recent discussions only

Response Format

All API responses follow a consistent JSON format:
{
  "success": true,
  "data": {
    // Response data here
  },
  "meta": {
    "total": 150,
    "limit": 10,
    "offset": 0,
    "has_more": true
  },
  "timestamp": "2025-01-09T12:00:00Z"
}

Error Responses

{
  "success": false,
  "error": {
    "code": "INVALID_API_KEY",
    "message": "The provided API key is invalid or expired",
    "details": "Please check your API key and ensure it's correctly formatted"
  },
  "timestamp": "2025-01-09T12:00:00Z"
}

Common Error Codes

  • INVALID_API_KEY: API key is invalid or expired
  • MISSING_API_KEY: No API key provided
  • INSUFFICIENT_PERMISSIONS: API key lacks required permissions
  • RATE_LIMIT_EXCEEDED: Too many requests in time window
  • QUOTA_EXCEEDED: Monthly quota limit reached
  • INVALID_PARAMETERS: Request parameters are invalid
  • RESOURCE_NOT_FOUND: Requested resource doesn’t exist
  • VALIDATION_ERROR: Request data failed validation

SDK and Libraries

Official SDKs

Python SDK

pip install myllm-api
Full Python integration with async support

JavaScript SDK

npm install @myllm/api
Works in Node.js and browser environments

Community Libraries

  • PHP: composer require myllm/api-client
  • Ruby: gem install myllm-api
  • Go: go get github.com/myllm/go-api

Example Usage

Python Example

import myllm

# Initialize client
client = myllm.Client(api_key="your_api_key")

# Get recent articles
articles = client.content.articles(limit=5, category="ai-tools")

for article in articles:
    print(f"{article.title} - {article.published_date}")

JavaScript Example

import { MyllmAPI } from '@myllm/api';

const client = new MyllmAPI('your_api_key');

// Get AI tool recommendations
const recommendations = await client.tools.recommend({
  use_case: 'content creation',
  budget: 'under_50',
  experience_level: 'beginner'
});

console.log(recommendations);

Webhooks

Subscribe to real-time updates about new content and community activity:

Available Events

  • content.published: New article or tutorial published
  • magazine.released: New magazine issue available
  • tool.added: New AI tool added to database
  • community.milestone: Community reaches engagement milestone

Webhook Setup

curl -X POST https://api.myllm.news/v1/webhooks \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "url": "https://your-app.com/webhooks/myllm",
    "events": ["content.published", "magazine.released"]
  }'

Support and Resources

API Documentation

Detailed endpoint documentation and examples

Developer Community

Connect with other developers using our API

Status Page

Monitor API uptime and performance

Support

Get help from our technical support team

Getting API Access

1

Contact Us

Email hello@myllm.news to request API access
2

Use Case Review

Tell us about your intended use case and integration plans
3

API Key Generation

Receive your API key and access credentials
4

Integration Support

Get help with implementation and best practices
The API is currently in beta. Features and endpoints may change. We’ll provide advance notice of any breaking changes.

Ready to integrate What The LLM into your application? Contact us to get started with API access.