{"id":24149041,"url":"https://github.com/minel1410/car-price-predictor-api","last_synced_at":"2026-05-15T18:34:19.751Z","repository":{"id":252978453,"uuid":"842086288","full_name":"minel1410/car-price-predictor-api","owner":"minel1410","description":"An API made for the car price predictor model that serves as a backend for the car price predictor application.","archived":false,"fork":false,"pushed_at":"2024-08-27T14:22:13.000Z","size":9224,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-10T00:09:38.020Z","etag":null,"topics":["fastapi","renderer"],"latest_commit_sha":null,"homepage":"https://price-predictor-model-api.onrender.com","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/minel1410.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-08-13T16:36:57.000Z","updated_at":"2025-01-02T21:51:09.000Z","dependencies_parsed_at":"2024-08-27T16:06:06.683Z","dependency_job_id":null,"html_url":"https://github.com/minel1410/car-price-predictor-api","commit_stats":null,"previous_names":["minel1410/api_vercel_test","minel1410/car-price-predictor-api"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/minel1410/car-price-predictor-api","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/minel1410%2Fcar-price-predictor-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/minel1410%2Fcar-price-predictor-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/minel1410%2Fcar-price-predictor-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/minel1410%2Fcar-price-predictor-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/minel1410","download_url":"https://codeload.github.com/minel1410/car-price-predictor-api/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/minel1410%2Fcar-price-predictor-api/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33074866,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-15T11:35:32.926Z","status":"ssl_error","status_checked_at":"2026-05-15T11:35:31.362Z","response_time":103,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["fastapi","renderer"],"created_at":"2025-01-12T08:34:57.739Z","updated_at":"2026-05-15T18:34:19.724Z","avatar_url":"https://github.com/minel1410.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# [Car Price Predictor API](https://price-predictor-model-api.onrender.com)\n\n## Note \n\nSince the API is hosted on Renderer, the loading time could take up to 2 minutes on the initial request.\n\n## Overview\n\nThe Car Price Predictor API is a backend service developed using FastAPI. It serves as the backend for the Car Price Predictor application, allowing users to submit data about their vehicles and receive price predictions. The API is hosted on Render, which may cause responses to be delayed by a few minutes if the server is in sleep mode due to inactivity.\n\n## Endpoints\n\n### `/models`\n\n- **Method**: `GET`\n- **Description**: Retrieves a list of car brands and their associated models.\n- **Response Model**: `List[BrandModel]`\n- **Response Example**:\n  ```json\n  [\n    {\n      \"brand_id\": 1,\n      \"models\": [\n        {\n          \"model_id\": 101,\n          \"model_name\": \"Model A\",\n          \"brand_name\": \"Brand X\"\n        },\n        ...\n      ]\n    },\n    ...\n  ]\n\n## Endpoints\n\n### `/fuel_types`\n\n- **Method**: `GET`\n- **Description**: Returns a dictionary of fuel types with their corresponding encoding values.\n- **Response Example**:\n  ```json\n  {\n    \"Benzin\": 0,\n    \"Dizel\": 1,\n    \"Elektro\": 2,\n    \"Hibrid\": 3,\n    \"Plin\": 4\n  }\n\n  ### `/body_types`\n\n- **Method**: `GET`\n- **Description**: Provides a dictionary of body types with their corresponding encoding values.\n- **Response Example**:\n  ```json\n  {\n    \"Caddy\": 0,\n    \"Kabriolet\": 1,\n    \"Karavan\": 2,\n    \"Kombi\": 3,\n    \"Limuzina\": 4,\n    \"Malo auto\": 5,\n    \"Monovolumen\": 6,\n    \"Off Road\": 7,\n    \"Ostalo\": 8,\n    \"Pick up\": 9,\n    \"SUV\": 10,\n    \"Sportski/kupe\": 11,\n    \"Terenac\": 12\n  }\n  ### `/post_car`\n\n- **Method**: `POST`\n- **Description**: Submits car data to receive a price prediction.\n- **Request Model**: `ModelRequest`\n- **Request Example**:\n  ```json\n  {\n    \"Mileage\": 120000,\n    \"Engine_volume\": 2.0,\n    \"Engine_power\": 150,\n    \"Registered\": true,\n    \"Year\": 2018,\n    \"brand_enc\": 1,\n    \"body_enc\": 3,\n    \"fuel_type_enc\": 1,\n    \"model_enc\": 101\n  }\n \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fminel1410%2Fcar-price-predictor-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fminel1410%2Fcar-price-predictor-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fminel1410%2Fcar-price-predictor-api/lists"}