Docs / List Topics
List Topics
List Topics
GET/v1/site/topics
- Auth
- none
- Cache-Control
public, max-age=30, stale-while-revalidate=150, stale-if-error=300- Validators
ETag, Last-Modified- Source of truth
clients/openapi.jsonanddocs/API.md§12
The topic directory: every hub, its fixed description, its count in the scan.
`window` filters the counts the same way the hub page's own filter does, so the directory and the page it links to can never disagree about how busy a subject is.
Description: clients/openapi.json
Parameters
| Name | In | Required | Type | Example | Notes |
|---|---|---|---|---|---|
locale | query | no | string | en | Counts for one locale; omit for all |
window | query | no | string | all | 30d | 7d | 24h | |
view | query | no | string | Latest public report for each followable topic in one edition |
Example request
curl -sS \
'https://vg.tempproject.online/v1/site/topics'import json
import os
import urllib.request
URL = "https://vg.tempproject.online/v1/site/topics"
def call() -> dict:
req = urllib.request.Request(URL, headers={})
with urllib.request.urlopen(req, timeout=15) as res:
print(res.status, res.headers.get("ETag"))
return json.loads(res.read().decode("utf-8"))
if __name__ == "__main__":
body = call()
print(json.dumps(body, indent=2, ensure_ascii=False)[:2000])const res = await fetch(
"https://vg.tempproject.online/v1/site/topics",
{
method: "GET",
headers: {},
},
);
if (!res.ok) throw new Error(`${res.status} ${await res.text()}`);
console.log(res.headers.get("etag"), await res.json());The requests are generated from the path template and the parameters in clients/openapi.json, so a new parameter appears here without an edit to this site.
Example response
cache-control: public, max-age=30, stale-while-revalidate=150, stale-if-error=300
# validators: ETag, Last-Modified
content-type: application/octet-streamNo JSON body on this route; the headers are the ones docs/API.md §2 documents for it
Failures
This operation can answer 200, 304, 400, 422, 429, 503. The full envelope for each status, with its body, is on Errors.