{
  "openapi": "3.1.0",
  "info": {
    "title": "Viral Attention Map API",
    "version": "1.0.0",
    "description": "How online attention spreads (sound reuse, quote-post piles, stitch chains, naked forwards and more) and a quiz on whether you chase, invent, or read attention. Educational only.\n\nFree, no API key, CORS open. Fair use: about 120 requests per minute per IP. Also available as MCP tools at https://free-agent-tools.vercel.app/mcp"
  },
  "servers": [
    {
      "url": "https://viral-attention-map.vercel.app"
    }
  ],
  "paths": {
    "/api/patterns": {
      "get": {
        "operationId": "viralAttentionPatterns",
        "summary": "List common patterns of how attention spreads online (TikTok sound reuse, X quote-post piles, stitch chains, group-chat forwards...)",
        "description": "Each pattern has the platform, the observable signal, and the lesson (why being early to noise is not the same as understanding it). Optional platform filter.\n\nExample: https://viral-attention-map.vercel.app/api/patterns",
        "parameters": [
          {
            "name": "platform",
            "in": "query",
            "required": false,
            "description": "Optional case-insensitive platform filter, e.g. TikTok or X.",
            "schema": {
              "type": "string",
              "description": "Optional case-insensitive platform filter, e.g. TikTok or X."
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Result as JSON. Always includes a `disclaimer` field.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": true
                }
              }
            }
          },
          "400": {
            "description": "Missing or invalid input. The body explains what to send and gives an example."
          },
          "429": {
            "description": "Too many requests from one IP. Retry after the Retry-After seconds."
          }
        }
      },
      "post": {
        "operationId": "viralAttentionPatternsPost",
        "summary": "List common patterns of how attention spreads online (TikTok sound reuse, X quote-post piles, stitch chains, group-chat forwards...) (JSON body)",
        "description": "Each pattern has the platform, the observable signal, and the lesson (why being early to noise is not the same as understanding it). Optional platform filter.",
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [],
                "properties": {
                  "platform": {
                    "type": "string",
                    "description": "Optional case-insensitive platform filter, e.g. TikTok or X."
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Result as JSON. Always includes a `disclaimer` field.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": true
                }
              }
            }
          },
          "400": {
            "description": "Missing or invalid input. The body explains what to send and gives an example."
          },
          "429": {
            "description": "Too many requests from one IP. Retry after the Retry-After seconds."
          }
        }
      }
    },
    "/api/quiz": {
      "get": {
        "operationId": "viralAttentionQuiz",
        "summary": "Score the 'are you chasing, inventing, or reading attention?' quiz",
        "description": "Without answers, returns the six questions with options (each option is chaser, inventor, or reader). With answers, returns the tilt (or split on a tie) with a short explanation.\n\nExample: https://viral-attention-map.vercel.app/api/quiz?answers=reader,reader,inventor,reader,chaser,reader",
        "parameters": [
          {
            "name": "answers",
            "in": "query",
            "required": false,
            "description": "Comma-separated tilts, one per question, e.g. reader,reader,inventor,reader,chaser,reader. POST may send an array.",
            "schema": {
              "type": "string",
              "description": "Comma-separated tilts, one per question, e.g. reader,reader,inventor,reader,chaser,reader. POST may send an array."
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Result as JSON. Always includes a `disclaimer` field.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": true
                }
              }
            }
          },
          "400": {
            "description": "Missing or invalid input. The body explains what to send and gives an example."
          },
          "429": {
            "description": "Too many requests from one IP. Retry after the Retry-After seconds."
          }
        }
      },
      "post": {
        "operationId": "viralAttentionQuizPost",
        "summary": "Score the 'are you chasing, inventing, or reading attention?' quiz (JSON body)",
        "description": "Without answers, returns the six questions with options (each option is chaser, inventor, or reader). With answers, returns the tilt (or split on a tie) with a short explanation.",
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [],
                "properties": {
                  "answers": {
                    "type": "string",
                    "description": "Comma-separated tilts, one per question, e.g. reader,reader,inventor,reader,chaser,reader. POST may send an array."
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Result as JSON. Always includes a `disclaimer` field.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": true
                }
              }
            }
          },
          "400": {
            "description": "Missing or invalid input. The body explains what to send and gives an example."
          },
          "429": {
            "description": "Too many requests from one IP. Retry after the Retry-After seconds."
          }
        }
      }
    }
  }
}