{
  "openapi": "3.1.0",
  "info": {
    "title": "News Events API",
    "description": "Latest news as stories: facts, entities, numbers and articles in 45 languages. No article text, no outlet names, no links.",
    "version": "1.0.0"
  },
  "paths": {
    "/v1/stories": {
      "get": {
        "tags": [
          "Global"
        ],
        "summary": "List and search stories",
        "operationId": "stories_v1_stories_get",
        "parameters": [
          {
            "name": "sort",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "relevance (default when q is set) | -first_published (default otherwise) | -updated | -importance | -coverage",
              "title": "Sort"
            },
            "description": "relevance (default when q is set) | -first_published (default otherwise) | -updated | -importance | -coverage"
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 100,
              "minimum": 1,
              "default": 20,
              "title": "Limit"
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Cursor"
            }
          },
          {
            "name": "facts",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^(none|top3|all)$",
              "default": "top3",
              "title": "Facts"
            }
          },
          {
            "name": "fields",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Comma-separated fields to return (id always included).",
              "title": "Fields"
            },
            "description": "Comma-separated fields to return (id always included)."
          },
          {
            "name": "q",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "maxLength": 500
                },
                {
                  "type": "null"
                }
              ],
              "description": "Full-text search over titles and facts. Supports \"quoted phrase\", OR, -exclude.",
              "title": "Q"
            },
            "description": "Full-text search over titles and facts. Supports \"quoted phrase\", OR, -exclude."
          },
          {
            "name": "category",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Comma-separated category slugs (see /categories).",
              "title": "Category"
            },
            "description": "Comma-separated category slugs (see /categories)."
          },
          {
            "name": "exclude_category",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Exclude Category"
            }
          },
          {
            "name": "topic",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Comma-separated topics (any).",
              "title": "Topic"
            },
            "description": "Comma-separated topics (any)."
          },
          {
            "name": "person",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Person"
            }
          },
          {
            "name": "organization",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Organization"
            }
          },
          {
            "name": "place",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Place"
            }
          },
          {
            "name": "lang",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Source language(s) of the coverage, e.g. tr,en.",
              "title": "Lang"
            },
            "description": "Source language(s) of the coverage, e.g. tr,en."
          },
          {
            "name": "from",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "First-seen after: 2026-11-18, ISO datetime or 24h / 7d.",
              "title": "From"
            },
            "description": "First-seen after: 2026-11-18, ISO datetime or 24h / 7d."
          },
          {
            "name": "to",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "To"
            }
          },
          {
            "name": "event_from",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Event date (YYYY-MM-DD) on or after.",
              "title": "Event From"
            },
            "description": "Event date (YYYY-MM-DD) on or after."
          },
          {
            "name": "event_to",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Event To"
            }
          },
          {
            "name": "min_importance",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "integer",
                  "maximum": 100,
                  "minimum": 0
                },
                {
                  "type": "null"
                }
              ],
              "title": "Min Importance"
            }
          },
          {
            "name": "min_outlets",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "integer",
                  "minimum": 1
                },
                {
                  "type": "null"
                }
              ],
              "description": "Minimum number of outlets covering the story.",
              "title": "Min Outlets"
            },
            "description": "Minimum number of outlets covering the story."
          },
          {
            "name": "has_numbers",
            "in": "query",
            "required": false,
            "schema": {
              "type": "boolean",
              "default": false,
              "title": "Has Numbers"
            }
          },
          {
            "name": "updated_since",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Only stories updated after this time (ISO or 30m/24h). Sync recipe: poll every 5 min with sort=-updated.",
              "title": "Updated Since"
            },
            "description": "Only stories updated after this time (ISO or 30m/24h). Sync recipe: poll every 5 min with sort=-updated."
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/v1/stories/trending": {
      "get": {
        "tags": [
          "Global"
        ],
        "summary": "Most-covered stories in a recent window",
        "operationId": "trending_v1_stories_trending_get",
        "parameters": [
          {
            "name": "window",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^\\d+[hd]$",
              "default": "24h",
              "title": "Window"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 100,
              "minimum": 1,
              "default": 20,
              "title": "Limit"
            }
          },
          {
            "name": "category",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Category"
            }
          },
          {
            "name": "facts",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^(none|top3|all)$",
              "default": "top3",
              "title": "Facts"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/v1/stories/count": {
      "get": {
        "tags": [
          "Global"
        ],
        "summary": "Story counts over time or by facet",
        "operationId": "count_v1_stories_count_get",
        "parameters": [
          {
            "name": "group_by",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^(hour|day|week|category|topic|language)$",
              "default": "day",
              "title": "Group By"
            }
          },
          {
            "name": "q",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "maxLength": 500
                },
                {
                  "type": "null"
                }
              ],
              "description": "Full-text search over titles and facts. Supports \"quoted phrase\", OR, -exclude.",
              "title": "Q"
            },
            "description": "Full-text search over titles and facts. Supports \"quoted phrase\", OR, -exclude."
          },
          {
            "name": "category",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Comma-separated category slugs (see /categories).",
              "title": "Category"
            },
            "description": "Comma-separated category slugs (see /categories)."
          },
          {
            "name": "exclude_category",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Exclude Category"
            }
          },
          {
            "name": "topic",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Comma-separated topics (any).",
              "title": "Topic"
            },
            "description": "Comma-separated topics (any)."
          },
          {
            "name": "person",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Person"
            }
          },
          {
            "name": "organization",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Organization"
            }
          },
          {
            "name": "place",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Place"
            }
          },
          {
            "name": "lang",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Source language(s) of the coverage, e.g. tr,en.",
              "title": "Lang"
            },
            "description": "Source language(s) of the coverage, e.g. tr,en."
          },
          {
            "name": "from",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "First-seen after: 2026-11-18, ISO datetime or 24h / 7d.",
              "title": "From"
            },
            "description": "First-seen after: 2026-11-18, ISO datetime or 24h / 7d."
          },
          {
            "name": "to",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "To"
            }
          },
          {
            "name": "event_from",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Event date (YYYY-MM-DD) on or after.",
              "title": "Event From"
            },
            "description": "Event date (YYYY-MM-DD) on or after."
          },
          {
            "name": "event_to",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Event To"
            }
          },
          {
            "name": "min_importance",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "integer",
                  "maximum": 100,
                  "minimum": 0
                },
                {
                  "type": "null"
                }
              ],
              "title": "Min Importance"
            }
          },
          {
            "name": "min_outlets",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "integer",
                  "minimum": 1
                },
                {
                  "type": "null"
                }
              ],
              "description": "Minimum number of outlets covering the story.",
              "title": "Min Outlets"
            },
            "description": "Minimum number of outlets covering the story."
          },
          {
            "name": "has_numbers",
            "in": "query",
            "required": false,
            "schema": {
              "type": "boolean",
              "default": false,
              "title": "Has Numbers"
            }
          },
          {
            "name": "updated_since",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Only stories updated after this time (ISO or 30m/24h). Sync recipe: poll every 5 min with sort=-updated.",
              "title": "Updated Since"
            },
            "description": "Only stories updated after this time (ISO or 30m/24h). Sync recipe: poll every 5 min with sort=-updated."
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/v1/stories/{story_id}": {
      "get": {
        "tags": [
          "Global"
        ],
        "summary": "One story with all facts",
        "operationId": "story_v1_stories__story_id__get",
        "parameters": [
          {
            "name": "story_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Story Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/v1/stories/{story_id}/related": {
      "get": {
        "tags": [
          "Global"
        ],
        "summary": "Stories sharing people, organizations or places",
        "operationId": "related_v1_stories__story_id__related_get",
        "parameters": [
          {
            "name": "story_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Story Id"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 50,
              "minimum": 1,
              "default": 10,
              "title": "Limit"
            }
          },
          {
            "name": "facts",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^(none|top3|all)$",
              "default": "none",
              "title": "Facts"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/v1/facts": {
      "get": {
        "tags": [
          "Global"
        ],
        "summary": "Search numbers across stories",
        "operationId": "facts_search_v1_facts_get",
        "parameters": [
          {
            "name": "what",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Text the number describes, e.g. 'inflation' (substring).",
              "title": "What"
            },
            "description": "Text the number describes, e.g. 'inflation' (substring)."
          },
          {
            "name": "unit",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "unit_code (USD, EUR, TRY, percent, people, years...) or raw unit substring.",
              "title": "Unit"
            },
            "description": "unit_code (USD, EUR, TRY, percent, people, years...) or raw unit substring."
          },
          {
            "name": "min_value",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "number"
                },
                {
                  "type": "null"
                }
              ],
              "description": "On value_normalized (scale applied: 400 million USD = 400000000).",
              "title": "Min Value"
            },
            "description": "On value_normalized (scale applied: 400 million USD = 400000000)."
          },
          {
            "name": "max_value",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "number"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Max Value"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 200,
              "minimum": 1,
              "default": 50,
              "title": "Limit"
            }
          },
          {
            "name": "q",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "maxLength": 500
                },
                {
                  "type": "null"
                }
              ],
              "description": "Full-text search over titles and facts. Supports \"quoted phrase\", OR, -exclude.",
              "title": "Q"
            },
            "description": "Full-text search over titles and facts. Supports \"quoted phrase\", OR, -exclude."
          },
          {
            "name": "category",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Comma-separated category slugs (see /categories).",
              "title": "Category"
            },
            "description": "Comma-separated category slugs (see /categories)."
          },
          {
            "name": "exclude_category",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Exclude Category"
            }
          },
          {
            "name": "topic",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Comma-separated topics (any).",
              "title": "Topic"
            },
            "description": "Comma-separated topics (any)."
          },
          {
            "name": "person",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Person"
            }
          },
          {
            "name": "organization",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Organization"
            }
          },
          {
            "name": "place",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Place"
            }
          },
          {
            "name": "lang",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Source language(s) of the coverage, e.g. tr,en.",
              "title": "Lang"
            },
            "description": "Source language(s) of the coverage, e.g. tr,en."
          },
          {
            "name": "from",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "First-seen after: 2026-11-18, ISO datetime or 24h / 7d.",
              "title": "From"
            },
            "description": "First-seen after: 2026-11-18, ISO datetime or 24h / 7d."
          },
          {
            "name": "to",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "To"
            }
          },
          {
            "name": "event_from",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Event date (YYYY-MM-DD) on or after.",
              "title": "Event From"
            },
            "description": "Event date (YYYY-MM-DD) on or after."
          },
          {
            "name": "event_to",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Event To"
            }
          },
          {
            "name": "min_importance",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "integer",
                  "maximum": 100,
                  "minimum": 0
                },
                {
                  "type": "null"
                }
              ],
              "title": "Min Importance"
            }
          },
          {
            "name": "min_outlets",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "integer",
                  "minimum": 1
                },
                {
                  "type": "null"
                }
              ],
              "description": "Minimum number of outlets covering the story.",
              "title": "Min Outlets"
            },
            "description": "Minimum number of outlets covering the story."
          },
          {
            "name": "has_numbers",
            "in": "query",
            "required": false,
            "schema": {
              "type": "boolean",
              "default": false,
              "title": "Has Numbers"
            }
          },
          {
            "name": "updated_since",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Only stories updated after this time (ISO or 30m/24h). Sync recipe: poll every 5 min with sort=-updated.",
              "title": "Updated Since"
            },
            "description": "Only stories updated after this time (ISO or 30m/24h). Sync recipe: poll every 5 min with sort=-updated."
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/v1/entities": {
      "get": {
        "tags": [
          "Global"
        ],
        "summary": "People, organizations, places or topics with story counts (trending + autocomplete)",
        "operationId": "entities_v1_entities_get",
        "parameters": [
          {
            "name": "type",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^(person|organization|place|topic)$",
              "default": "person",
              "title": "Type"
            }
          },
          {
            "name": "q",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "maxLength": 100
                },
                {
                  "type": "null"
                }
              ],
              "description": "Prefix/substring match for autocomplete.",
              "title": "Q"
            },
            "description": "Prefix/substring match for autocomplete."
          },
          {
            "name": "from",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "default": "7d",
              "title": "From"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 100,
              "minimum": 1,
              "default": 20,
              "title": "Limit"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/v1/categories": {
      "get": {
        "tags": [
          "Global"
        ],
        "summary": "Valid category slugs with 7-day story counts",
        "operationId": "categories_v1_categories_get",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          }
        }
      }
    },
    "/v1/usage": {
      "get": {
        "tags": [
          "Global"
        ],
        "summary": "Your calls today and in the last 30 days",
        "operationId": "usage_v1_usage_get",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          }
        }
      }
    },
    "/v1/stories/{story_id}/article": {
      "get": {
        "tags": [
          "Global"
        ],
        "summary": "A short article written from the story's facts in the language you pick (counts as 25 requests; paid plans, daily cap: PRO 20, ULTRA 200, MEGA 1000)",
        "operationId": "article_v1_stories__story_id__article_get",
        "parameters": [
          {
            "name": "story_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Story Id"
            }
          },
          {
            "name": "lang",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "description": "Article language: en, tr, de, fr, es, it, pt, pt-br, nl, da, sv, no, fi, pl, cs, sk, hu, ro, bg, hr, sr, sl, el, et, lv, lt, ca, ru, uk, ar, fa, he, hi, bn, ur, id, ms, tl, vi, th, ja, ko, zh, zh-tw, sw",
              "default": "en",
              "title": "Lang"
            },
            "description": "Article language: en, tr, de, fr, es, it, pt, pt-br, nl, da, sv, no, fi, pl, cs, sk, hu, ro, bg, hr, sr, sl, el, et, lv, lt, ca, ru, uk, ar, fa, he, hi, bn, ur, id, ms, tl, vi, th, ja, ko, zh, zh-tw, sw"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/v1/monitors": {
      "get": {
        "tags": [
          "Global"
        ],
        "summary": "List your monitors",
        "operationId": "monitors_v1_monitors_get",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "Global"
        ],
        "summary": "Create a monitor (saved filter)",
        "operationId": "monitor_create_v1_monitors_post",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Monitor"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/v1/monitors/{mid}": {
      "put": {
        "tags": [
          "Global"
        ],
        "summary": "Replace a monitor",
        "operationId": "monitor_update_v1_monitors__mid__put",
        "parameters": [
          {
            "name": "mid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Mid"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Monitor"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      },
      "delete": {
        "tags": [
          "Global"
        ],
        "summary": "Delete a monitor",
        "operationId": "monitor_delete_v1_monitors__mid__delete",
        "parameters": [
          {
            "name": "mid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Mid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/v1/monitors/{mid}/stories": {
      "get": {
        "tags": [
          "Global"
        ],
        "summary": "Stories matching a monitor (poll with since=)",
        "operationId": "monitor_stories_v1_monitors__mid__stories_get",
        "parameters": [
          {
            "name": "mid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Mid"
            }
          },
          {
            "name": "since",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Updated after: ISO time or 24h.",
              "default": "24h",
              "title": "Since"
            },
            "description": "Updated after: ISO time or 24h."
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 100,
              "minimum": 1,
              "default": 20,
              "title": "Limit"
            }
          },
          {
            "name": "facts",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^(none|top3|all)$",
              "default": "top3",
              "title": "Facts"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/tr/v1/stories": {
      "get": {
        "tags": [
          "Türkiye"
        ],
        "summary": "List and search stories",
        "operationId": "stories_tr_v1_stories_get",
        "parameters": [
          {
            "name": "sort",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "relevance (default when q is set) | -first_published (default otherwise) | -updated | -importance | -coverage",
              "title": "Sort"
            },
            "description": "relevance (default when q is set) | -first_published (default otherwise) | -updated | -importance | -coverage"
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 100,
              "minimum": 1,
              "default": 20,
              "title": "Limit"
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Cursor"
            }
          },
          {
            "name": "facts",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^(none|top3|all)$",
              "default": "top3",
              "title": "Facts"
            }
          },
          {
            "name": "fields",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Comma-separated fields to return (id always included).",
              "title": "Fields"
            },
            "description": "Comma-separated fields to return (id always included)."
          },
          {
            "name": "q",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "maxLength": 500
                },
                {
                  "type": "null"
                }
              ],
              "description": "Full-text search over titles and facts. Supports \"quoted phrase\", OR, -exclude.",
              "title": "Q"
            },
            "description": "Full-text search over titles and facts. Supports \"quoted phrase\", OR, -exclude."
          },
          {
            "name": "category",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Comma-separated category slugs (see /categories).",
              "title": "Category"
            },
            "description": "Comma-separated category slugs (see /categories)."
          },
          {
            "name": "exclude_category",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Exclude Category"
            }
          },
          {
            "name": "topic",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Comma-separated topics (any).",
              "title": "Topic"
            },
            "description": "Comma-separated topics (any)."
          },
          {
            "name": "person",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Person"
            }
          },
          {
            "name": "organization",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Organization"
            }
          },
          {
            "name": "place",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Place"
            }
          },
          {
            "name": "lang",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Source language(s) of the coverage, e.g. tr,en.",
              "title": "Lang"
            },
            "description": "Source language(s) of the coverage, e.g. tr,en."
          },
          {
            "name": "from",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "First-seen after: 2026-11-18, ISO datetime or 24h / 7d.",
              "title": "From"
            },
            "description": "First-seen after: 2026-11-18, ISO datetime or 24h / 7d."
          },
          {
            "name": "to",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "To"
            }
          },
          {
            "name": "event_from",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Event date (YYYY-MM-DD) on or after.",
              "title": "Event From"
            },
            "description": "Event date (YYYY-MM-DD) on or after."
          },
          {
            "name": "event_to",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Event To"
            }
          },
          {
            "name": "min_importance",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "integer",
                  "maximum": 100,
                  "minimum": 0
                },
                {
                  "type": "null"
                }
              ],
              "title": "Min Importance"
            }
          },
          {
            "name": "min_outlets",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "integer",
                  "minimum": 1
                },
                {
                  "type": "null"
                }
              ],
              "description": "Minimum number of outlets covering the story.",
              "title": "Min Outlets"
            },
            "description": "Minimum number of outlets covering the story."
          },
          {
            "name": "has_numbers",
            "in": "query",
            "required": false,
            "schema": {
              "type": "boolean",
              "default": false,
              "title": "Has Numbers"
            }
          },
          {
            "name": "updated_since",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Only stories updated after this time (ISO or 30m/24h). Sync recipe: poll every 5 min with sort=-updated.",
              "title": "Updated Since"
            },
            "description": "Only stories updated after this time (ISO or 30m/24h). Sync recipe: poll every 5 min with sort=-updated."
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/tr/v1/stories/trending": {
      "get": {
        "tags": [
          "Türkiye"
        ],
        "summary": "Most-covered stories in a recent window",
        "operationId": "trending_tr_v1_stories_trending_get",
        "parameters": [
          {
            "name": "window",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^\\d+[hd]$",
              "default": "24h",
              "title": "Window"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 100,
              "minimum": 1,
              "default": 20,
              "title": "Limit"
            }
          },
          {
            "name": "category",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Category"
            }
          },
          {
            "name": "facts",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^(none|top3|all)$",
              "default": "top3",
              "title": "Facts"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/tr/v1/stories/count": {
      "get": {
        "tags": [
          "Türkiye"
        ],
        "summary": "Story counts over time or by facet",
        "operationId": "count_tr_v1_stories_count_get",
        "parameters": [
          {
            "name": "group_by",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^(hour|day|week|category|topic|language)$",
              "default": "day",
              "title": "Group By"
            }
          },
          {
            "name": "q",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "maxLength": 500
                },
                {
                  "type": "null"
                }
              ],
              "description": "Full-text search over titles and facts. Supports \"quoted phrase\", OR, -exclude.",
              "title": "Q"
            },
            "description": "Full-text search over titles and facts. Supports \"quoted phrase\", OR, -exclude."
          },
          {
            "name": "category",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Comma-separated category slugs (see /categories).",
              "title": "Category"
            },
            "description": "Comma-separated category slugs (see /categories)."
          },
          {
            "name": "exclude_category",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Exclude Category"
            }
          },
          {
            "name": "topic",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Comma-separated topics (any).",
              "title": "Topic"
            },
            "description": "Comma-separated topics (any)."
          },
          {
            "name": "person",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Person"
            }
          },
          {
            "name": "organization",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Organization"
            }
          },
          {
            "name": "place",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Place"
            }
          },
          {
            "name": "lang",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Source language(s) of the coverage, e.g. tr,en.",
              "title": "Lang"
            },
            "description": "Source language(s) of the coverage, e.g. tr,en."
          },
          {
            "name": "from",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "First-seen after: 2026-11-18, ISO datetime or 24h / 7d.",
              "title": "From"
            },
            "description": "First-seen after: 2026-11-18, ISO datetime or 24h / 7d."
          },
          {
            "name": "to",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "To"
            }
          },
          {
            "name": "event_from",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Event date (YYYY-MM-DD) on or after.",
              "title": "Event From"
            },
            "description": "Event date (YYYY-MM-DD) on or after."
          },
          {
            "name": "event_to",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Event To"
            }
          },
          {
            "name": "min_importance",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "integer",
                  "maximum": 100,
                  "minimum": 0
                },
                {
                  "type": "null"
                }
              ],
              "title": "Min Importance"
            }
          },
          {
            "name": "min_outlets",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "integer",
                  "minimum": 1
                },
                {
                  "type": "null"
                }
              ],
              "description": "Minimum number of outlets covering the story.",
              "title": "Min Outlets"
            },
            "description": "Minimum number of outlets covering the story."
          },
          {
            "name": "has_numbers",
            "in": "query",
            "required": false,
            "schema": {
              "type": "boolean",
              "default": false,
              "title": "Has Numbers"
            }
          },
          {
            "name": "updated_since",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Only stories updated after this time (ISO or 30m/24h). Sync recipe: poll every 5 min with sort=-updated.",
              "title": "Updated Since"
            },
            "description": "Only stories updated after this time (ISO or 30m/24h). Sync recipe: poll every 5 min with sort=-updated."
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/tr/v1/stories/{story_id}": {
      "get": {
        "tags": [
          "Türkiye"
        ],
        "summary": "One story with all facts",
        "operationId": "story_tr_v1_stories__story_id__get",
        "parameters": [
          {
            "name": "story_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Story Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/tr/v1/stories/{story_id}/related": {
      "get": {
        "tags": [
          "Türkiye"
        ],
        "summary": "Stories sharing people, organizations or places",
        "operationId": "related_tr_v1_stories__story_id__related_get",
        "parameters": [
          {
            "name": "story_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Story Id"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 50,
              "minimum": 1,
              "default": 10,
              "title": "Limit"
            }
          },
          {
            "name": "facts",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^(none|top3|all)$",
              "default": "none",
              "title": "Facts"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/tr/v1/facts": {
      "get": {
        "tags": [
          "Türkiye"
        ],
        "summary": "Search numbers across stories",
        "operationId": "facts_search_tr_v1_facts_get",
        "parameters": [
          {
            "name": "what",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Text the number describes, e.g. 'inflation' (substring).",
              "title": "What"
            },
            "description": "Text the number describes, e.g. 'inflation' (substring)."
          },
          {
            "name": "unit",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "unit_code (USD, EUR, TRY, percent, people, years...) or raw unit substring.",
              "title": "Unit"
            },
            "description": "unit_code (USD, EUR, TRY, percent, people, years...) or raw unit substring."
          },
          {
            "name": "min_value",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "number"
                },
                {
                  "type": "null"
                }
              ],
              "description": "On value_normalized (scale applied: 400 million USD = 400000000).",
              "title": "Min Value"
            },
            "description": "On value_normalized (scale applied: 400 million USD = 400000000)."
          },
          {
            "name": "max_value",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "number"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Max Value"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 200,
              "minimum": 1,
              "default": 50,
              "title": "Limit"
            }
          },
          {
            "name": "q",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "maxLength": 500
                },
                {
                  "type": "null"
                }
              ],
              "description": "Full-text search over titles and facts. Supports \"quoted phrase\", OR, -exclude.",
              "title": "Q"
            },
            "description": "Full-text search over titles and facts. Supports \"quoted phrase\", OR, -exclude."
          },
          {
            "name": "category",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Comma-separated category slugs (see /categories).",
              "title": "Category"
            },
            "description": "Comma-separated category slugs (see /categories)."
          },
          {
            "name": "exclude_category",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Exclude Category"
            }
          },
          {
            "name": "topic",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Comma-separated topics (any).",
              "title": "Topic"
            },
            "description": "Comma-separated topics (any)."
          },
          {
            "name": "person",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Person"
            }
          },
          {
            "name": "organization",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Organization"
            }
          },
          {
            "name": "place",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Place"
            }
          },
          {
            "name": "lang",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Source language(s) of the coverage, e.g. tr,en.",
              "title": "Lang"
            },
            "description": "Source language(s) of the coverage, e.g. tr,en."
          },
          {
            "name": "from",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "First-seen after: 2026-11-18, ISO datetime or 24h / 7d.",
              "title": "From"
            },
            "description": "First-seen after: 2026-11-18, ISO datetime or 24h / 7d."
          },
          {
            "name": "to",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "To"
            }
          },
          {
            "name": "event_from",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Event date (YYYY-MM-DD) on or after.",
              "title": "Event From"
            },
            "description": "Event date (YYYY-MM-DD) on or after."
          },
          {
            "name": "event_to",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Event To"
            }
          },
          {
            "name": "min_importance",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "integer",
                  "maximum": 100,
                  "minimum": 0
                },
                {
                  "type": "null"
                }
              ],
              "title": "Min Importance"
            }
          },
          {
            "name": "min_outlets",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "integer",
                  "minimum": 1
                },
                {
                  "type": "null"
                }
              ],
              "description": "Minimum number of outlets covering the story.",
              "title": "Min Outlets"
            },
            "description": "Minimum number of outlets covering the story."
          },
          {
            "name": "has_numbers",
            "in": "query",
            "required": false,
            "schema": {
              "type": "boolean",
              "default": false,
              "title": "Has Numbers"
            }
          },
          {
            "name": "updated_since",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Only stories updated after this time (ISO or 30m/24h). Sync recipe: poll every 5 min with sort=-updated.",
              "title": "Updated Since"
            },
            "description": "Only stories updated after this time (ISO or 30m/24h). Sync recipe: poll every 5 min with sort=-updated."
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/tr/v1/entities": {
      "get": {
        "tags": [
          "Türkiye"
        ],
        "summary": "People, organizations, places or topics with story counts (trending + autocomplete)",
        "operationId": "entities_tr_v1_entities_get",
        "parameters": [
          {
            "name": "type",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^(person|organization|place|topic)$",
              "default": "person",
              "title": "Type"
            }
          },
          {
            "name": "q",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "maxLength": 100
                },
                {
                  "type": "null"
                }
              ],
              "description": "Prefix/substring match for autocomplete.",
              "title": "Q"
            },
            "description": "Prefix/substring match for autocomplete."
          },
          {
            "name": "from",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "default": "7d",
              "title": "From"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 100,
              "minimum": 1,
              "default": 20,
              "title": "Limit"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/tr/v1/categories": {
      "get": {
        "tags": [
          "Türkiye"
        ],
        "summary": "Valid category slugs with 7-day story counts",
        "operationId": "categories_tr_v1_categories_get",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          }
        }
      }
    },
    "/tr/v1/usage": {
      "get": {
        "tags": [
          "Türkiye"
        ],
        "summary": "Your calls today and in the last 30 days",
        "operationId": "usage_tr_v1_usage_get",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          }
        }
      }
    },
    "/tr/v1/stories/{story_id}/article": {
      "get": {
        "tags": [
          "Türkiye"
        ],
        "summary": "A short article written from the story's facts in the language you pick (counts as 25 requests; paid plans, daily cap: PRO 20, ULTRA 200, MEGA 1000)",
        "operationId": "article_tr_v1_stories__story_id__article_get",
        "parameters": [
          {
            "name": "story_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Story Id"
            }
          },
          {
            "name": "lang",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "description": "Article language: en, tr, de, fr, es, it, pt, pt-br, nl, da, sv, no, fi, pl, cs, sk, hu, ro, bg, hr, sr, sl, el, et, lv, lt, ca, ru, uk, ar, fa, he, hi, bn, ur, id, ms, tl, vi, th, ja, ko, zh, zh-tw, sw",
              "default": "en",
              "title": "Lang"
            },
            "description": "Article language: en, tr, de, fr, es, it, pt, pt-br, nl, da, sv, no, fi, pl, cs, sk, hu, ro, bg, hr, sr, sl, el, et, lv, lt, ca, ru, uk, ar, fa, he, hi, bn, ur, id, ms, tl, vi, th, ja, ko, zh, zh-tw, sw"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/tr/v1/monitors": {
      "get": {
        "tags": [
          "Türkiye"
        ],
        "summary": "List your monitors",
        "operationId": "monitors_tr_v1_monitors_get",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "Türkiye"
        ],
        "summary": "Create a monitor (saved filter)",
        "operationId": "monitor_create_tr_v1_monitors_post",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Monitor"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/tr/v1/monitors/{mid}": {
      "put": {
        "tags": [
          "Türkiye"
        ],
        "summary": "Replace a monitor",
        "operationId": "monitor_update_tr_v1_monitors__mid__put",
        "parameters": [
          {
            "name": "mid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Mid"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Monitor"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      },
      "delete": {
        "tags": [
          "Türkiye"
        ],
        "summary": "Delete a monitor",
        "operationId": "monitor_delete_tr_v1_monitors__mid__delete",
        "parameters": [
          {
            "name": "mid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Mid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/tr/v1/monitors/{mid}/stories": {
      "get": {
        "tags": [
          "Türkiye"
        ],
        "summary": "Stories matching a monitor (poll with since=)",
        "operationId": "monitor_stories_tr_v1_monitors__mid__stories_get",
        "parameters": [
          {
            "name": "mid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Mid"
            }
          },
          {
            "name": "since",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Updated after: ISO time or 24h.",
              "default": "24h",
              "title": "Since"
            },
            "description": "Updated after: ISO time or 24h."
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 100,
              "minimum": 1,
              "default": 20,
              "title": "Limit"
            }
          },
          {
            "name": "facts",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^(none|top3|all)$",
              "default": "top3",
              "title": "Facts"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "HTTPValidationError": {
        "properties": {
          "detail": {
            "items": {
              "$ref": "#/components/schemas/ValidationError"
            },
            "type": "array",
            "title": "Detail"
          }
        },
        "type": "object",
        "title": "HTTPValidationError"
      },
      "Monitor": {
        "properties": {
          "name": {
            "type": "string",
            "maxLength": 100,
            "minLength": 1,
            "title": "Name"
          },
          "filters": {
            "additionalProperties": true,
            "type": "object",
            "title": "Filters",
            "description": "Same parameters as /stories (q, category, person, min_outlets, ...)."
          }
        },
        "type": "object",
        "required": [
          "name"
        ],
        "title": "Monitor"
      },
      "ValidationError": {
        "properties": {
          "loc": {
            "items": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "integer"
                }
              ]
            },
            "type": "array",
            "title": "Location"
          },
          "msg": {
            "type": "string",
            "title": "Message"
          },
          "type": {
            "type": "string",
            "title": "Error Type"
          },
          "input": {
            "title": "Input"
          },
          "ctx": {
            "type": "object",
            "title": "Context"
          }
        },
        "type": "object",
        "required": [
          "loc",
          "msg",
          "type"
        ],
        "title": "ValidationError"
      }
    }
  }
}