{"openapi":"3.1.0","info":{"title":"jobscraper","version":"0.1.0"},"paths":{"/":{"get":{"summary":"Landing","description":"The market chooser. Counts are live, so a card is useful rather than\ndecorative — and an empty market reads as empty instead of broken.","operationId":"landing__get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/{market}":{"get":{"summary":"Index","description":"One market's page — the same page, pinned to that market.","operationId":"index__market__get","parameters":[{"name":"market","in":"path","required":true,"schema":{"type":"string","title":"Market"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/stats":{"get":{"summary":"Stats","description":"Pipeline health at a glance, so an empty table can be told apart from\na broken pipeline.\n\nEvery figure here is keyed on when a row was WRITTEN, never on when its\nposting was fetched or published — those lag by hours and would report a\nworking pipeline as a stalled one.","operationId":"stats_api_stats_get","parameters":[{"name":"market","in":"query","required":false,"schema":{"type":"string","default":"","title":"Market"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/filters":{"get":{"summary":"Filters","description":"What the filter controls may offer, with counts, read from the DATA.\n\nScoped to the market, so /fi does not offer a category that only exists in\nIsraeli postings — a control that filters to an empty screen is the exact\nfailure `filter_options` reads from the rows to avoid.","operationId":"filters_api_filters_get","parameters":[{"name":"market","in":"query","required":false,"schema":{"type":"string","default":"","title":"Market"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/skills/stats":{"get":{"summary":"Skills Stats","description":"Skill distribution across the FILTERED slice, most-demanded first.\n\nShares `job_filter_sql` with /api/jobs, so this and the table below it can\nnever describe different populations — which is the whole reason the two\nviews sit behind one filter bar.","operationId":"skills_stats_api_skills_stats_get","parameters":[{"name":"category","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"title":"Category"}},{"name":"seniority","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"title":"Seniority"}},{"name":"source","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"title":"Source"}},{"name":"year","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"integer"}},{"type":"null"}],"title":"Year"}},{"name":"month","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"integer"}},{"type":"null"}],"title":"Month"}},{"name":"skill","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"title":"Skill"}},{"name":"location","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"title":"Location"}},{"name":"market","in":"query","required":false,"schema":{"type":"string","default":"","title":"Market"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":500,"minimum":1,"default":100,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/jobs":{"get":{"summary":"Jobs","description":"Most recent jobs first, filtered, one page at a time.\n\nOrdered by ACTIVITY — `last_seen_at` — not by insertion. A repost or a\ncross-post moves a job to the top and it then sinks naturally as newer ones\narrive, so the event happens where the reader is already looking. Before\nthis the list was `id DESC`: a bumped job changed a badge on a row nobody\nhad reason to revisit.\n\nIt used to be id BECAUSE ids are monotonic and a timestamp is not unique by\nconstruction. That reason is answered rather than ignored — the sort key is\nthe PAIR `(last_seen_at, id)`, and the cursor is a row-value comparison over\nthe same pair, so the ordering is total even when two rows share a\ntimestamp. (Measured: 1,200 rows, 1,200 distinct timestamps, so the\ntiebreaker almost never fires. It is there so \"almost\" is not load-bearing.)\n\n`since_seen` is the LIVE POLL (what has been acted on since); `before_seen`\n+ `before_id` is the PAGE CURSOR. Cursor rather than OFFSET deliberately:\nrows arrive while someone is reading, and OFFSET 200 would silently shift\nevery page under them.\n\nThe cost of a mutable sort key, stated plainly: a job bumped while the\nreader is on page 3 moves to page 1, so paging on past it will not show it\nagain in that session. Only ever a SKIP and never a duplicate, because\n`last_seen_at` only moves forward — and the skipped row is now the most\nvisible one in the app rather than a hidden one. Measured at 3.0% reposted\nand 7.4% cross-posted, so it is rare as well as benign.","operationId":"jobs_api_jobs_get","parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":100,"title":"Limit"}},{"name":"q","in":"query","required":false,"schema":{"type":"string","maxLength":200,"default":"","title":"Q"}},{"name":"since_seen","in":"query","required":false,"schema":{"type":"string","default":"","title":"Since Seen"}},{"name":"before_seen","in":"query","required":false,"schema":{"type":"string","default":"","title":"Before Seen"}},{"name":"before_id","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Before Id"}},{"name":"category","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"title":"Category"}},{"name":"seniority","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"title":"Seniority"}},{"name":"source","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"title":"Source"}},{"name":"year","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"integer"}},{"type":"null"}],"title":"Year"}},{"name":"month","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"integer"}},{"type":"null"}],"title":"Month"}},{"name":"skill","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"title":"Skill"}},{"name":"location","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"title":"Location"}},{"name":"market","in":"query","required":false,"schema":{"type":"string","default":"","title":"Market"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/health":{"get":{"summary":"Health","description":"Distinguishes 'database unreachable' from 'no jobs yet' — the two look\nidentical from the page otherwise.","operationId":"health_api_health_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}}},"components":{"schemas":{"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"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"}}}}