{"id":20447985,"url":"https://github.com/yi-ge/submit-url","last_synced_at":"2025-07-20T15:33:05.217Z","repository":{"id":57141650,"uuid":"284959780","full_name":"yi-ge/submit-url","owner":"yi-ge","description":"Submit url to baidu google bing search engine.","archived":false,"fork":false,"pushed_at":"2023-05-03T14:53:19.000Z","size":106,"stargazers_count":7,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-06-29T21:37:38.643Z","etag":null,"topics":["baidu","bing","google","search-engine","submit"],"latest_commit_sha":null,"homepage":"https://www.wyr.me/post/631","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/yi-ge.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":"2020-08-04T11:30:40.000Z","updated_at":"2024-05-07T10:33:24.000Z","dependencies_parsed_at":"2024-11-15T10:33:24.285Z","dependency_job_id":"f0fc8dff-53a5-40c6-a25c-a43b8299e4a5","html_url":"https://github.com/yi-ge/submit-url","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/yi-ge/submit-url","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yi-ge%2Fsubmit-url","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yi-ge%2Fsubmit-url/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yi-ge%2Fsubmit-url/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yi-ge%2Fsubmit-url/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yi-ge","download_url":"https://codeload.github.com/yi-ge/submit-url/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yi-ge%2Fsubmit-url/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266151524,"owners_count":23884436,"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":["baidu","bing","google","search-engine","submit"],"created_at":"2024-11-15T10:31:23.627Z","updated_at":"2025-07-20T15:33:05.198Z","avatar_url":"https://github.com/yi-ge.png","language":"TypeScript","readme":"# Submit URL\n\nSubmit url to baidu google bing search engine.\n\n## API\n\n### Installation\n\n```bash\nnpm install submit-url\n```\n\n### Usage Example\n\n```javascript\nimport submitURL from 'submit-url'\n\nconst submitURL = new SubmitURL({\n  siteURL: process.env.SITE_URL || '',\n  baiduToken: process.env.BAIDU_TOKEN || '',\n  googleClientEmail: process.env.GOOGLE_CLIENT_EMAIL || '',\n  googlePrivateKey: process.env.GOOGLE_PRIVATE_KEY || '',\n  bingAPIKey: process.env.BING_API_KEY || ''\n})\n\nconst [baidu, google, bing] = await Promise.allSettled([\n  submitURL.toBaidu(urlList),\n  submitURL.toGoogle(urlList),\n  submitURL.toBing(urlList)\n])\n\nreturn { baidu, google, bing }\n```\n\n## API Service with Docker\n\n### Usage Example\n\n```bash\ndocker run --name submit-url -itd -m 300m --restart=always \\\n-e TOKEN=cbe205ad-1026-4906-8caa-cf4ab8b35d1a \\\n-e SITE_URL=https://www.xxx.xx \\\n-e BAIDU_TOKEN=bKRK********EiOB \\\n-e BING_API_KEY=3356082b***************7b039e756 \\\n-e GOOGLE_CLIENT_EMAIL=blog-***@blog-******.iam.gserviceaccount.com \\\n-e GOOGLE_PRIVATE_KEY=\"-----BEGIN PRIVATE KEY-----\\n********\\n-----END PRIVATE KEY-----\\n\" \\\n-p 8080:80 \\\nwy373226722/submit-url:latest\n```\n\n### Request\n\n**POST** /\n\nContent-Type: application/json\n\n```json\n{\n    \"token\": \"16e*****-c0d8-4b53-b52b-d216e5ea35fc\",\n    \"urlList\": [\"https://www.wyr.me/post/630\"]\n}\n```\n\n### Success Response\n\n```json\n{\n    \"baidu\": {\n        \"status\": \"fulfilled\",\n        \"value\": {\n            \"code\": 1,\n            \"msg\": \"success\",\n            \"result\": {\n                \"success\": 1,\n                \"remain\": 99999\n            }\n        }\n    },\n    \"google\": {\n        \"status\": \"fulfilled\",\n        \"value\": {\n            \"code\": 1,\n            \"msg\": \"success\",\n            \"result\": {\n                \"successNumber\": 1,\n                \"commitLog\": [\n                    {\n                        \"status\": \"fulfilled\",\n                        \"value\": {\n                            \"code\": 1,\n                            \"msg\": \"success\",\n                            \"result\": {\n                                \"urlNotificationMetadata\": {\n                                    \"url\": \"https://www.wyr.me/post/630\",\n                                    \"latestUpdate\": {\n                                        \"url\": \"https://www.wyr.me/post/630\",\n                                        \"type\": \"URL_UPDATED\",\n                                        \"notifyTime\": \"2020-08-04T14:30:06.848150189Z\"\n                                    }\n                                }\n                            }\n                        }\n                    }\n                ]\n            }\n        }\n    },\n    \"bing\": {\n        \"status\": \"fulfilled\",\n        \"value\": {\n            \"code\": 1,\n            \"msg\": \"success\",\n            \"result\": {\n                \"d\": null\n            }\n        }\n    }\n}\n```\n\n### Documentation\n\n[将新文章推送到百度、谷歌、Bing搜索引擎](https://www.wyr.me/post/631)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyi-ge%2Fsubmit-url","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyi-ge%2Fsubmit-url","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyi-ge%2Fsubmit-url/lists"}