{"id":19387302,"url":"https://github.com/theyadev/random-api","last_synced_at":"2026-05-16T04:08:37.629Z","repository":{"id":57250385,"uuid":"436602655","full_name":"theyadev/random-api","owner":"theyadev","description":"A simple and lightweight module to get random api","archived":false,"fork":false,"pushed_at":"2021-12-10T08:37:34.000Z","size":372,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-15T04:33:20.168Z","etag":null,"topics":["api","npm","npm-package","publicapis","random"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/get-random-api","language":"TypeScript","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/theyadev.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":"2021-12-09T12:07:31.000Z","updated_at":"2021-12-10T10:36:45.000Z","dependencies_parsed_at":"2022-08-24T16:51:40.785Z","dependency_job_id":null,"html_url":"https://github.com/theyadev/random-api","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/theyadev%2Frandom-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/theyadev%2Frandom-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/theyadev%2Frandom-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/theyadev%2Frandom-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/theyadev","download_url":"https://codeload.github.com/theyadev/random-api/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240540552,"owners_count":19817791,"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":["api","npm","npm-package","publicapis","random"],"created_at":"2024-11-10T10:08:51.933Z","updated_at":"2026-05-16T04:08:32.584Z","avatar_url":"https://github.com/theyadev.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# get-random-api\n\u003ca href=\"https://codeclimate.com/github/theyadev/random-api/maintainability\"\u003e\u003cimg src=\"https://api.codeclimate.com/v1/badges/65bd89c7dad927f32a61/maintainability\" /\u003e\u003c/a\u003e\n\nA simple and lightweight module to get random api\n\n## Installation\n\n`npm i --save get-random-api`\n\n## Documentation\n\nImport what you need !\n\n#### Javascript\n\n```js\nconst { getAllApis, getRandomApi, getAllCategories, getRandomCategory, getNumberOfApis } = require(\"get-random-api\")\n```\n\n#### Typescript\n\n```ts\nimport { getAllApis, getRandomApi, getAllCategories, getRandomCategory, getNumberOfApis } from \"get-random-api\";\n```\n\n### Usage\n\n#### getAllApis\n```js\nconst apis = await getAllApis()\n```\n#### getRandomApi\n```js\nconst randomApis = await getRandomApi(number)\n```\n\n#### getAllCategories\n```js\nconst categories = await getAllCategories()\n```\n#### getRandomCategory\n```js\nconst randomCategories = await getRandomCategory(number)\n```\n#### getNumberOfApis\n```js\nconst count = await getNumberOfApis()\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftheyadev%2Frandom-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftheyadev%2Frandom-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftheyadev%2Frandom-api/lists"}