{"id":174,"date":"2024-11-11T06:49:22","date_gmt":"2024-11-11T05:49:22","guid":{"rendered":"https:\/\/www.systemdeveloper.nl\/tech\/?p=174"},"modified":"2024-11-28T13:55:10","modified_gmt":"2024-11-28T12:55:10","slug":"building-a-sports-data-api-with-mongodb-and-flask","status":"publish","type":"post","link":"https:\/\/www.systemdeveloper.nl\/tech\/building-a-sports-data-api-with-mongodb-and-flask\/","title":{"rendered":"Building a Sports Data API with MongoDB and Flask"},"content":{"rendered":"<p class=\"wp-block-paragraph wp-block-paragraph\" style=\"\">In this project, we set out to create a flexible, high-performance sports data API to manage complex data on football teams, players, matches, and competitions. Using the Data Sports Group API as our data source, we developed a process to import this data into MongoDB, ensuring efficient storage and quick access. We then built a custom Flask API to provide endpoints that deliver this data to applications, making the data easy to retrieve and integrate. Here&rsquo;s an overview of how we approached this project, including a detailed example to illustrate the process.<\/p>\n\n\n<p class=\"wp-block-paragraph wp-block-paragraph\" style=\"\">If you&#8217;d like to get started right away, read <a href=\"https:\/\/www.systemdeveloper.nl\/tech\/setting-up-mongodb-with-python-for-data-import-and-api-access\/\">Setting Up MongoDB with Python for Data Import and API Access<\/a><\/p>\n\n\n<h3 class=\"wp-block-heading\" id=\"step-1-data-import-from-the-data-sports-group-api\">Step 1: Data Import from the Data Sports Group API<\/h3>\n\n\n<p class=\"wp-block-paragraph wp-block-paragraph\" style=\"\">We began by writing scripts to fetch data from the Data Sports Group API. The data, provided in JSON format, included details about players, teams, squads, and other football-related information. Here&rsquo;s a look at the main steps:<\/p>\n\n\n<ol class=\"wp-block-list\">\n<li>\n<strong>API Requests<\/strong>: Using the <code>requests<\/code> library in Python, we pulled data from various endpoints, such as those for team details, player statistics, and match information.<\/li>\n\n\n\n<li>\n<strong>MongoDB Collections<\/strong>: The data was organized into multiple MongoDB collections:<ul class=\"wp-block-list wp-block-list wp-block-list\">\n<li>\n<strong><code>people<\/code><\/strong>: Holds detailed data about players, indexed by fields such as <code>people_id<\/code> and <code>membership_id<\/code>.<\/li>\n\n\n\n<li>\n<strong><code>team<\/code><\/strong>: Stores team details, including unique identifiers and team metadata.<\/li>\n\n\n\n<li>\n<strong><code>squad<\/code><\/strong>: A streamlined collection containing team summaries and lists of players within each team.<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>\n<strong>Field Management<\/strong>: We carefully structured fields in MongoDB, using indexes to improve search speed and controlling field types to maintain data consistency. For example, fields such as <code>goals<\/code> were kept as strings to match the original format, avoiding issues with data conversion.<\/li>\n<\/ol>\n\n\n<h3 class=\"wp-block-heading\" id=\"step-2-building-the-flask-api\">Step 2: Building the Flask API<\/h3>\n\n\n<p class=\"wp-block-paragraph wp-block-paragraph\" style=\"\">To provide easy access to our sports data, we developed a Flask API that served as a direct interface with MongoDB. This API allowed for flexible queries, enabling users to retrieve only the data they needed. Key features of the Flask API included:<\/p>\n\n\n<ol class=\"wp-block-list wp-block-list\">\n<li>\n<strong>Flexible Endpoints<\/strong>: The API included multiple endpoints, allowing access to player, team, and competition information. For example, the <code>\/team\/&lt;team_id&gt;\/players<\/code> endpoint allows users to retrieve all players associated with a specific team, optionally filtering by player statistics or career details.<\/li>\n\n\n\n<li>\n<strong>Case-Insensitive Queries<\/strong>: We implemented case-insensitive search functionality to improve user experience. For example, searching for a player&rsquo;s <code>common_name<\/code> would return the correct result regardless of capitalization.<\/li>\n\n\n\n<li>\n<strong>Optimized JSON Output<\/strong>: By setting <code>ensure_ascii=False<\/code> in <code>json.dumps()<\/code>, we ensured that JSON responses were readable without unnecessary Unicode escaping.<\/li>\n\n\n\n<li>\n<strong>Database Configuration<\/strong>: The database connection was abstracted in a separate file, <code>db.py<\/code>, where the <code>get_db()<\/code> function managed MongoDB connections. This design streamlined the code and made it easy to modify database configurations without changing core API logic.<\/li>\n<\/ol>\n\n\n<h3 class=\"wp-block-heading\" id=\"example-fetching-players-from-a-team\">Example: Fetching Players from a Team<\/h3>\n\n\n<p class=\"wp-block-paragraph wp-block-paragraph\" style=\"\">Here&rsquo;s an example of how our system works. Suppose we want to retrieve a list of players from a specific team. With our Flask API, we can accomplish this through the following endpoint:<\/p>\n\n\n<pre class=\"wp-block-code\"><div class=\"copy-to-clipboard\">\n<span>Copied!<\/span><button class=\"click-to-copy-button\" title=\"Copy to clipboard\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" viewbox=\"0 0 32 32\" stroke=\"currentcolor\" stroke-width=\"1.5\" stroke-linecap=\"round\" stroke-linejoin=\"round\" width=\"24\" height=\"24\" fill=\"none\">\n  <path d=\"M12.9975 10.7499L11.7475 10.7499C10.6429 10.7499 9.74747 11.6453 9.74747 12.7499L9.74747 21.2499C9.74747 22.3544 10.6429 23.2499 11.7475 23.2499L20.2475 23.2499C21.352 23.2499 22.2475 22.3544 22.2475 21.2499L22.2475 12.7499C22.2475 11.6453 21.352 10.7499 20.2475 10.7499L18.9975 10.7499Z\"><\/path>\n  <path d=\"M17.9975 12.2499L13.9975 12.2499C13.4452 12.2499 12.9975 11.8022 12.9975 11.2499L12.9975 9.74988C12.9975 9.19759 13.4452 8.74988 13.9975 8.74988L17.9975 8.74988C18.5498 8.74988 18.9975 9.19759 18.9975 9.74988L18.9975 11.2499C18.9975 11.8022 18.5498 12.2499 17.9975 12.2499Z\"><\/path>\n  <path d=\"M13.7475 16.2499L18.2475 16.2499\"><\/path>\n  <path d=\"M13.7475 19.2499L18.2475 19.2499\"><\/path>\n<\/svg><\/button><textarea>GET \/team\/<team_id>\/players<\/team_id><\/textarea>\n<\/div><code>GET \/team\/&lt;team_id&gt;\/players<\/code><\/pre>\n\n\n<h4 class=\"wp-block-heading\" id=\"request-example\">Request Example<\/h4>\n\n\n<p class=\"wp-block-paragraph wp-block-paragraph\" style=\"\">A request to <code>\/team\/123\/players<\/code> would trigger the following sequence:<\/p>\n\n\n<ol class=\"wp-block-list wp-block-list\">\n<li>The Flask API retrieves the data from the <code>squad<\/code> collection based on the provided <code>team_id<\/code>.<\/li>\n\n\n\n<li>The data is filtered to return only relevant player IDs.<\/li>\n\n\n\n<li>Using these IDs, detailed player information is retrieved from the <code>people<\/code> collection.<\/li>\n<\/ol>\n\n\n<h4 class=\"wp-block-heading\" id=\"response-example\">Response Example<\/h4>\n\n\n<p class=\"wp-block-paragraph wp-block-paragraph\" style=\"\">The response would be a structured JSON output, as shown below:<\/p>\n\n\n<pre class=\"wp-block-code\"><div class=\"copy-to-clipboard\">\n<span>Copied!<\/span><button class=\"click-to-copy-button\" title=\"Copy to clipboard\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" viewbox=\"0 0 32 32\" stroke=\"currentcolor\" stroke-width=\"1.5\" stroke-linecap=\"round\" stroke-linejoin=\"round\" width=\"24\" height=\"24\" fill=\"none\">\n  <path d=\"M12.9975 10.7499L11.7475 10.7499C10.6429 10.7499 9.74747 11.6453 9.74747 12.7499L9.74747 21.2499C9.74747 22.3544 10.6429 23.2499 11.7475 23.2499L20.2475 23.2499C21.352 23.2499 22.2475 22.3544 22.2475 21.2499L22.2475 12.7499C22.2475 11.6453 21.352 10.7499 20.2475 10.7499L18.9975 10.7499Z\"><\/path>\n  <path d=\"M17.9975 12.2499L13.9975 12.2499C13.4452 12.2499 12.9975 11.8022 12.9975 11.2499L12.9975 9.74988C12.9975 9.19759 13.4452 8.74988 13.9975 8.74988L17.9975 8.74988C18.5498 8.74988 18.9975 9.19759 18.9975 9.74988L18.9975 11.2499C18.9975 11.8022 18.5498 12.2499 17.9975 12.2499Z\"><\/path>\n  <path d=\"M13.7475 16.2499L18.2475 16.2499\"><\/path>\n  <path d=\"M13.7475 19.2499L18.2475 19.2499\"><\/path>\n<\/svg><\/button><textarea>{\n  \"team_id\": \"123\",\n  \"team_name\": \"Example FC\",\n  \"players\": [\n    {\n      \"people_id\": \"456\",\n      \"common_name\": \"John Doe\",\n      \"position\": \"Forward\",\n      \"goals\": \"10\"\n    },\n    {\n      \"people_id\": \"789\",\n      \"common_name\": \"Jane Smith\",\n      \"position\": \"Midfielder\",\n      \"goals\": \"5\"\n    }\n  ]\n}<\/textarea>\n<\/div><code>{\n  \"team_id\": \"123\",\n  \"team_name\": \"Example FC\",\n  \"players\": [\n    {\n      \"people_id\": \"456\",\n      \"common_name\": \"John Doe\",\n      \"position\": \"Forward\",\n      \"goals\": \"10\"\n    },\n    {\n      \"people_id\": \"789\",\n      \"common_name\": \"Jane Smith\",\n      \"position\": \"Midfielder\",\n      \"goals\": \"5\"\n    }\n  ]\n}<\/code><\/pre>\n\n\n<p class=\"wp-block-paragraph wp-block-paragraph\" style=\"\">This example demonstrates how the API provides quick, flexible access to team and player data, making it ideal for applications that require real-time or on-demand sports data.<\/p>\n\n\n<h3 class=\"wp-block-heading\" id=\"conclusion\">Conclusion<\/h3>\n\n\n<p class=\"wp-block-paragraph wp-block-paragraph\" style=\"\">This project showcases the power of MongoDB and Flask when managing and serving complex, large-scale sports data. By combining robust data storage with a flexible API, we built an efficient system that enables fast access to detailed football information. This project is a great example of how modern data tools can simplify complex data management, offering both scalability and usability in one package.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In this project, we set out to create a flexible, high-performance sports data API to manage complex data on football teams, players, matches, and competitions. Using the Data Sports Group API as our data source, we developed a process to import this data into MongoDB, ensuring efficient storage and quick access. We then built a &hellip;<\/p>\n","protected":false},"author":1,"featured_media":175,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[12,16],"tags":[15,13],"class_list":["post-174","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-mongodb","category-tech-innovation","tag-api","tag-mongodb"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.9 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Building a Sports Data API with MongoDB and Flask - SystemDeveloper.NL<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.systemdeveloper.nl\/tech\/building-a-sports-data-api-with-mongodb-and-flask\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Building a Sports Data API with MongoDB and Flask - SystemDeveloper.NL\" \/>\n<meta property=\"og:description\" content=\"In this project, we set out to create a flexible, high-performance sports data API to manage complex data on football teams, players, matches, and competitions. Using the Data Sports Group API as our data source, we developed a process to import this data into MongoDB, ensuring efficient storage and quick access. We then built a &hellip;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.systemdeveloper.nl\/tech\/building-a-sports-data-api-with-mongodb-and-flask\/\" \/>\n<meta property=\"og:site_name\" content=\"SystemDeveloper.NL\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/quan.tora.16\" \/>\n<meta property=\"article:published_time\" content=\"2024-11-11T05:49:22+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-11-28T12:55:10+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.systemdeveloper.nl\/tech\/wp-content\/uploads\/2024\/11\/527d219d-d5d9-4243-873b-2b2d297e947d-e1732798498309.webp\" \/>\n\t<meta property=\"og:image:width\" content=\"1024\" \/>\n\t<meta property=\"og:image:height\" content=\"768\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/webp\" \/>\n<meta name=\"author\" content=\"John Timmer\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"John Timmer\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.systemdeveloper.nl\\\/tech\\\/building-a-sports-data-api-with-mongodb-and-flask\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.systemdeveloper.nl\\\/tech\\\/building-a-sports-data-api-with-mongodb-and-flask\\\/\"},\"author\":{\"name\":\"John Timmer\",\"@id\":\"https:\\\/\\\/www.systemdeveloper.nl\\\/tech\\\/#\\\/schema\\\/person\\\/5760c2ed5300c56d8ef01dfb00a9763b\"},\"headline\":\"Building a Sports Data API with MongoDB and Flask\",\"datePublished\":\"2024-11-11T05:49:22+00:00\",\"dateModified\":\"2024-11-28T12:55:10+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.systemdeveloper.nl\\\/tech\\\/building-a-sports-data-api-with-mongodb-and-flask\\\/\"},\"wordCount\":630,\"publisher\":{\"@id\":\"https:\\\/\\\/www.systemdeveloper.nl\\\/tech\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/www.systemdeveloper.nl\\\/tech\\\/building-a-sports-data-api-with-mongodb-and-flask\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.systemdeveloper.nl\\\/tech\\\/wp-content\\\/uploads\\\/2024\\\/11\\\/527d219d-d5d9-4243-873b-2b2d297e947d-e1732798498309.webp\",\"keywords\":[\"API\",\"MongoDB\"],\"articleSection\":[\"MongoDB\",\"Tech Innovation\"],\"inLanguage\":\"en\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.systemdeveloper.nl\\\/tech\\\/building-a-sports-data-api-with-mongodb-and-flask\\\/\",\"url\":\"https:\\\/\\\/www.systemdeveloper.nl\\\/tech\\\/building-a-sports-data-api-with-mongodb-and-flask\\\/\",\"name\":\"Building a Sports Data API with MongoDB and Flask - SystemDeveloper.NL\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.systemdeveloper.nl\\\/tech\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.systemdeveloper.nl\\\/tech\\\/building-a-sports-data-api-with-mongodb-and-flask\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.systemdeveloper.nl\\\/tech\\\/building-a-sports-data-api-with-mongodb-and-flask\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.systemdeveloper.nl\\\/tech\\\/wp-content\\\/uploads\\\/2024\\\/11\\\/527d219d-d5d9-4243-873b-2b2d297e947d-e1732798498309.webp\",\"datePublished\":\"2024-11-11T05:49:22+00:00\",\"dateModified\":\"2024-11-28T12:55:10+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.systemdeveloper.nl\\\/tech\\\/building-a-sports-data-api-with-mongodb-and-flask\\\/#breadcrumb\"},\"inLanguage\":\"en\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.systemdeveloper.nl\\\/tech\\\/building-a-sports-data-api-with-mongodb-and-flask\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en\",\"@id\":\"https:\\\/\\\/www.systemdeveloper.nl\\\/tech\\\/building-a-sports-data-api-with-mongodb-and-flask\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.systemdeveloper.nl\\\/tech\\\/wp-content\\\/uploads\\\/2024\\\/11\\\/527d219d-d5d9-4243-873b-2b2d297e947d-e1732798498309.webp\",\"contentUrl\":\"https:\\\/\\\/www.systemdeveloper.nl\\\/tech\\\/wp-content\\\/uploads\\\/2024\\\/11\\\/527d219d-d5d9-4243-873b-2b2d297e947d-e1732798498309.webp\",\"width\":1024,\"height\":768},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.systemdeveloper.nl\\\/tech\\\/building-a-sports-data-api-with-mongodb-and-flask\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.systemdeveloper.nl\\\/tech\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Building a Sports Data API with MongoDB and Flask\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.systemdeveloper.nl\\\/tech\\\/#website\",\"url\":\"https:\\\/\\\/www.systemdeveloper.nl\\\/tech\\\/\",\"name\":\"www.systemdeveloper.nl\",\"description\":\"NextGen IT\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.systemdeveloper.nl\\\/tech\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.systemdeveloper.nl\\\/tech\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.systemdeveloper.nl\\\/tech\\\/#organization\",\"name\":\"www.systemdeveloper.nl\",\"url\":\"https:\\\/\\\/www.systemdeveloper.nl\\\/tech\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en\",\"@id\":\"https:\\\/\\\/www.systemdeveloper.nl\\\/tech\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.systemdeveloper.nl\\\/tech\\\/wp-content\\\/uploads\\\/2024\\\/11\\\/qt-logo.png\",\"contentUrl\":\"https:\\\/\\\/www.systemdeveloper.nl\\\/tech\\\/wp-content\\\/uploads\\\/2024\\\/11\\\/qt-logo.png\",\"width\":1346,\"height\":1230,\"caption\":\"www.systemdeveloper.nl\"},\"image\":{\"@id\":\"https:\\\/\\\/www.systemdeveloper.nl\\\/tech\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/quan.tora.16\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.systemdeveloper.nl\\\/tech\\\/#\\\/schema\\\/person\\\/5760c2ed5300c56d8ef01dfb00a9763b\",\"name\":\"John Timmer\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en\",\"@id\":\"https:\\\/\\\/www.systemdeveloper.nl\\\/tech\\\/wp-content\\\/uploads\\\/2024\\\/11\\\/cropped-D6E27035-6864-4270-8D72-0D8C0C59F370-96x96.jpeg\",\"url\":\"https:\\\/\\\/www.systemdeveloper.nl\\\/tech\\\/wp-content\\\/uploads\\\/2024\\\/11\\\/cropped-D6E27035-6864-4270-8D72-0D8C0C59F370-96x96.jpeg\",\"contentUrl\":\"https:\\\/\\\/www.systemdeveloper.nl\\\/tech\\\/wp-content\\\/uploads\\\/2024\\\/11\\\/cropped-D6E27035-6864-4270-8D72-0D8C0C59F370-96x96.jpeg\",\"caption\":\"John Timmer\"},\"sameAs\":[\"https:\\\/\\\/www.systemdeveloper.nl\\\/tech\"],\"url\":\"https:\\\/\\\/www.systemdeveloper.nl\\\/tech\\\/author\\\/admin\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Building a Sports Data API with MongoDB and Flask - SystemDeveloper.NL","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.systemdeveloper.nl\/tech\/building-a-sports-data-api-with-mongodb-and-flask\/","og_locale":"en_US","og_type":"article","og_title":"Building a Sports Data API with MongoDB and Flask - SystemDeveloper.NL","og_description":"In this project, we set out to create a flexible, high-performance sports data API to manage complex data on football teams, players, matches, and competitions. Using the Data Sports Group API as our data source, we developed a process to import this data into MongoDB, ensuring efficient storage and quick access. We then built a &hellip;","og_url":"https:\/\/www.systemdeveloper.nl\/tech\/building-a-sports-data-api-with-mongodb-and-flask\/","og_site_name":"SystemDeveloper.NL","article_publisher":"https:\/\/www.facebook.com\/quan.tora.16","article_published_time":"2024-11-11T05:49:22+00:00","article_modified_time":"2024-11-28T12:55:10+00:00","og_image":[{"width":1024,"height":768,"url":"https:\/\/www.systemdeveloper.nl\/tech\/wp-content\/uploads\/2024\/11\/527d219d-d5d9-4243-873b-2b2d297e947d-e1732798498309.webp","type":"image\/webp"}],"author":"John Timmer","twitter_card":"summary_large_image","twitter_misc":{"Written by":"John Timmer","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.systemdeveloper.nl\/tech\/building-a-sports-data-api-with-mongodb-and-flask\/#article","isPartOf":{"@id":"https:\/\/www.systemdeveloper.nl\/tech\/building-a-sports-data-api-with-mongodb-and-flask\/"},"author":{"name":"John Timmer","@id":"https:\/\/www.systemdeveloper.nl\/tech\/#\/schema\/person\/5760c2ed5300c56d8ef01dfb00a9763b"},"headline":"Building a Sports Data API with MongoDB and Flask","datePublished":"2024-11-11T05:49:22+00:00","dateModified":"2024-11-28T12:55:10+00:00","mainEntityOfPage":{"@id":"https:\/\/www.systemdeveloper.nl\/tech\/building-a-sports-data-api-with-mongodb-and-flask\/"},"wordCount":630,"publisher":{"@id":"https:\/\/www.systemdeveloper.nl\/tech\/#organization"},"image":{"@id":"https:\/\/www.systemdeveloper.nl\/tech\/building-a-sports-data-api-with-mongodb-and-flask\/#primaryimage"},"thumbnailUrl":"https:\/\/www.systemdeveloper.nl\/tech\/wp-content\/uploads\/2024\/11\/527d219d-d5d9-4243-873b-2b2d297e947d-e1732798498309.webp","keywords":["API","MongoDB"],"articleSection":["MongoDB","Tech Innovation"],"inLanguage":"en"},{"@type":"WebPage","@id":"https:\/\/www.systemdeveloper.nl\/tech\/building-a-sports-data-api-with-mongodb-and-flask\/","url":"https:\/\/www.systemdeveloper.nl\/tech\/building-a-sports-data-api-with-mongodb-and-flask\/","name":"Building a Sports Data API with MongoDB and Flask - SystemDeveloper.NL","isPartOf":{"@id":"https:\/\/www.systemdeveloper.nl\/tech\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.systemdeveloper.nl\/tech\/building-a-sports-data-api-with-mongodb-and-flask\/#primaryimage"},"image":{"@id":"https:\/\/www.systemdeveloper.nl\/tech\/building-a-sports-data-api-with-mongodb-and-flask\/#primaryimage"},"thumbnailUrl":"https:\/\/www.systemdeveloper.nl\/tech\/wp-content\/uploads\/2024\/11\/527d219d-d5d9-4243-873b-2b2d297e947d-e1732798498309.webp","datePublished":"2024-11-11T05:49:22+00:00","dateModified":"2024-11-28T12:55:10+00:00","breadcrumb":{"@id":"https:\/\/www.systemdeveloper.nl\/tech\/building-a-sports-data-api-with-mongodb-and-flask\/#breadcrumb"},"inLanguage":"en","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.systemdeveloper.nl\/tech\/building-a-sports-data-api-with-mongodb-and-flask\/"]}]},{"@type":"ImageObject","inLanguage":"en","@id":"https:\/\/www.systemdeveloper.nl\/tech\/building-a-sports-data-api-with-mongodb-and-flask\/#primaryimage","url":"https:\/\/www.systemdeveloper.nl\/tech\/wp-content\/uploads\/2024\/11\/527d219d-d5d9-4243-873b-2b2d297e947d-e1732798498309.webp","contentUrl":"https:\/\/www.systemdeveloper.nl\/tech\/wp-content\/uploads\/2024\/11\/527d219d-d5d9-4243-873b-2b2d297e947d-e1732798498309.webp","width":1024,"height":768},{"@type":"BreadcrumbList","@id":"https:\/\/www.systemdeveloper.nl\/tech\/building-a-sports-data-api-with-mongodb-and-flask\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.systemdeveloper.nl\/tech\/"},{"@type":"ListItem","position":2,"name":"Building a Sports Data API with MongoDB and Flask"}]},{"@type":"WebSite","@id":"https:\/\/www.systemdeveloper.nl\/tech\/#website","url":"https:\/\/www.systemdeveloper.nl\/tech\/","name":"www.systemdeveloper.nl","description":"NextGen IT","publisher":{"@id":"https:\/\/www.systemdeveloper.nl\/tech\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.systemdeveloper.nl\/tech\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en"},{"@type":"Organization","@id":"https:\/\/www.systemdeveloper.nl\/tech\/#organization","name":"www.systemdeveloper.nl","url":"https:\/\/www.systemdeveloper.nl\/tech\/","logo":{"@type":"ImageObject","inLanguage":"en","@id":"https:\/\/www.systemdeveloper.nl\/tech\/#\/schema\/logo\/image\/","url":"https:\/\/www.systemdeveloper.nl\/tech\/wp-content\/uploads\/2024\/11\/qt-logo.png","contentUrl":"https:\/\/www.systemdeveloper.nl\/tech\/wp-content\/uploads\/2024\/11\/qt-logo.png","width":1346,"height":1230,"caption":"www.systemdeveloper.nl"},"image":{"@id":"https:\/\/www.systemdeveloper.nl\/tech\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/quan.tora.16"]},{"@type":"Person","@id":"https:\/\/www.systemdeveloper.nl\/tech\/#\/schema\/person\/5760c2ed5300c56d8ef01dfb00a9763b","name":"John Timmer","image":{"@type":"ImageObject","inLanguage":"en","@id":"https:\/\/www.systemdeveloper.nl\/tech\/wp-content\/uploads\/2024\/11\/cropped-D6E27035-6864-4270-8D72-0D8C0C59F370-96x96.jpeg","url":"https:\/\/www.systemdeveloper.nl\/tech\/wp-content\/uploads\/2024\/11\/cropped-D6E27035-6864-4270-8D72-0D8C0C59F370-96x96.jpeg","contentUrl":"https:\/\/www.systemdeveloper.nl\/tech\/wp-content\/uploads\/2024\/11\/cropped-D6E27035-6864-4270-8D72-0D8C0C59F370-96x96.jpeg","caption":"John Timmer"},"sameAs":["https:\/\/www.systemdeveloper.nl\/tech"],"url":"https:\/\/www.systemdeveloper.nl\/tech\/author\/admin\/"}]}},"_links":{"self":[{"href":"https:\/\/www.systemdeveloper.nl\/tech\/wp-json\/wp\/v2\/posts\/174","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.systemdeveloper.nl\/tech\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.systemdeveloper.nl\/tech\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.systemdeveloper.nl\/tech\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.systemdeveloper.nl\/tech\/wp-json\/wp\/v2\/comments?post=174"}],"version-history":[{"count":4,"href":"https:\/\/www.systemdeveloper.nl\/tech\/wp-json\/wp\/v2\/posts\/174\/revisions"}],"predecessor-version":[{"id":304,"href":"https:\/\/www.systemdeveloper.nl\/tech\/wp-json\/wp\/v2\/posts\/174\/revisions\/304"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.systemdeveloper.nl\/tech\/wp-json\/wp\/v2\/media\/175"}],"wp:attachment":[{"href":"https:\/\/www.systemdeveloper.nl\/tech\/wp-json\/wp\/v2\/media?parent=174"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.systemdeveloper.nl\/tech\/wp-json\/wp\/v2\/categories?post=174"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.systemdeveloper.nl\/tech\/wp-json\/wp\/v2\/tags?post=174"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}