{"id":21906029,"url":"https://github.com/hkjang/node-red-contrib-strapi","last_synced_at":"2025-07-29T11:09:41.700Z","repository":{"id":65462438,"uuid":"285422935","full_name":"hkjang/node-red-contrib-strapi","owner":"hkjang","description":"node-red-contrib-strapi","archived":false,"fork":false,"pushed_at":"2020-08-29T22:43:25.000Z","size":15,"stargazers_count":7,"open_issues_count":2,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-24T03:49:43.628Z","etag":null,"topics":["cms","headless","headless-cms","node-red","strapi"],"latest_commit_sha":null,"homepage":"","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/hkjang.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":"2020-08-05T23:05:07.000Z","updated_at":"2025-01-09T19:47:37.000Z","dependencies_parsed_at":"2023-01-24T15:45:28.436Z","dependency_job_id":null,"html_url":"https://github.com/hkjang/node-red-contrib-strapi","commit_stats":{"total_commits":7,"total_committers":1,"mean_commits":7.0,"dds":0.0,"last_synced_commit":"7ac6d341c4eda8fe5d43cccc67ceb69d79b7cd7b"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/hkjang/node-red-contrib-strapi","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hkjang%2Fnode-red-contrib-strapi","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hkjang%2Fnode-red-contrib-strapi/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hkjang%2Fnode-red-contrib-strapi/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hkjang%2Fnode-red-contrib-strapi/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hkjang","download_url":"https://codeload.github.com/hkjang/node-red-contrib-strapi/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hkjang%2Fnode-red-contrib-strapi/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267144985,"owners_count":24042642,"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","status":"online","status_checked_at":"2025-07-26T02:00:08.937Z","response_time":62,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["cms","headless","headless-cms","node-red","strapi"],"created_at":"2024-11-28T16:40:12.122Z","updated_at":"2025-07-29T11:09:41.677Z","avatar_url":"https://github.com/hkjang.png","language":"JavaScript","funding_links":["https://www.buymeacoffee.com/gagagiga"],"categories":[],"sub_categories":[],"readme":"node-red-contrib-strapi\n========================\n\nA \u003ca href=\"http://nodered.org\" target=\"_new\"\u003eNode-RED\u003c/a\u003e \nnode to get response to  \u003ca href=\"https://strapi.io/documentation/v3.x/content-api/api-endpoints.html#endpoints\" target=\"_new\"\u003e strapi api \u003c/a\u003e.\n\nInstall\n-------\n\nRun the following command in the root directory of your Node-RED install:\n\n    npm install node-red-contrib-strapi\n\n\nUsage\n-----\n\n## Strapi API \n\u003ci\u003e\u003ca href=\"https://strapi.io/documentation/v3.x/content-api/api-endpoints.html#endpoints\" target=\"_new\"\u003eStrapi\u003c/a\u003e\u003c/i\u003e api request node.\n\nExpects a \u003cb\u003emsg.payload\u003c/b\u003e with request(get,post,put,delete) params.\n\n\u003ca href=\"https://www.buymeacoffee.com/gagagiga\" target=\"_blank\"\u003e\u003cimg src=\"https://cdn.buymeacoffee.com/buttons/default-orange.png\" alt=\"Buy Me A Coffee\" height=\"41\" width=\"174\"\u003e\u003c/a\u003e\n\n### API URL\n- The url to call the Strapi API.\n\n### JWT Token\n- JWT Token value you put in the http header when calling the Strapi API.\n- If the strapi api is public, the jwt token value is not necessary.\n\n### method\n- Http Request Method \n\n## parameter example\n```javascript\n# GET\nmsg.method = 'get'\n// msg.payload.id = '4';\n\n# POST\nmsg.method = 'post'\nmsg.payload.price = '300';\nmsg.payload.tax = '30';\n\n# PUT\nmsg.method = 'put'\nmsg.payload.id = '2';\nmsg.payload.price = '400';\nmsg.payload.tax = '40';\n\n# DELETE\nmsg.method = 'delete'\nmsg.payload.id = '2';\n```\n\n## sample flow\n```json\n\n[{\"id\":\"3e1b116b.cedffe\",\"type\":\"http request\",\"z\":\"3f322a34.631386\",\"name\":\"\",\"method\":\"POST\",\"ret\":\"obj\",\"paytoqs\":\"ignore\",\"url\":\"https://yourdomain.com/auth/local\",\"tls\":\"\",\"persist\":false,\"proxy\":\"\",\"authType\":\"\",\"x\":450,\"y\":360,\"wires\":[[\"5b7cb68a.595e98\"]]},{\"id\":\"f5982664.8ffe08\",\"type\":\"inject\",\"z\":\"3f322a34.631386\",\"name\":\"\",\"props\":[{\"p\":\"payload\"},{\"p\":\"topic\",\"vt\":\"str\"}],\"repeat\":\"\",\"crontab\":\"\",\"once\":false,\"onceDelay\":0.1,\"topic\":\"\",\"payload\":\"\",\"payloadType\":\"date\",\"x\":120,\"y\":360,\"wires\":[[\"7b10baf0.334ff4\"]]},{\"id\":\"5b7cb68a.595e98\",\"type\":\"debug\",\"z\":\"3f322a34.631386\",\"name\":\"\",\"active\":true,\"tosidebar\":true,\"console\":false,\"tostatus\":false,\"complete\":\"false\",\"statusVal\":\"\",\"statusType\":\"auto\",\"x\":630,\"y\":360,\"wires\":[]},{\"id\":\"7b10baf0.334ff4\",\"type\":\"function\",\"z\":\"3f322a34.631386\",\"name\":\"\",\"func\":\"msg = {}\\nmsg.payload = {};\\nmsg.payload.identifier = 'test';\\nmsg.payload.password = 'test1234!';\\n\\n\\nreturn msg;\",\"outputs\":1,\"noerr\":0,\"initialize\":\"\",\"finalize\":\"\",\"x\":280,\"y\":360,\"wires\":[[\"3e1b116b.cedffe\"]]},{\"id\":\"a7d351e3.67da4\",\"type\":\"inject\",\"z\":\"3f322a34.631386\",\"name\":\"\",\"props\":[{\"p\":\"payload\"},{\"p\":\"topic\",\"vt\":\"str\"}],\"repeat\":\"\",\"crontab\":\"\",\"once\":false,\"onceDelay\":0.1,\"topic\":\"\",\"payload\":\"\",\"payloadType\":\"date\",\"x\":120,\"y\":400,\"wires\":[[\"9fdc864d.3c9578\"]]},{\"id\":\"89adfa3d.3a4578\",\"type\":\"debug\",\"z\":\"3f322a34.631386\",\"name\":\"\",\"active\":true,\"tosidebar\":true,\"console\":false,\"tostatus\":false,\"complete\":\"false\",\"statusVal\":\"\",\"statusType\":\"auto\",\"x\":730,\"y\":400,\"wires\":[]},{\"id\":\"9fdc864d.3c9578\",\"type\":\"function\",\"z\":\"3f322a34.631386\",\"name\":\"\",\"func\":\"msg = {};\\nmsg.payload = {};\\nmsg.method = 'get';\\nmsg.payload.id = '1';\\n\\nreturn msg;\",\"outputs\":1,\"noerr\":0,\"initialize\":\"\",\"finalize\":\"\",\"x\":280,\"y\":400,\"wires\":[[\"8b66bc62.ae2e5\"]]},{\"id\":\"70077ccd.7c0fc4\",\"type\":\"json\",\"z\":\"3f322a34.631386\",\"name\":\"\",\"property\":\"payload\",\"action\":\"\",\"pretty\":false,\"x\":560,\"y\":400,\"wires\":[[\"89adfa3d.3a4578\"]]},{\"id\":\"8b66bc62.ae2e5\",\"type\":\"strapi\",\"z\":\"3f322a34.631386\",\"strapiAPIURL\":\"https://yourdomain.com/products\",\"jwtToken\":\"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MSwiaWF0IjoxNTk3MTQ0MzQwLCJleHAiOjE1OTk3MzYzNDB9.ULLdLkpXQ0ElmOp-QzFk_gHZfoDd6Ee0l7DVdhxaAII\",\"x\":430,\"y\":400,\"wires\":[[\"70077ccd.7c0fc4\"]]}]\n\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhkjang%2Fnode-red-contrib-strapi","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhkjang%2Fnode-red-contrib-strapi","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhkjang%2Fnode-red-contrib-strapi/lists"}