projects

Project record with owner, status, priority, budget, timeline, completion percentage, and team size. Used for project management, team collaboration, and business planning systems.

🎯 Request Builder

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

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

Endpoints

GET/projects

Get a collection of projects

Alternative: /productivity/projects
GET/projects/:id

Get a single project by ID

Alternative: /productivity/projects/:id
GET/projects/meta

Get resource metadata and schema

Alternative: /productivity/projects/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/projects?q=laptop

2. Search Specific Fields

Field-Specific Search
GET https://api.mockly.codes/projects?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 projects
fetch('https://api.mockly.codes/projects?count=10')
  .then(res => res.json())
  .then(data => console.log(data));

Python

Fetch with Requests
import requests

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

cURL

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

Bypass Cache

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

Schema Properties

idinteger

Unique identifier for the project

Gen:random_int
namestring

Project name or title

Gen:sentence
descriptionstring

Detailed description of the project goals and scope

Gen:paragraph
ownerstring

Full name of the project owner or manager

Gen:name
owner_idinteger

Foreign key reference to the user who owns this project

Gen:random_int
statusstring

Current project status (e.g., planning, active, on_hold, completed, cancelled)

Gen:project_status
prioritystring

Project priority level (e.g., low, medium, high, critical)

Gen:priority
budgetnumber

Total project budget

Gen:price
currencystring

ISO currency code for the budget (e.g., USD, EUR, GBP)

Gen:currency
start_datestring

Project start date

Gen:past_datedate
end_datestring

Project end date or deadline

Gen:future_datedate
completioninteger

Project completion percentage (0-100)

Gen:percentage
team_sizeinteger

Number of team members working on the project

Gen:random_int
created_atstring

Timestamp when the project was created

Gen:past_datedate-time

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