{"id":15174000,"url":"https://github.com/nekkuzuria/cookpad-api","last_synced_at":"2026-01-23T20:39:19.660Z","repository":{"id":251875768,"uuid":"838708745","full_name":"nekkuzuria/cookpad-api","owner":"nekkuzuria","description":"API to scrape and fetch random Cookpad recipes using provided ingredients","archived":false,"fork":false,"pushed_at":"2024-08-06T14:46:13.000Z","size":2857,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-12T17:15:46.861Z","etag":null,"topics":["api","cheerio","fastify","nodejs","web-scraping"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/nekkuzuria.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-06T07:29:36.000Z","updated_at":"2025-04-10T14:11:11.000Z","dependencies_parsed_at":"2024-08-06T09:28:41.322Z","dependency_job_id":"21cbe50d-97c1-4cb5-975a-785edd7331c2","html_url":"https://github.com/nekkuzuria/cookpad-api","commit_stats":{"total_commits":7,"total_committers":2,"mean_commits":3.5,"dds":0.4285714285714286,"last_synced_commit":"3436f8f191bb44ac0aa6b6f211664a400818857c"},"previous_names":["nekkuzuria/cookpad-api"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/nekkuzuria/cookpad-api","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nekkuzuria%2Fcookpad-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nekkuzuria%2Fcookpad-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nekkuzuria%2Fcookpad-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nekkuzuria%2Fcookpad-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nekkuzuria","download_url":"https://codeload.github.com/nekkuzuria/cookpad-api/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nekkuzuria%2Fcookpad-api/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28699682,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-23T17:25:48.045Z","status":"ssl_error","status_checked_at":"2026-01-23T17:25:47.153Z","response_time":59,"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","cheerio","fastify","nodejs","web-scraping"],"created_at":"2024-09-27T11:22:47.526Z","updated_at":"2026-01-23T20:39:19.643Z","avatar_url":"https://github.com/nekkuzuria.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Cookpad Recipe Scraper API\nThis project is a simple API to scrape recipes from Cookpad based on provided ingredients. It uses Fastify, Axios, and Cheerio for web scraping.\n\n**Prerequisites**\n- Node.js (version 14 or higher)\n- npm or yarn\n- API Key from [AbstractAPI](https://www.abstractapi.com/)\n\n**Getting Started**\n1. Clone the repository:\n   ```bash\n   git clone https://github.com/yourusername/cookpad-api\n   cd cookpad-api\n   ```\n\n2. Install dependencies:\n   ```bash\n   npm install\n   # or\n   yarn install\n   ```\n\n3. Create Environment Configuration:\n   - Copy the .env.example file to .env:\n     ```bash\n     cp .env.example .env\n     ```\n   - Open the .env file and add your AbstractAPI key:\n     ```bash\n     API_KEY=your_abstractapi_key_here\n     ```\n     You need to generate an API key from [AbstractAPI](https://www.abstractapi.com/)\n\n4. Start the server:\n    ```bash\n    node server.js  \n    ```\n    The server will start on http://localhost:3000.\n\n\u003cbr\u003e\n\u003cbr\u003e\n\n**API Endpoint**\n\nTo search for recipes using specific ingredients, send a GET request to:\n```bash\nhttp://localhost:3000/recipes?ingredients=your_ingredients\n```\nReplace your_ingredients with the ingredients you want to search for.\n\n\u003cbr\u003e\n\u003cbr\u003e\n\n**Functionality**\n- The API fetches a list of recipes from Cookpad based on the provided ingredients.\n- It randomly selects a recipe from the list and returns the recipe details.\n- The returned data includes the recipe title, image URL, ingredients, and the Cookpad recipe URL.\n\n\u003cbr\u003e\n\u003cbr\u003e\n\n**Example Request and Response**\n\nRequest:\n```bash\nhttp://localhost:3000/api/search?ingredients=tepung%20telur\n```\n\nResponse:\n```json\n{\n  \"title\": \"Telur Dadar Buncis Kentang Tepung Beras\",\n  \"image\": \"https://img-global.cpcdn.com/recipes/96d390d8744a5391/160x176cq30/telur-dadar-buncis-kentang-tepung-beras-foto-resep-utama.jpg\",\n  \"ingredients\": \"telur ayam,\\n      buncis,\\n      kentang,\\n      Tepung beras,\\n      Bahan lainya :,\\n      cabe giling,\\n      garam,\\n      kaldu bubuk,\\n      lada bubuk,\\n      air putih,\\n      minyak goreng\",\n  \"url\": \"https://cookpad.com/id/resep/17196667-telur-dadar-buncis-kentang-tepung-beras\"\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnekkuzuria%2Fcookpad-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnekkuzuria%2Fcookpad-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnekkuzuria%2Fcookpad-api/lists"}