{
  "openapi": "3.1.0",
  "info": {
    "title": "türkülerim.com Static Agent API",
    "version": "v1-static",
    "description": "Static JSON endpoints for Turkish folk song lyrics. No sessions, cookies, authentication, or legacy source URL fields are required."
  },
  "servers": [
    {
      "url": "https://turkulerim.com/api/v1"
    }
  ],
  "paths": {
    "/index.json": {
      "get": {
        "summary": "API entrypoint and policy metadata",
        "responses": {
          "200": {
            "description": "API metadata"
          }
        }
      }
    },
    "/search-index.json": {
      "get": {
        "summary": "Compact search index for all songs",
        "responses": {
          "200": {
            "description": "Search index"
          }
        }
      }
    },
    "/authors.json": {
      "get": {
        "summary": "Author and source-person index",
        "responses": {
          "200": {
            "description": "Author index",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "additionalProperties": false,
                    "properties": {
                      "name": {
                        "type": "string"
                      },
                      "slug": {
                        "type": "string"
                      },
                      "count": {
                        "type": "integer"
                      },
                      "pageUrl": {
                        "type": "string",
                        "format": "uri"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/locations.json": {
      "get": {
        "summary": "Location index",
        "responses": {
          "200": {
            "description": "Location index",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "additionalProperties": false,
                    "properties": {
                      "name": {
                        "type": "string"
                      },
                      "slug": {
                        "type": "string"
                      },
                      "count": {
                        "type": "integer"
                      },
                      "pageUrl": {
                        "type": "string",
                        "format": "uri"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/songs/{id}.json": {
      "get": {
        "summary": "Single song lyrics and metadata by song id",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^song-[0-9]+$"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Song record",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "properties": {
                    "id": {
                      "type": "string"
                    },
                    "title": {
                      "type": "string"
                    },
                    "slug": {
                      "type": "string"
                    },
                    "author": {
                      "type": "string"
                    },
                    "location": {
                      "type": "string"
                    },
                    "region": {
                      "type": "string"
                    },
                    "authorSlug": {
                      "type": "string"
                    },
                    "locationSlug": {
                      "type": "string"
                    },
                    "variantLabel": {
                      "type": "string"
                    },
                    "lyricsClean": {
                      "type": "string"
                    },
                    "lyricsLines": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    "hasAuthor": {
                      "type": "boolean"
                    },
                    "hasLocation": {
                      "type": "boolean"
                    },
                    "pageUrl": {
                      "type": "string",
                      "format": "uri"
                    },
                    "license": {
                      "type": "string",
                      "format": "uri"
                    },
                    "citation": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "Static file not found"
          }
        }
      }
    }
  },
  "x-usage-policy": "Bulk reuse, republication, commercial reuse, AI training and model ingestion require prior permission."
}