{"id":17487518,"url":"https://github.com/frefrik/ollama-models-api","last_synced_at":"2025-04-10T16:32:45.305Z","repository":{"id":258377851,"uuid":"862252643","full_name":"frefrik/ollama-models-api","owner":"frefrik","description":"🦙 API to explore the complete collection of Ollama models","archived":false,"fork":false,"pushed_at":"2024-10-16T19:18:50.000Z","size":974,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-10-18T18:15:43.413Z","etag":null,"topics":["ai","api","fastapi","llm-models","models","ollama","ollama-api","rest-api"],"latest_commit_sha":null,"homepage":"https://ollamadb.dev/docs","language":"Python","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/frefrik.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-09-24T09:41:01.000Z","updated_at":"2024-10-16T19:18:54.000Z","dependencies_parsed_at":"2024-10-18T18:16:01.446Z","dependency_job_id":"9239a773-8ead-470b-bdab-435808695009","html_url":"https://github.com/frefrik/ollama-models-api","commit_stats":null,"previous_names":["frefrik/ollama-models-api"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/frefrik%2Follama-models-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/frefrik%2Follama-models-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/frefrik%2Follama-models-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/frefrik%2Follama-models-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/frefrik","download_url":"https://codeload.github.com/frefrik/ollama-models-api/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248252697,"owners_count":21072701,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["ai","api","fastapi","llm-models","models","ollama","ollama-api","rest-api"],"created_at":"2024-10-19T03:04:54.063Z","updated_at":"2025-04-10T16:32:45.283Z","avatar_url":"https://github.com/frefrik.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n  \u003cimg src=\"assets/banner.png\" alt=\"Ollama Models API Banner\"\u003e\n\u003c/p\u003e\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"https://badgen.net/uptime-robot/status/m797761174-e2f166400c34844acf2b729d\" alt=\"Status\"\u003e\n  \u003cimg src=\"https://badgen.net/uptime-robot/week/m797761174-e2f166400c34844acf2b729d\" alt=\"Uptime week\"\u003e\n  \u003cimg src=\"https://badgen.net/uptime-robot/month/m797761174-e2f166400c34844acf2b729d\" alt=\"Uptime month\"\u003e\n\u003c/p\u003e\n\u003ch1 align=\"center\"\u003e🦙 Ollama Models API\u003c/h1\u003e\n\nThis API provides a simple interface to explore the complete collection of [Ollama](https://ollama.com/) models.\n\nThis project was mainly created due to the lack of filtering and sorting capabilities in Ollama's own [search engine](https://ollama.com/search). With this API, users can easily search for models based on various criteria and sort the results.\n\n## Documentation\n\nThe documentation for the API is available at [ollamadb.dev/docs](https://ollamadb.dev/docs).\n\n## Base URL\nThe base URL for the API is: `https://ollamadb.dev/api/v1`\n\n## Endpoints\n\n### GET /models\n\nRetrieve a list of all available Ollama models.\n\n#### Parameters\n\n- `search`: (optional) Search for models by name or description.\n- `model_identifier`: (optional) Filter models by identifier.\n- `namespace`: (optional) Filter models by namespace.\n- `capability`: (optional) Filter models by capability.\n- `model_type`: (optional) Filter models by type. Valid values: `official`, `community`.\n- `sort_by`: (optional) Sort the results by a specific field. Valid fields: `pulls`, `last_updated`.\n- `order`: (optional) Sort order. Valid values: `asc`, `desc`.\n- `limit`: (optional) Number of results to return. Default is 20.\n- `skip`: (optional) Number of results to skip. Default is 0.\n\nExample request:\n\n```bash\ncurl https://ollamadb.dev/api/v1/models?limit=3\n```\n\nExample response:\n\n```json\n{\n  \"models\": [\n    {\n      \"model_identifier\": \"llama3\",\n      \"namespace\": null,\n      \"model_name\": \"llama3\",\n      \"model_type\": \"official\",\n      \"description\": \"Meta Llama 3: The most capable openly available LLM to date\",\n      \"capability\": null,\n      \"labels\": [\n        \"8B\",\n        \"70B\"\n      ],\n      \"pulls\": 6300000,\n      \"tags\": 68,\n      \"last_updated\": \"2024-05-25\",\n      \"last_updated_str\": \"4 months ago\",\n      \"url\": \"https://ollama.com/library/llama3\"\n    },\n    {\n      \"model_identifier\": \"llama3.1\",\n      \"namespace\": null,\n      \"model_name\": \"llama3.1\",\n      \"model_type\": \"official\",\n      \"description\": \"Llama 3.1 is a new state-of-the-art model from Meta available in 8B, 70B and 405B parameter sizes.\",\n      \"capability\": \"Tools\",\n      \"labels\": [\n        \"8B\",\n        \"70B\",\n        \"405B\"\n      ],\n      \"pulls\": 5500000,\n      \"tags\": 94,\n      \"last_updated\": \"2024-09-16\",\n      \"last_updated_str\": \"9 days ago\",\n      \"url\": \"https://ollama.com/library/llama3.1\"\n    },\n    {\n      \"model_identifier\": \"gemma\",\n      \"namespace\": null,\n      \"model_name\": \"gemma\",\n      \"model_type\": \"official\",\n      \"description\": \"Gemma is a family of lightweight, state-of-the-art open models built by Google DeepMind. Updated to version 1.1\",\n      \"capability\": null,\n      \"labels\": [\n        \"2B\",\n        \"7B\"\n      ],\n      \"pulls\": 4099999,\n      \"tags\": 102,\n      \"last_updated\": \"2024-04-25\",\n      \"last_updated_str\": \"5 months ago\",\n      \"url\": \"https://ollama.com/library/gemma\"\n    }\n  ],\n  \"total_count\": 4370,\n  \"limit\": 3,\n  \"skip\": 0,\n  \"data_updated\": \"2024-09-25T09:30:04.823125Z\"\n}\n```\n\n## Disclaimer\n\nThis project is not affiliated with, endorsed by, or in any way officially connected to Ollama. It is an independent project created to enhance the usability of Ollama's model collection.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffrefrik%2Follama-models-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffrefrik%2Follama-models-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffrefrik%2Follama-models-api/lists"}