{
  "openapi": "3.0.1",
  "info": {
    "title": "SPIDITS AI Intelligence API",
    "description": "Real-Time AI Live News and Market Intelligence Platform. Track latest AI news today, model releases, startup funding, research breakthroughs, and developer signals on SPIDITS AI.",
    "version": "v1",
    "contact": {
      "email": "hello@spidits.com",
      "url": "https://spidits.com/"
    }
  },
  "servers": [
    {
      "url": "https://spidits.com/",
      "description": "SPIDITS Production Server"
    }
  ],
  "paths": {
    "/api/ai/v1/context": {
      "get": {
        "operationId": "getAiContext",
        "summary": "Get AI Context & Executive Summaries",
        "description": "Search and retrieve structured AI context, executive BLUF summaries, concept definitions, and citations for any query or topic.",
        "parameters": [
          {
            "name": "q",
            "in": "query",
            "description": "Topic or keyword query (e.g. OpenAI, Gemini 3.6, Series A funding)",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "topic",
            "in": "query",
            "description": "SEO topic slug (e.g. ai-news, ai-startup-funding-news)",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "description": "Number of context items to return (1-15)",
            "required": false,
            "schema": {
              "type": "integer",
              "default": 5
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response containing structured JSON and Markdown context blocks.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "provider": {
                      "type": "string"
                    },
                    "count": {
                      "type": "integer"
                    },
                    "items": {
                      "type": "array",
                      "items": {
                        "type": "object"
                      }
                    },
                    "markdown": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/timeline": {
      "get": {
        "operationId": "getTimelineEvents",
        "summary": "Get Latest Chronological AI Timeline Events",
        "description": "Fetch real-time chronological AI news releases, research papers, and startup funding deals.",
        "parameters": [
          {
            "name": "limit",
            "in": "query",
            "description": "Number of events to retrieve (1-50)",
            "required": false,
            "schema": {
              "type": "integer",
              "default": 20
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Array of chronological timeline events."
          }
        }
      }
    }
  }
}