# Get a student

Section: Game data

```
GET https://ba.joexyz.online/api/v1/students/hoshino
```

Gets a student's full profile: names in every language, combat data,
stats, availability per server, gift preferences and variants.

**Parameters**

- `id` (path): The student's ID (e.g. `hoshino_swimsuit`), internal numeric ID (e.g. `10023`), or DevName.

## Authentication

None

## Path parameters

| Name | Value |
| --- | --- |
| `id` | `hoshino` |

## Example responses

### 200 OK

```json
{
  "data": {
    "id": "hoshino",
    "name": "Hoshino",
    "devName": "Hoshino",
    "school": "Abydos",
    "club": "Countermeasure",
    "combatClass": "Main",
    "combatRole": "Tanker",
    "combatPosition": "Front",
    "attackType": "Pierce",
    "defenseType": "HeavyArmor",
    "weaponType": "SG",
    "rarity": 3,
    "iconUrl": "https://ba.cdn.nimblebun.works/v2/images/students/icons/hoshino.png",
    "portraitUrl": "https://ba.cdn.nimblebun.works/v2/images/students/portraits/hoshino.png",
    "schaleDbId": 10005,
    "firstName": "Hoshino",
    "lastName": "Takanashi",
    "nameJP": "ホシノ",
    "age": "17 years old",
    "birthday": "January 2nd",
    "isReleasedGlobal": true,
    "isLimitedGlobal": false,
    "giftsAdored": [
      {
        "id": 5100,
        "name": "Lace Pillow",
        "rarity": "SSR"
      },
      {
        "id": 5103,
        "name": "Antique Egg Handicraft",
        "rarity": "SSR"
      }
    ],
    "giftsLoved": [],
    "giftsLiked": [],
    "baseVariant": null,
    "variants": [
      {
        "id": "hoshino_swimsuit",
        "name": "Hoshino (Swimsuit)",
        "devName": "CH0091"
      },
      {
        "id": "hoshino_battle_tank",
        "name": "Hoshino (Armed) / Tank",
        "devName": "CH0258_02"
      }
    ],
    "…": "more fields"
  }
}
```

### 404 Not Found

```json
{
  "error": {
    "code": "NOT_FOUND",
    "message": "Student not found."
  }
}
```

## Examples

### cURL

```bash
curl https://ba.joexyz.online/api/v1/students/hoshino
```

### JavaScript

```javascript
const response = await fetch("https://ba.joexyz.online/api/v1/students/hoshino");

const data = await response.json();
console.log(data);
```

### Python

```python
import requests

url = "https://ba.joexyz.online/api/v1/students/hoshino"

response = requests.get(url)
print(response.json())
```

### Go

```go
package main

import (
	"fmt"
	"io"
	"net/http"
)

func main() {
	req, err := http.NewRequest("GET", "https://ba.joexyz.online/api/v1/students/hoshino", nil)
	if err != nil {
		panic(err)
	}

	res, err := http.DefaultClient.Do(req)
	if err != nil {
		panic(err)
	}
	defer res.Body.Close()

	data, _ := io.ReadAll(res.Body)
	fmt.Println(string(data))
}
```
