{
  "openapi": "3.1.0",
  "info": {
    "title": "CamFeed public data API",
    "version": "1.0.0",
    "description": "Read-only, unauthenticated public data routes. Selected published work from 10 May 2026 Sydney; not a complete career archive. Follow next_url until null for archive/search traversal. Pagination is live, not a frozen snapshot. Feeds are compact recent collections. Cite canonical_url and retain provenance. Stored articles are not offered under a republication licence. MCP has a separate connection guide at /mcp-info. This hand-maintained static specification excludes operational and private routes."
  },
  "servers": [
    {
      "url": "https://camfeed.cameronwilson.com.au"
    }
  ],
  "security": [],
  "paths": {
    "/archive.json": {
      "get": {
        "summary": "Complete eligible public corpus, including grouped records",
        "parameters": [
          {
            "name": "page",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "default": 1
            }
          },
          {
            "name": "page_size",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 200,
              "default": 200
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful public read",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Archive"
                }
              }
            },
            "headers": {
              "Link": {
                "description": "Next page URL with rel=next when another page exists.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded. Cache responses and wait before retrying.",
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "integer"
                },
                "description": "Seconds to wait before retrying."
              }
            }
          },
          "422": {
            "description": "Invalid pagination parameter"
          }
        }
      }
    },
    "/search.json": {
      "get": {
        "summary": "Search reporting and transcripts; empty q enumerates public records",
        "parameters": [
          {
            "name": "q",
            "in": "query",
            "schema": {
              "type": "string",
              "maxLength": 300,
              "default": ""
            }
          },
          {
            "name": "page",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "default": 1
            }
          },
          {
            "name": "page_size",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 50,
              "default": 20
            }
          },
          {
            "name": "source",
            "in": "query",
            "schema": {
              "type": "string",
              "maxLength": 40
            },
            "description": "Exact stored source_type, for example abc or camclip."
          },
          {
            "name": "kind",
            "in": "query",
            "schema": {
              "type": "string",
              "maxLength": 40
            },
            "description": "Exact item type, for example news article or video clip."
          }
        ],
        "responses": {
          "200": {
            "description": "Successful public read",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SearchResults"
                }
              }
            },
            "headers": {
              "Link": {
                "description": "Next page URL with rel=next when another page exists.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded. Cache responses and wait before retrying.",
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "integer"
                },
                "description": "Seconds to wait before retrying."
              }
            }
          },
          "422": {
            "description": "Invalid search parameter"
          }
        }
      }
    },
    "/items/{item_id}.json": {
      "get": {
        "summary": "Full public item with available stored text, transcript and related records",
        "parameters": [
          {
            "name": "item_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful public read",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicItem"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded. Cache responses and wait before retrying.",
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "integer"
                },
                "description": "Seconds to wait before retrying."
              }
            }
          },
          "404": {
            "description": "Item missing or not public"
          },
          "422": {
            "description": "Invalid item ID"
          }
        }
      }
    },
    "/items/{item_id}.md": {
      "get": {
        "summary": "Public item as source-attributed Markdown",
        "parameters": [
          {
            "name": "item_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful public read",
            "content": {
              "text/markdown": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded. Cache responses and wait before retrying.",
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "integer"
                },
                "description": "Seconds to wait before retrying."
              }
            }
          },
          "404": {
            "description": "Item missing or not public"
          },
          "422": {
            "description": "Invalid item ID"
          }
        }
      }
    },
    "/feed.json": {
      "get": {
        "summary": "Compact recent work in JSON Feed 1.1",
        "parameters": [
          {
            "name": "limit",
            "in": "query",
            "description": "Clamped to 1–200, rather than rejected when out of range.",
            "schema": {
              "type": "integer",
              "default": 100
            }
          },
          {
            "name": "view",
            "in": "query",
            "description": "Unknown values fall back to all.",
            "schema": {
              "type": "string",
              "default": "all",
              "enum": [
                "all",
                "articles",
                "newsletter",
                "audio",
                "appearances",
                "social"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful public read",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "version",
                    "items"
                  ],
                  "properties": {
                    "version": {
                      "const": "https://jsonfeed.org/version/1.1"
                    },
                    "items": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "additionalProperties": true
                      }
                    }
                  },
                  "additionalProperties": true
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded. Cache responses and wait before retrying.",
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "integer"
                },
                "description": "Seconds to wait before retrying."
              }
            }
          }
        }
      }
    },
    "/feed.xml": {
      "get": {
        "summary": "Compact recent work as RSS 2.0",
        "parameters": [
          {
            "name": "limit",
            "in": "query",
            "description": "Clamped to 1–200, rather than rejected when out of range.",
            "schema": {
              "type": "integer",
              "default": 100
            }
          },
          {
            "name": "view",
            "in": "query",
            "description": "Unknown values fall back to all.",
            "schema": {
              "type": "string",
              "default": "all",
              "enum": [
                "all",
                "articles",
                "newsletter",
                "audio",
                "appearances",
                "social"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful public read",
            "content": {
              "application/rss+xml": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded. Cache responses and wait before retrying.",
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "integer"
                },
                "description": "Seconds to wait before retrying."
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "PublicItem": {
        "type": "object",
        "required": [
          "id",
          "numeric_id",
          "title",
          "canonical_url",
          "provenance"
        ],
        "properties": {
          "title": {
            "type": "string"
          },
          "source": {
            "type": "string"
          },
          "source_type": {
            "type": "string"
          },
          "type": {
            "type": "string"
          },
          "content_role": {
            "type": "string"
          },
          "author": {
            "type": "string"
          },
          "summary": {
            "type": "string"
          },
          "text": {
            "type": "string"
          },
          "transcript": {
            "type": "string"
          },
          "transcript_kind": {
            "type": "string"
          },
          "citation": {
            "type": "string"
          },
          "citation_markdown": {
            "type": "string"
          },
          "attribution": {
            "type": "string"
          },
          "full_text": {
            "type": "string"
          },
          "full_text_status": {
            "type": "string"
          },
          "full_text_attribution": {
            "type": "string"
          },
          "canonical_url": {
            "type": "string",
            "format": "uri"
          },
          "item_url": {
            "type": "string",
            "format": "uri"
          },
          "json_url": {
            "type": "string",
            "format": "uri"
          },
          "markdown_url": {
            "type": "string",
            "format": "uri"
          },
          "published_at": {
            "type": [
              "string",
              "null"
            ]
          },
          "source_modified_at": {
            "type": [
              "string",
              "null"
            ]
          },
          "archive_updated_at": {
            "type": [
              "string",
              "null"
            ]
          },
          "id": {
            "type": "string",
            "pattern": "^camfeed-[0-9]+$",
            "example": "camfeed-94"
          },
          "numeric_id": {
            "type": "integer",
            "minimum": 1
          },
          "has_full_text": {
            "type": "boolean"
          },
          "has_transcript": {
            "type": "boolean"
          },
          "provenance": {
            "type": "object",
            "description": "Authorship or participation, original publisher/source and archive/capture attribution. Unknown values may be empty.",
            "additionalProperties": true
          },
          "related_items": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": true
            }
          }
        },
        "additionalProperties": true,
        "description": "Public item. Text/transcript fields depend on stored availability; preserve provenance and cite canonical_url. Extra public fields can be added."
      },
      "Archive": {
        "type": "object",
        "required": [
          "version",
          "items",
          "total_count",
          "next_url",
          "coverage"
        ],
        "properties": {
          "page": {
            "type": "integer"
          },
          "page_size": {
            "type": "integer"
          },
          "total_count": {
            "type": "integer"
          },
          "next_url": {
            "type": [
              "string",
              "null"
            ]
          },
          "previous_url": {
            "type": [
              "string",
              "null"
            ]
          },
          "version": {
            "const": "camfeed-public-archive-v1"
          },
          "count": {
            "type": "integer"
          },
          "private_archive_included": {
            "const": false
          },
          "coverage": {
            "type": "object",
            "properties": {
              "configured_start": {
                "type": "string"
              },
              "earliest_publication": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "latest_publication": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "sources": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "scope": {
                "type": "string"
              }
            }
          },
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PublicItem"
            }
          }
        },
        "additionalProperties": true
      },
      "SearchResults": {
        "type": "object",
        "required": [
          "query",
          "results",
          "total_count",
          "next_url"
        ],
        "properties": {
          "page": {
            "type": "integer"
          },
          "page_size": {
            "type": "integer"
          },
          "total_count": {
            "type": "integer"
          },
          "next_url": {
            "type": [
              "string",
              "null"
            ]
          },
          "previous_url": {
            "type": [
              "string",
              "null"
            ]
          },
          "query": {
            "type": "string"
          },
          "results": {
            "type": "array",
            "items": {
              "type": "object",
              "required": [
                "id",
                "title",
                "canonical_url",
                "item_url",
                "json_url",
                "markdown_url"
              ],
              "properties": {
                "id": {
                  "type": "string",
                  "pattern": "^camfeed-[0-9]+$",
                  "example": "camfeed-94"
                },
                "title": {
                  "type": "string"
                },
                "canonical_url": {
                  "type": "string",
                  "format": "uri"
                },
                "item_url": {
                  "type": "string",
                  "format": "uri"
                },
                "json_url": {
                  "type": "string",
                  "format": "uri"
                },
                "markdown_url": {
                  "type": "string",
                  "format": "uri"
                },
                "published_at": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "content_role": {
                  "type": "string"
                },
                "source": {
                  "type": "string"
                },
                "type": {
                  "type": "string"
                },
                "has_transcript": {
                  "type": "boolean"
                },
                "snippet": {
                  "type": "string"
                }
              },
              "additionalProperties": true
            }
          }
        },
        "additionalProperties": true
      }
    }
  }
}
