{"id":19751586,"url":"https://github.com/zanjie1999/cloudflare-api-v4-ddns","last_synced_at":"2025-10-25T07:10:34.205Z","repository":{"id":43956640,"uuid":"361343041","full_name":"zanjie1999/cloudflare-api-v4-ddns","owner":"zanjie1999","description":"cloudflare 一键 ddns 脚本 (大陆可用)","archived":false,"fork":false,"pushed_at":"2023-03-29T03:07:45.000Z","size":13,"stargazers_count":92,"open_issues_count":3,"forks_count":52,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-30T10:32:25.184Z","etag":null,"topics":["cloudflare","cloudflare-api","ddns","linux","sh"],"latest_commit_sha":null,"homepage":"","language":"Shell","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/zanjie1999.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,"zenodo":null}},"created_at":"2021-04-25T05:54:50.000Z","updated_at":"2025-04-12T05:43:32.000Z","dependencies_parsed_at":"2025-04-30T10:31:51.872Z","dependency_job_id":"24ea3ee0-7df0-49b6-bff2-06e36c49870b","html_url":"https://github.com/zanjie1999/cloudflare-api-v4-ddns","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/zanjie1999/cloudflare-api-v4-ddns","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zanjie1999%2Fcloudflare-api-v4-ddns","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zanjie1999%2Fcloudflare-api-v4-ddns/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zanjie1999%2Fcloudflare-api-v4-ddns/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zanjie1999%2Fcloudflare-api-v4-ddns/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zanjie1999","download_url":"https://codeload.github.com/zanjie1999/cloudflare-api-v4-ddns/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zanjie1999%2Fcloudflare-api-v4-ddns/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261231423,"owners_count":23127998,"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":["cloudflare","cloudflare-api","ddns","linux","sh"],"created_at":"2024-11-12T02:44:36.749Z","updated_at":"2025-10-25T07:10:34.154Z","avatar_url":"https://github.com/zanjie1999.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# cloudflare-api-v4-ddns\ncloudflare 一键 ddns 脚本 (大陆可用)  \n下载`cf-v4-ddns.sh`编辑一下加到crontab里就完事了  \n```\nsudo wget https://raw.githubusercontent.com/zanjie1999/cloudflare-api-v4-ddns/master/cf-v4-ddns.sh -O /usr/local/bin/cf-ddns.sh\nsudo chmod +x /usr/local/bin/cf-ddns.sh\nsudo nano /usr/local/bin/cf-ddns.sh\n```  \n修改`default config`下的几个配置变量  \n[其中CFTOKEN填的是API Token，中文叫API令牌，别填了下面的API Key](https://dash.cloudflare.com/profile/api-tokens)  \n`crontab -e`  \n在最后加上`*/2 * * * * /usr/local/bin/cf-ddns.sh \u003e/dev/null 2\u003e\u00261`  \n如果需要日志就换成这条`*/2 * * * * /usr/local/bin/cf-ddns.sh \u003e\u003e /var/log/cf-ddns.log 2\u003e\u00261`  \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzanjie1999%2Fcloudflare-api-v4-ddns","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzanjie1999%2Fcloudflare-api-v4-ddns","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzanjie1999%2Fcloudflare-api-v4-ddns/lists"}