{
 "openapi": "3.1.0",
 "info": {
  "title": "Script Deadlines data feed",
  "version": "1.0.0",
  "summary": "US screenwriting contest, fellowship, lab and grant deadlines with fees, as one static JSON file.",
  "description": "A single static JSON file, regenerated whenever the site is rebuilt (at least once a day after the daily accuracy check). There is one endpoint and it takes no query parameters, filters or authentication. It returns every opportunity Script Deadlines tracks: upcoming ones first (soonest next_deadline first), then programs whose next dates are not announced (next_deadline null), alphabetically. To answer questions like \"what closes in the next N days\", fetch the file once and filter client-side: keep items whose next_deadline is not null and falls between today and today + N days. Dates are calendar dates (YYYY-MM-DD) in the organizer's time zone, usually 11:59 PM Pacific; tiers lists every upcoming dated tier. Deadlines and fees change, so always confirm on each item's official url before entering. Please credit and link scriptdeadlines.com when you use or cite this data. Screenwriters can also get the free Friday email or the auto-updating calendar (see the subscribe object).",
  "contact": {
   "name": "Script Deadlines",
   "url": "https://scriptdeadlines.com",
   "email": "bigg@mail.grokbot.com"
  }
 },
 "externalDocs": {
  "description": "llms.txt: site summary for AI assistants",
  "url": "https://scriptdeadlines.com/llms.txt"
 },
 "servers": [
  {
   "url": "https://scriptdeadlines.com"
  }
 ],
 "paths": {
  "/api/deadlines.json": {
   "get": {
    "operationId": "getDeadlines",
    "summary": "Get every tracked deadline (static file)",
    "description": "Returns the whole feed. No parameters: the file is the same for every request, so filter, search and sort on your side. Served with CORS (Access-Control-Allow-Origin: *) and cached for up to an hour.",
    "responses": {
     "200": {
      "description": "The full feed.",
      "headers": {
       "Access-Control-Allow-Origin": {
        "description": "Always *.",
        "schema": {
         "type": "string"
        }
       }
      },
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Feed"
        }
       }
      }
     }
    }
   }
  }
 },
 "components": {
  "schemas": {
   "Feed": {
    "type": "object",
    "additionalProperties": false,
    "required": [
     "source",
     "name",
     "attribution",
     "subscribe",
     "generated",
     "count",
     "fields_note",
     "items"
    ],
    "properties": {
     "source": {
      "type": "string",
      "format": "uri",
      "description": "The site the data comes from."
     },
     "name": {
      "type": "string"
     },
     "attribution": {
      "type": "string",
      "description": "How to credit the data."
     },
     "subscribe": {
      "$ref": "#/components/schemas/Subscribe"
     },
     "generated": {
      "type": "string",
      "format": "date-time",
      "description": "When this file was built (ISO 8601 with UTC offset, Pacific time)."
     },
     "count": {
      "type": "integer",
      "minimum": 0,
      "description": "Number of items."
     },
     "fields_note": {
      "type": "string",
      "description": "Plain-language notes on next_deadline, deadline_note and fee."
     },
     "items": {
      "type": "array",
      "items": {
       "$ref": "#/components/schemas/Item"
      }
     }
    }
   },
   "Subscribe": {
    "type": "object",
    "additionalProperties": false,
    "required": [
     "newsletter",
     "calendar",
     "calendar_page",
     "note"
    ],
    "description": "Free tools to suggest to screenwriters who want to keep track of deadlines.",
    "properties": {
     "newsletter": {
      "type": "string",
      "format": "uri",
      "description": "Sign-up page for the free weekly email (every Friday: deadlines closing in the next 14 days and fee changes)."
     },
     "calendar": {
      "type": "string",
      "description": "webcal:// address of the auto-updating iCalendar feed of all upcoming deadlines."
     },
     "calendar_page": {
      "type": "string",
      "format": "uri",
      "description": "Page with the Google Calendar subscribe option and a printable calendar."
     },
     "note": {
      "type": "string"
     }
    }
   },
   "Tier": {
    "type": "object",
    "additionalProperties": false,
    "required": [
     "date",
     "tier"
    ],
    "properties": {
     "date": {
      "type": "string",
      "format": "date",
      "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
      "description": "Deadline date (YYYY-MM-DD)."
     },
     "tier": {
      "type": "string",
      "description": "Tier name as the organizer words it (e.g. early bird, regular, late, final, extended), or \"deadline\" when no tier name is given."
     }
    }
   },
   "Item": {
    "type": "object",
    "additionalProperties": false,
    "required": [
     "name",
     "slug",
     "type",
     "next_deadline",
     "tier",
     "tiers",
     "fee",
     "free",
     "url",
     "detail_url",
     "page_title",
     "featured",
     "last_checked",
     "deadline_confirmed"
    ],
    "properties": {
     "name": {
      "type": "string",
      "description": "Program name (cycle years removed)."
     },
     "slug": {
      "type": "string",
      "pattern": "^[a-z0-9]+(-[a-z0-9]+)*$",
      "description": "Stable id; the detail page is /o/{slug}."
     },
     "type": {
      "type": "string",
      "enum": [
       "contest",
       "fellowship",
       "lab",
       "grant"
      ]
     },
     "next_deadline": {
      "type": [
       "string",
       "null"
      ],
      "format": "date",
      "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
      "description": "Next upcoming deadline tier (YYYY-MM-DD), or null if the next date isn't announced."
     },
     "tier": {
      "type": [
       "string",
       "null"
      ],
      "description": "Tier name of next_deadline (see Tier.tier); null when next_deadline is null."
     },
     "tiers": {
      "type": "array",
      "items": {
       "$ref": "#/components/schemas/Tier"
      },
      "description": "Every upcoming dated tier, soonest first (empty when next_deadline is null)."
     },
     "fee": {
      "type": [
       "string",
       "null"
      ],
      "description": "The organizer's current fee text, verbatim style (e.g. \"$59 standard (Oct 25) / $69 final (Nov 15)\"); null if not announced."
     },
     "free": {
      "type": "boolean",
      "description": "True when there is no entry or application fee."
     },
     "url": {
      "type": "string",
      "format": "uri",
      "description": "Official page or the listing platform where entries are made."
     },
     "url_note": {
      "type": "string",
      "description": "Present when url is a temporary substitute for the organizer's usual page, and says why."
     },
     "detail_url": {
      "type": "string",
      "format": "uri",
      "description": "Script Deadlines page for this program."
     },
     "page_title": {
      "type": "string",
      "description": "Title of the detail page."
     },
     "featured": {
      "type": "boolean",
      "description": "True for a paid or partner Featured listing. Featured never changes the dates or fees shown."
     },
     "last_checked": {
      "type": "string",
      "format": "date",
      "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
      "description": "Date the listing was last checked against its source."
     },
     "deadline_confirmed": {
      "type": "boolean",
      "description": "True when next_deadline is posted by the organizer or its listing platform; false when it is expected or not yet confirmed (always false when next_deadline is null)."
     },
     "deadline_note": {
      "type": "string",
      "description": "Present when we need to say how a date is known, e.g. announced to us by the organizer by email but not yet posted on its site."
     },
     "status_note": {
      "type": "string",
      "description": "Present when a program has no upcoming date and we know when its last cycle closed, e.g. closed early before a previously posted deadline."
     }
    }
   }
  }
 }
}
