{"api":{"id":"api_b6fd7e5df331e74cc6fc2a22","slug":"go-packages","name":"Go Packages API","description":"Go packages from pkg.go.dev for any search: import path, one-line summary, latest version, publish date, how many other packages import it and its licence. Give module paths to also get every released version.","kind":"ready_made","visibility":"public","domain":"pkg.go.dev","source_url":"https://pkg.go.dev/search","category":"developer","record_type":"generic","active_version":"1.0","units_per_1k":1000,"health":"unknown","auto_repair":false,"last_checked_at":null,"last_run_at":null,"fields_count":9,"created_at":"2026-12-06T03:57:27.661Z","updated_at":"2026-12-06T03:57:27.661Z","runnable":true,"egress":null,"repairs":[],"repairs_total":0,"how":"Runs on a reader we built and maintain by hand for this site.","fields":[{"name":"package_path","type":"string","description":"Import path of the package or module.","required":true,"coverage":1,"example":"github.com/gin-gonic/gin"},{"name":"url","type":"url","description":"The package page on pkg.go.dev.","required":false,"coverage":1,"example":"https://pkg.go.dev/github.com/gin-gonic/gin"},{"name":"module_path","type":"string","description":"Module path (filled for rows from module_paths).","required":false,"coverage":0.2,"example":"github.com/gin-gonic/gin"},{"name":"synopsis","type":"string","description":"One-line summary of the package.","required":false,"coverage":0.8,"example":"Package httprouter is a trie based high performance HTTP request router."},{"name":"latest_version","type":"string","description":"Latest version, such as v1.9.0.","required":false,"coverage":1,"example":"v1.12.0"},{"name":"published_date","type":"date","description":"Day the latest version was published.","required":false,"coverage":0.8,"example":"2026-02-28"},{"name":"imported_by","type":"integer","description":"Number of other packages that import it.","required":false,"coverage":0.8,"example":27361},{"name":"license","type":"string","description":"Licence names, such as MIT.","required":false,"coverage":0.8,"example":"BSD-3-Clause"},{"name":"versions","type":"array","description":"Every released version of the module (module_paths rows only).","required":false,"coverage":0.2,"example":["v1.9.0","v1.3.0"]}],"inputs":[{"name":"search","type":"string","description":"Words to find Go packages, as typed in the pkg.go.dev search box.","example":"http router"},{"name":"module_paths","type":"array","description":"Module paths to get the latest version and every released version for, such as github.com/gin-gonic/gin.","example":["github.com/gin-gonic/gin"]}],"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","additionalProperties":true,"properties":{"imported_by":{"description":"Number of other packages that import it.","type":"integer"},"latest_version":{"description":"Latest version, such as v1.9.0.","type":"string"},"license":{"description":"Licence names, such as MIT.","type":"string"},"module_path":{"description":"Module path (filled for rows from module_paths).","type":"string"},"package_path":{"description":"Import path of the package or module.","type":"string"},"published_date":{"description":"Day the latest version was published.","format":"date","type":"string"},"synopsis":{"description":"One-line summary of the package.","type":"string"},"url":{"description":"The package page on pkg.go.dev.","format":"uri","type":"string"},"versions":{"description":"Every released version of the module (module_paths rows only).","type":"array"}},"required":["package_path"],"title":"Go Packages API","type":"object"},"samples":[{"package_path":"github.com/gin-gonic/gin","url":"https://pkg.go.dev/github.com/gin-gonic/gin","module_path":"github.com/gin-gonic/gin","synopsis":null,"latest_version":"v1.12.0","published_date":"2026-02-28","imported_by":null,"license":null,"versions":["v1.9.0","v1.3.0","v1.7.0","v1.8.0"]},{"package_path":"github.com/julienschmidt/httprouter","url":"https://pkg.go.dev/github.com/julienschmidt/httprouter","module_path":null,"synopsis":"Package httprouter is a trie based high performance HTTP request router.","latest_version":"v1.3.0","published_date":"2019-09-29","imported_by":27361,"license":"BSD-3-Clause","versions":null},{"package_path":"github.com/go-chi/chi/v5","url":"https://pkg.go.dev/github.com/go-chi/chi/v5","module_path":null,"synopsis":"Package chi is a small, idiomatic and composable router for building HTTP services.","latest_version":"v5.5.0","published_date":"2026-10-14","imported_by":17309,"license":"MIT","versions":null}],"validation":{"checked_at":"2026-12-06T03:57:27.599Z","field_coverage":{"imported_by":0.67,"latest_version":1,"license":0.67,"module_path":0.33,"package_path":1,"published_date":1,"synopsis":0.67,"url":1,"versions":0.33},"fresh_read":false,"identity_unique":true,"issues":["Imported from a hand-built source. Field names and types come from its published schema; no live read was made for this check."],"level":"preview","pages_checked":0,"passed":true,"records_checked":3},"links":{"run":"https://pullrow.dev/v1/apis/api_b6fd7e5df331e74cc6fc2a22/run","openapi":"https://pullrow.dev/v1/apis/api_b6fd7e5df331e74cc6fc2a22/openapi.json","contract":"https://pullrow.dev/v1/apis/api_b6fd7e5df331e74cc6fc2a22/contract.json","page":"https://pullrow.dev/catalog/go-packages"},"runs_30d":0,"success_rate_30d":null,"price_per_1k_usd":1,"featured":false,"reliability":{"window_days":30,"runs":0,"completed":0,"succeeded":0,"failed":0,"success_rate":null,"last_run_at":null},"demo":{"available":false,"max_records":0,"reason":"Every run of this API costs us money, so it has no free live demo. The sample records on its page show what it returns.","code":"demo_not_available"},"meta":{"limitations":["A search returns at most the 100 best matches in one page (pkg.go.dev does not page further); narrow or vary the words to see others. Module paths add up to 50 more rows.","Search rows carry the summary, version, date, import count and licence; module_path and versions are only filled for the module paths you list in module_paths (at most 50 per run), which are read from the official Go module mirror.","Module rows have no summary, import count or licence; synopsis is empty for many packages that have no doc comment.","Imported-by counts and dates are as pkg.go.dev shows them on the day of the run; the index can lag a new release by a few minutes to hours.","About two requests per second at most; module rows take two requests each.","Information is from public Go package metadata; each package keeps its own licence. Not affiliated with the Go project."]},"plain":{"summary":null,"source":"rules","fields":[{"name":"package_path","label":"Package path","description":"Import path of the package or module.","group":"Basics","shown":true,"written":false},{"name":"url","label":"Link","description":"The package page on pkg.go.dev.","group":"Links","shown":true,"written":false},{"name":"module_path","label":"Module path","description":"","group":"Basics","shown":true,"written":false},{"name":"synopsis","label":"Synopsis","description":"One-line summary of the package.","group":"Basics","shown":true,"written":false},{"name":"latest_version","label":"Latest version","description":"Latest version, such as v1.9.0.","group":"Basics","shown":true,"written":false},{"name":"published_date","label":"Published date","description":"Day the latest version was published.","group":"Dates","shown":true,"written":false},{"name":"imported_by","label":"Imported by","description":"Number of other packages that import it.","group":"Basics","shown":true,"written":false},{"name":"license","label":"License","description":"Licence names, such as MIT.","group":"Basics","shown":true,"written":false},{"name":"versions","label":"Versions","description":"Every released version of the module (module_paths rows only).","group":"Basics","shown":true,"written":false}],"inputs":[{"name":"search","label":"Search","help":"Words to find Go packages, as typed in the pkg.go.dev search box.","example":"http router","written":false},{"name":"module_paths","label":"Module paths","help":"Module paths to get the latest version and every released version for, such as github.com/gin-gonic/gin.","example":"github.com/gin-gonic/gin","written":false}]}},"incidents":[]}