{"id":13693208,"url":"https://github.com/ipfs/go-ipfs-api","last_synced_at":"2025-09-29T23:32:14.212Z","repository":{"id":31959503,"uuid":"35529429","full_name":"ipfs/go-ipfs-api","owner":"ipfs","description":"The go interface to ipfs's HTTP API","archived":true,"fork":false,"pushed_at":"2024-02-07T11:07:13.000Z","size":421,"stargazers_count":456,"open_issues_count":33,"forks_count":178,"subscribers_count":34,"default_branch":"master","last_synced_at":"2024-11-17T12:14:00.658Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Go","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/ipfs.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":"2015-05-13T05:09:55.000Z","updated_at":"2024-11-15T04:05:52.000Z","dependencies_parsed_at":"2023-11-19T07:57:39.695Z","dependency_job_id":"f4441040-81f7-4d5b-a192-57e6b2866a9c","html_url":"https://github.com/ipfs/go-ipfs-api","commit_stats":null,"previous_names":["ipfs/go-ipfs-shell","whyrusleeping/ipfs-shell","ipfs/ipfs-shell"],"tags_count":30,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ipfs%2Fgo-ipfs-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ipfs%2Fgo-ipfs-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ipfs%2Fgo-ipfs-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ipfs%2Fgo-ipfs-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ipfs","download_url":"https://codeload.github.com/ipfs/go-ipfs-api/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":234673612,"owners_count":18869699,"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":[],"created_at":"2024-08-02T17:01:06.950Z","updated_at":"2025-09-29T23:32:08.937Z","avatar_url":"https://github.com/ipfs.png","language":"Go","funding_links":[],"categories":["开源类库","Open source library","Go"],"sub_categories":["网络","The Internet"],"readme":"## ⚠️ This package is no longer being maintained ⚠️\n\nPlease use [`kubo/client/rpc`](https://github.com/ipfs/kubo/tree/master/client/rpc) instead. In rare case the new library does not offer a feature this one does, fill issue in Kubo, or better, submit a PR that adds it to [`kubo/client/rpc`](https://github.com/ipfs/kubo/tree/master/client/rpc).\n\nFor more details about the decision, see https://github.com/ipfs/kubo/issues/9124.\n\n# go-ipfs-api\n\n[![](https://img.shields.io/badge/made%20by-Protocol%20Labs-blue.svg?style=flat-square)](https://protocol.ai)\n[![](https://img.shields.io/badge/project-IPFS-blue.svg?style=flat-square)](https://ipfs.io/)\n[![](https://img.shields.io/badge/matrix-%23ipfs-blue.svg?style=flat-square)](https://app.element.io/#/room/#ipfs:matrix.org)\n[![standard-readme compliant](https://img.shields.io/badge/standard--readme-OK-green.svg?style=flat-square)](https://github.com/RichardLitt/standard-readme)\n[![GoDoc](https://godoc.org/github.com/ipfs/go-ipfs-api?status.svg)](https://godoc.org/github.com/ipfs/go-ipfs-api)\n[![Build Status](https://travis-ci.org/ipfs/go-ipfs-api.svg)](https://travis-ci.org/ipfs/go-ipfs-api) \n\n![](https://camo.githubusercontent.com/651f7045071c78042fec7f5b9f015e12589af6d5/68747470733a2f2f697066732e696f2f697066732f516d514a363850464d4464417367435a76413155567a7a6e3138617356636637485676434467706a695343417365)\n\n\u003e The go interface to ipfs's HTTP API\n\n## Install\n\n```sh\ngo install github.com/ipfs/go-ipfs-api@latest\n```\n\nThis will download the source into `$GOPATH/src/github.com/ipfs/go-ipfs-api`.\n\n## Usage\n\nSee [the godocs](https://godoc.org/github.com/ipfs/go-ipfs-api) for details on available methods. This should match the specs at [ipfs/specs (Core API)](https://github.com/ipfs/specs/blob/master/API_CORE.md); however, there are still some methods which are not accounted for. If you would like to add any of them, see the contribute section below. See also the [HTTP API](https://docs.ipfs.io/reference/http/api/).\n\n### Example\n\nAdd a file with the contents \"hello world!\":\n\n```go\npackage main\n\nimport (\n\t\"fmt\"\n\t\"strings\"\n    \t\"os\"\n\n    \tshell \"github.com/ipfs/go-ipfs-api\"\n)\n\nfunc main() {\n\t// Where your local node is running on localhost:5001\n\tsh := shell.NewShell(\"localhost:5001\")\n\tcid, err := sh.Add(strings.NewReader(\"hello world!\"))\n\tif err != nil {\n        fmt.Fprintf(os.Stderr, \"error: %s\", err)\n        os.Exit(1)\n\t}\n    fmt.Printf(\"added %s\", cid)\n}\n```\n\nFor a more complete example, please see: https://github.com/ipfs/go-ipfs-api/blob/master/tests/main.go\n\n## Contribute\n\nContributions are welcome! Please check out the [issues](https://github.com/ipfs/go-ipfs-api/issues).\n\n### Want to hack on IPFS?\n\n[![](https://cdn.rawgit.com/jbenet/contribute-ipfs-gif/master/img/contribute.gif)](https://github.com/ipfs/community/blob/master/CONTRIBUTING.md)\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fipfs%2Fgo-ipfs-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fipfs%2Fgo-ipfs-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fipfs%2Fgo-ipfs-api/lists"}