What Programming Languages Are Supported for API Integration Examples in the Exercises Dataset Repository?

The exercises-dataset repository provides ready-to-copy API integration examples in seven programming environments: JavaScript (Node.js), Python, C#, Java, PHP, Go, and cURL.

When integrating exercise data into your application, the hasaneyldrm/exercises-dataset repository offers comprehensive client code samples that demonstrate exactly how to query the REST API endpoints. Each example shows how to configure the base URL, append query parameters for filtering (such as category=Chest), and parse the returned JSON payload, giving developers a production-ready starting point for consuming the dataset.

Supported Programming Languages Overview

According to the source code in README.md at line 100, the repository documents seven distinct programming languages and tools for API integration. These examples cover both compiled and interpreted languages, as well as command-line tools, ensuring compatibility with diverse technology stacks. The examples are located in the "API Integration" section of the central documentation.

The supported environments include:

  • JavaScript (Node.js) – Modern fetch API implementation for browser and Node.js runtimes
  • Python – Both plain requests usage and Pandas-based data analysis workflows
  • C# – Asynchronous HTTP client patterns using HttpClient
  • Java – Standard HttpURLConnection implementation without external dependencies
  • PHP – cURL-based request handling with error checking
  • Go – Standard library net/http package implementation
  • cURL (shell) – Direct command-line invocation for testing and scripting

API Integration Examples by Language

Each code snippet demonstrates querying the /exercises endpoint with a category filter, returning the 1,324-record dataset stored in data/exercises.json.

JavaScript (Node.js)

The JavaScript example uses the modern fetch API to perform asynchronous requests, suitable for both browser environments and Node.js applications.

fetch(`${BASE_URL}/exercises?category=Chest`)
  .then(r => r.json())
  .then(console.log);

Python

The Python implementation uses the popular requests library to handle HTTP GET requests and JSON deserialization in a concise two-line pattern.

import requests
r = requests.get(f"{BASE_URL}/exercises?category=Chest")
print(r.json())

C#

The C# snippet demonstrates async/await patterns with HttpClient, the recommended approach for .NET applications making HTTP calls.

using var client = new HttpClient();
var response = await client.GetStringAsync($"{BASE_URL}/exercises?category=Chest");
Console.WriteLine(response);

Java

The Java example utilizes standard java.net classes without requiring third-party libraries, making it portable across all Java environments.

HttpURLConnection conn = (HttpURLConnection) new URL(BASE_URL + "/exercises?category=Chest").openConnection();
System.out.println(new BufferedReader(new InputStreamReader(conn.getInputStream()))
    .lines().collect(Collectors.joining("\n")));

PHP

The PHP implementation uses the built-in cURL extension to configure request options and execute the HTTP call safely.

$ch = curl_init("$BASE_URL/exercises?category=Chest");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
echo curl_exec($ch);

Go

The Go example leverages the standard library's net/http package and demonstrates proper resource cleanup with defer.

resp, _ := http.Get(BASE_URL + "/exercises?category=Chest")
defer resp.Body.Close()
body, _ := io.ReadAll(resp.Body)
fmt.Println(string(body))

cURL (Shell)

For quick testing and shell scripting, the repository includes a one-liner that can execute directly in any terminal environment.

curl "${BASE_URL}/exercises?category=Chest"

Key Files for API Integration

Understanding the repository layout helps developers locate complementary resources beyond the basic code snippets:

  • README.md – Contains the complete API documentation, language comparison table, and all seven code examples under the API Integration section
  • index.html – Interactive browser application that loads and displays the dataset client-side without requiring a backend server
  • setup.html – Developer guide explaining how to import data/exercises.json into a database and configure the backend API endpoints
  • data/exercises.json – The complete JSON payload (1,324 exercise records) that the API serves, useful for offline development and testing

Summary

  • The hasaneyldrm/exercises-dataset repository supports seven programming languages for API integration: JavaScript, Python, C#, Java, PHP, Go, and cURL.
  • All examples are documented in the API Integration section of README.md (line 100), showing production-ready patterns for HTTP requests and JSON parsing.
  • The repository includes both frontend integration examples (index.html) and backend setup instructions (setup.html) for complete implementation flexibility.
  • Each code snippet demonstrates filtering by query parameters using the base URL pattern consistent across all seven languages.

Frequently Asked Questions

How many programming languages are supported for API integration examples?

The repository provides working code samples for seven distinct programming environments: JavaScript (Node.js), Python, C#, Java, PHP, Go, and cURL shell commands. This coverage spans both modern async frameworks and standard library implementations across major technology stacks.

Where can I find the API integration documentation in the repository?

All API integration examples are centralized in the README.md file under the "API Integration" section at line 100. This section contains the complete language comparison table and copy-paste ready code blocks for each supported environment.

Does the repository provide examples for both frontend and backend integration?

Yes. While the README.md focuses on backend API client code, the repository also includes index.html for client-side browser integration that fetches data directly without server requirements, and setup.html for backend database import procedures.

Can I use these API integration examples with the live data without setting up a local server?

The examples assume a configurable BASE_URL variable that points to your API endpoint. The index.html file demonstrates client-side consumption that works immediately by loading data/exercises.json directly, while the HTTP request examples in the README require either the setup described in setup.html or integration with a hosted endpoint.

Have a question about this repo?

These articles cover the highlights, but your codebase questions are specific. Give your agent direct access to the source. Share this with your agent to get started:

Share the following with your agent to get started:
curl -s "https://instagit.com/install.md"

Works with
Claude Codex Cursor VS Code OpenClaw Any MCP Client

Maintain an open-source project? Get it listed too →