API Documentation

Access AIToolBox data programmatically through our REST API.

Base URL

https://ai-tools-hub.vercel.app

Rate Limiting

Public endpoints are rate-limited to ensure fair usage:

  • 100 requests per minute for GET endpoints
  • No authentication required for public endpoints

Endpoints

GET/api/tools

Get all AI tools

Query Parameters

category(string)- Filter by category (text, image, code, etc.)
search(string)- Search by name or description

Response

{
  "success": true,
  "data": [
    {
      "id": "uuid",
      "name": "Tool Name",
      "slug": "tool-name",
      "description": "Tool description",
      "category": "text",
      "logo": "T",
      "website": "https://example.com",
      "pricing": { "hasFree": true, "plans": [...] },
      "ratings": { "overall": 4.5, ... },
      "features": ["Feature 1", "Feature 2"],
      "pros": ["Pro 1"],
      "cons": ["Con 1"],
      "useCases": ["Use case 1"]
    }
  ]
}
GET/api/tools/:id

Get a single tool by ID or slug

Response

{
  "success": true,
  "data": {
    "id": "uuid",
    "name": "Tool Name",
    ...
  }
}
GET/api/stats

Get homepage statistics

Response

{
  "success": true,
  "data": {
    "stats": [{ "value": "500+", "label": "AI Tools" }, ...],
    "categories": [{ "id": "text", "name": "Text & Writing", "count": 45 }, ...],
    "featuredTools": [...],
    "totalTools": 500
  }
}

Error Handling

All errors follow a consistent format:

{
  "success": false,
  "error": "Error message description"
}
400Bad Request - Invalid parameters
404Not Found - Resource doesn't exist
429Too Many Requests - Rate limit exceeded
500Internal Server Error