{"id":26768627,"url":"https://github.com/marlo22/mime-api","last_synced_at":"2026-04-04T21:32:50.358Z","repository":{"id":44036515,"uuid":"225186929","full_name":"marlo22/mime-api","owner":"marlo22","description":"Simple REST API to searching MIME types.","archived":false,"fork":false,"pushed_at":"2022-12-11T15:32:53.000Z","size":358,"stargazers_count":0,"open_issues_count":7,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-01-03T16:22:40.853Z","etag":null,"topics":["api","express","mime","mime-type","mime-types","node","nodejs","rest","rest-api","restful","sqlite","type"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/marlo22.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-12-01T15:51:57.000Z","updated_at":"2019-12-04T16:57:29.000Z","dependencies_parsed_at":"2023-01-27T02:00:40.597Z","dependency_job_id":null,"html_url":"https://github.com/marlo22/mime-api","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/marlo22/mime-api","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marlo22%2Fmime-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marlo22%2Fmime-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marlo22%2Fmime-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marlo22%2Fmime-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/marlo22","download_url":"https://codeload.github.com/marlo22/mime-api/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marlo22%2Fmime-api/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31415110,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-04T20:09:54.854Z","status":"ssl_error","status_checked_at":"2026-04-04T20:09:44.350Z","response_time":60,"last_error":"SSL_read: 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":["api","express","mime","mime-type","mime-types","node","nodejs","rest","rest-api","restful","sqlite","type"],"created_at":"2025-03-28T21:34:44.786Z","updated_at":"2026-04-04T21:32:49.631Z","avatar_url":"https://github.com/marlo22.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# mime-api\nSimple REST API to searching MIME types.\n\n## About\nThis API is created in Node.js - using Express.js framework and SQLite database.\n\n## How to run it?\nFirst, you should clone this repository, then install all required dependencies by using `npm install` or `yarn install`. If all packages will be installed run server by `npm start` or `yarn start`. By default API should be exposed on port 3000. You can change it by defining your `.env` file with `PORT={YOUR_NUMBER}` entry.\n\n## Using API\nAPI provides two routes - to getting MIME types by extensions and conversely - to getting extensions by MIME types.\n\n### GET {url}/mime\nReturn all extensions with assign corresponding MIME type.\n```js\n{\n    ...\n    \"jpg\": \"image/jpeg\",\n    \"jpeg\": \"image/jpeg\",\n    \"png\": \"image/png\",\n    \"gif\": \"image/gif\"\n    ...\n}\n```\n\n### GET {url}/mime?ext=jpg,png\nReturn specified extensions with assign corresponding MIME type.\n```js\n{\n    \"jpg\": \"image/jpeg\",\n    \"png\": \"image/png\"\n}\n```\n\n### GET {url}/ext\nReturn all MIME types with assign corresponding extensions.\n```js\n{\n    ...\n    \"image/jpeg\": [\n        \"jpg\",\n        \"jpeg\"\n    ],\n    \"image/png\": [\n        \"png\"\n    ],\n    \"image/gif\": [\n        \"gif\"\n    ]\n    ...\n}\n```\n\n### GET {url}/ext?mime=image/jpeg,image/png\nReturn specified MIME types with assign corresponding extensions.\n```js\n{\n    \"image/jpeg\": [\n        \"jpg\",\n        \"jpeg\"\n    ],\n    \"image/png\": [\n        \"png\"\n    ]\n}\n```\n\n## Source\nList of MIME types based on [MDN article](https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types/Complete_list_of_MIME_types).\n\n## License\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarlo22%2Fmime-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmarlo22%2Fmime-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarlo22%2Fmime-api/lists"}