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

> Explore API integration examples in JavaScript Python C# Java PHP Go and cURL within the hasaneyldrm exercises-dataset repository. Get ready-to-copy code for your projects.

- Repository: [Hasan Emir Yıldırım/exercises-dataset](https://github.com/hasaneyldrm/exercises-dataset)
- Tags: api-reference
- Published: 2026-08-01

---

**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`](https://github.com/hasaneyldrm/exercises-dataset/blob/main/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`](https://github.com/hasaneyldrm/exercises-dataset/blob/main/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.

```javascript
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.

```python
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.

```csharp
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.

```java
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.

```php
$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`.

```go
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.

```bash
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`](https://github.com/hasaneyldrm/exercises-dataset/blob/main/README.md)** – Contains the complete API documentation, language comparison table, and all seven code examples under the API Integration section
- **[`index.html`](https://github.com/hasaneyldrm/exercises-dataset/blob/main/index.html)** – Interactive browser application that loads and displays the dataset client-side without requiring a backend server
- **[`setup.html`](https://github.com/hasaneyldrm/exercises-dataset/blob/main/setup.html)** – Developer guide explaining how to import [`data/exercises.json`](https://github.com/hasaneyldrm/exercises-dataset/blob/main/data/exercises.json) into a database and configure the backend API endpoints
- **[`data/exercises.json`](https://github.com/hasaneyldrm/exercises-dataset/blob/main/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`](https://github.com/hasaneyldrm/exercises-dataset/blob/main/README.md) (line 100), showing production-ready patterns for HTTP requests and JSON parsing.
- The repository includes both frontend integration examples ([`index.html`](https://github.com/hasaneyldrm/exercises-dataset/blob/main/index.html)) and backend setup instructions ([`setup.html`](https://github.com/hasaneyldrm/exercises-dataset/blob/main/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`](https://github.com/hasaneyldrm/exercises-dataset/blob/main/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`](https://github.com/hasaneyldrm/exercises-dataset/blob/main/README.md) focuses on backend API client code, the repository also includes [`index.html`](https://github.com/hasaneyldrm/exercises-dataset/blob/main/index.html) for client-side browser integration that fetches data directly without server requirements, and [`setup.html`](https://github.com/hasaneyldrm/exercises-dataset/blob/main/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`](https://github.com/hasaneyldrm/exercises-dataset/blob/main/index.html) file demonstrates client-side consumption that works immediately by loading [`data/exercises.json`](https://github.com/hasaneyldrm/exercises-dataset/blob/main/data/exercises.json) directly, while the HTTP request examples in the README require either the setup described in [`setup.html`](https://github.com/hasaneyldrm/exercises-dataset/blob/main/setup.html) or integration with a hosted endpoint.