{"openapi":"3.1.0","info":{"title":"Tease API","version":"1"},"tags":[{"name":"Statistics"}],"servers":[{"url":"https://app.tease.club"}],"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"}}},"paths":{"/v1/accounts/{account_id}/statistics":{"get":{"summary":"Read statistics","description":"Daily revenue and new fans over a window of at most a year (the last 30 days by default), counted on the call. `revenue` is the platform's own history. `new_fans_coverage_from` (unix seconds) is when we began collecting the account's fans: each `new_fans` day before it is `count: null, reconstructed: true`, since the fan list we first read held only fans still on it then; a day from it on is `count` with `reconstructed: false`, and a day missing from the list had no new fan.","operationId":"get_statistics_v1_accounts__account_id__statistics_get","parameters":[{"name":"account_id","in":"path","required":true,"schema":{"type":"string","maxLength":64,"title":"Account Id"}},{"name":"occurred_from","in":"query","required":false,"schema":{"anyOf":[{"type":"integer","minimum":0},{"type":"null"}],"title":"Occurred From"}},{"name":"occurred_to","in":"query","required":false,"schema":{"anyOf":[{"type":"integer","minimum":1},{"type":"null"}],"title":"Occurred To"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"x-api-key-scope":"read","tags":["Statistics"]}}}}
