- {/*This is custom HEAD overwrites the default one*/}
COH3 Stats - Open Data
+
+
<>
@@ -259,4 +269,4 @@ const About: NextPage = () => {
);
};
-export default About;
+export default OpenData;
diff --git a/pages/other/player-export.tsx b/pages/other/player-export.tsx
new file mode 100644
index 00000000..a6b89051
--- /dev/null
+++ b/pages/other/player-export.tsx
@@ -0,0 +1,102 @@
+import { NextPage } from "next";
+import React, { useEffect } from "react";
+import { AnalyticsPlayerExportPageView } from "../../src/firebase/analytics";
+import Head from "next/head";
+import { Anchor, Code, Container, Space, Text, Title } from "@mantine/core";
+import { generateKeywordsString } from "../../src/head-utils";
+
+const exampleOutput = `alias,relic_id,steam_id,1v1_axis_elo,1v1_allies_elo,german_1v1_rank,german_1v1_elo,german_1v1_total,american_1v1_rank,american_1v1_elo,american_1v1_total,dak_1v1_rank,dak_1v1_elo,dak_1v1_total,british_1v1_rank,british_1v1_elo,british_1v1_total
+Isildur,3705,76561198018614046,1432,1475,-1,1432,23,-1,1307,14,-1,1417,13,-1,1475,34
+Rei,871,76561198404414770,1547,1607,43,1547,106,33,1602,139,26,1510,76,-1,1607,87
+jibber,6219,76561198090318538,1717,1679,10,1717,229,21,1657,187,-1,1594,232,-1,1679,100
+Luvnest,108833,76561197982704567,1543,1634,45,1543,146,37,1593,101,67,1400,85,18,1634,97
+elpern,61495,76561198019498694,1681,1717,-1,1681,139,-1,1699,178,-1,1611,100,-1,1717,156
+IncaUna,1287,76561198152399446,1557,1691,-1,1557,24,-1,1218,5,-1,1510,46,-1,1691,157`;
+
+const keywords = generateKeywordsString(["coh3 players", "export", "csv"]);
+
+const PlayerExport: NextPage = () => {
+ useEffect(() => {
+ AnalyticsPlayerExportPageView();
+ }, []);
+
+ return (
+ <>
+
+ COH3 Stats - Player Export in CSV
+
+
+
+
+ <>
+
+
+ COH3 Stats - Player Export in CSV
+
+
+ API for tournament organizers.
+
+
+ This API gives you access to players leaderboard stats in CSV format. Which you can
+ easily import in Excel sheet.
+
+
+
+ Export the data via this link:
+ {`https://coh3stats.com/api/playerExport?types=["1v1"]&profileIDs=[3705,871,6219,108833,61495,1287]`}
+
+
+ Parameter types
can be {`["1v1", "2v2", "3v3", "4v4"]`}
.
+
+ Parameter profileIDs
is an array of Relic profile IDs. You can find them
+ on COH3 Stats player cards.
+
+
+
+ Example how to import the data into Google Sheets is{" "}
+
+ here
+
+ .
+
+
+
+ Example output:
+
+ {exampleOutput}
+
+
+
+ In case you need the data for your tournament in different format or you have any
+ other questions, let us know on Discord.
+
+
+ Shout-out for coh3stats.com at your tournament would be awesome. Thank you
+
+
+
+ Please note that this API is designed for use in tournaments or with a limited number
+ of players.
+
+ {" "}
+ It is not intended for programmatic use.
+ {" "}
+ For any API collaboration head over to our Discord.
+
+
+ >
+ >
+ );
+};
+
+export default PlayerExport;
diff --git a/src/firebase/analytics.ts b/src/firebase/analytics.ts
index e11edcc7..4327bcb6 100644
--- a/src/firebase/analytics.ts
+++ b/src/firebase/analytics.ts
@@ -44,6 +44,10 @@ export const AnalyticsOpenDataPageView = (): void => {
logFBEvent("open_data_view");
};
+export const AnalyticsPlayerExportPageView = (): void => {
+ logFBEvent("player_export_view");
+};
+
export const SearchPageView = (): void => {
logFBEvent("search_view");
};
diff --git a/src/routes.ts b/src/routes.ts
index fbdce23c..d3a975f4 100644
--- a/src/routes.ts
+++ b/src/routes.ts
@@ -95,6 +95,10 @@ export const getOpenDataRoute = () => {
return encodeURI(`/other/open-data`);
};
+export const getPlayerExportRoute = () => {
+ return encodeURI(`/other/player-export`);
+};
+
export const getRankingTiersRoute = () => {
return encodeURI(`/other/ranking-tiers`);
};