The DOCS page was partially generated with the help of AI tools for clarity and completeness. All API functionality and examples are verified for accuracy..
FRC ComponentHub API is a secure, modern inventory management system for FIRST Robotics Competition (FRC) teams, built with FastAPI. Manage your team’s inventory, access a public component catalog, and collaborate efficiently with robust authentication and authorization.
- API: frc-components-api.onrender.com
- Docs: Swagger UI
- 46+ real FRC parts with pricing, vendor, availability, CAD files, and images
- Team inventory: track quantities, locations, notes, and link to public parts
- JWT authentication and team-based access
- Full CRUD for public/team components; utility endpoints for categories, vendors, etc.
Get All Public Components
GET /public-components/Response:
[
{
"id": "NEO-550",
"name": "NEO 550 Brushless Motor",
"vendor": "REV Robotics",
"category": "Motors",
"cost": 39.99,
"availability": "In Stock",
"description": "Compact brushless motor for FRC robots"
}
]
]Search Components
GET /public-components/search?category=Motors&max_cost=50t=50Query: q, category, vendor, min_cost, max_cost
Add Team Component
POST /team-components/{
"team_id": "1234",
"public_component_id": "NEO-550",
"name": "NEO 550 Motor",
"vendor": "REV Robotics",
"quantity": 4,
"location": "Drivetrain Box",
"notes": "For swerve modules"
}}Public Components
GET /public-components/— List allPOST /public-components/— CreateGET /public-components/search— Search/filterGET /public-components/{id}— Get by IDPUT /public-components/{id}— UpdateDELETE /public-components/{id}— Delete
Team Components
POST /team-components/— Add to team inventoryGET /teams/{id}/components— Team inventoryGET /team-components/{id}— Get by IDPUT /team-components/{id}— UpdateDELETE /team-components/{id}— DeleteGET /teams/{id}/inventory/summary— Team stats
Utility
/categories,/vendors,/availability-statuses,/components/with-cad-files,/components/with-images,/teams/{id}/add-image
Use Live API: Interactive Docs
Run Locally:
git clone https://github.com/MNTadros/FRC_API
pip install -r requirements.txt
python run_server.pypyCreate a .env file:
SECRET_KEY=your-very-secret-key
DATABASE_URL=sqlite:///./frc_components.db
Integrate: Use with Python, JavaScript, cURL, or any HTTP client.
- Register via
/register - Log in via
/tokento get a JWT - Use the "Authorize" button in docs or send
Authorization: Beareren> - Use
/users/meto check your account and team