diff --git a/src/Utils.ts b/src/Utils.ts index 6d075fa..1fc5a62 100644 --- a/src/Utils.ts +++ b/src/Utils.ts @@ -23,7 +23,8 @@ async function extractGuids(url: string, client: ApiClient): Promise | undefined) => response?.data.metrics.videos); - const result: Array = await client.callApi(`groups/${groupMatch[1]}/videos?$top=${videoNumber}&$orderby=publishedDate asc`, 'get') + // Anything above $top=100 results in 400 Bad Request + const result: Array = await client.callApi(`groups/${groupMatch[1]}/videos?$top=100&$orderby=publishedDate asc`, 'get') .then((response: AxiosResponse | undefined) => response?.data.value.map((item: any) => item.id)); return result;