👥

students

Student record with personal information, academic details (grade, major, GPA), enrollment date, and contact information. Used for educational institutions, student management systems, and academic databases.

🎯 Request Builder

https://api.mockly.codes/students?page=1&limit=10&count=10
📡

Configure your request and click Send Request to see the response here.

Endpoints

GET/students

Get a collection of students

Alternative: /people/students
GET/students/:id

Get a single student by ID

Alternative: /people/students/:id
GET/students/meta

Get resource metadata and schema

Alternative: /people/students/meta
🔍

How to Use Search

The search feature allows you to filter results by searching for text across all or specific fields. Choose between ?q= or ?search= parameter names.

1. Basic Search

Search across all text fields:

Basic Search
GET https://api.mockly.codes/students?q=laptop

2. Search Specific Fields

Field-Specific Search
GET https://api.mockly.codes/students?q=laptop&search_fields=name,description

💡 Pro Tips

  • Search is case-insensitive and performs partial matching
  • Without search_fields, all text fields are searched
  • Combine with pagination to handle large result sets efficiently

Code Examples

JavaScript

Fetch Collection
// Get 10 students
fetch('https://api.mockly.codes/students?count=10')
  .then(res => res.json())
  .then(data => console.log(data));

Python

Fetch with Requests
import requests

response = requests.get(
    'https://api.mockly.codes/students?count=10'
)
data = response.json()

cURL

Command Line
curl "https://api.mockly.codes/students?count=10"

Bypass Cache

Get Fresh Data
fetch('https://api.mockly.codes/students?nocache=true')

Schema Properties

idinteger

Unique identifier for the student

Gen:random_int
student_idstring

Unique student ID or enrollment number

Gen:student_id
first_namestring

Student's first name

Gen:first_name
last_namestring

Student's last name

Gen:last_name
emailstring

Student's email address

Gen:emailemail
phonestring

Student's phone number

Gen:phone
date_of_birthstring

Student's date of birth

Gen:past_datedate
genderstring

Student's gender

Gen:gender
gradestring

Current grade level or class (e.g., 10th Grade, Sophomore, Year 2)

Gen:grade
majorstring

Field of study or major subject (e.g., Computer Science, Business, Engineering)

Gen:major
gpanumber

Grade Point Average, typically on a scale of 0-4.0 or 0-5.0

Gen:gpa
addressstring

Student's residential address

Gen:address
citystring

City where the student lives

Gen:city
countrystring

Country where the student is located

Gen:country
enrolled_datestring

Date when the student enrolled in the institution

Gen:past_datedate
avatarstring

URL to the student's photo or avatar

Gen:avataruri

Query Parameters

countinteger

Number of items to return (default: 10, max: 100)

seedinteger

Seed for reproducible data generation

nocacheboolean

Bypass cache and generate fresh data on every request