Skip to content
This repository was archived by the owner on May 21, 2024. It is now read-only.

Commit 4735f5e

Browse files
committed
add twitch api
1 parent e066669 commit 4735f5e

1 file changed

Lines changed: 45 additions & 0 deletions

File tree

yabcounts.yaml

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -256,6 +256,51 @@ paths:
256256
type: integer
257257
postCount:
258258
type: integer
259+
/twitch/channel/{username}:
260+
get:
261+
summary: Get a Twitch channel
262+
parameters:
263+
- name: username
264+
in: path
265+
required: true
266+
schema:
267+
type: string
268+
description: The username of the Twitch channel.
269+
example: ninja
270+
- name: fields
271+
in: query
272+
required: false
273+
schema:
274+
type: string
275+
description: Used to specify the specific fields you want from the response.
276+
example: name,statistics.followerCount
277+
responses:
278+
"200":
279+
description: OK
280+
content:
281+
application/json:
282+
schema:
283+
type: object
284+
properties:
285+
username:
286+
type: string
287+
name:
288+
type: string
289+
handle:
290+
type: string
291+
url:
292+
type: string
293+
thumbnail:
294+
type: string
295+
banner:
296+
type: string
297+
description:
298+
type: string
299+
statistics:
300+
type: object
301+
properties:
302+
followerCount:
303+
type: integer
259304
components:
260305
securitySchemes:
261306
apiKey:

0 commit comments

Comments
 (0)