{"id":48625555,"url":"https://github.com/tiendc/go-linkpreview","last_synced_at":"2026-04-09T04:32:49.072Z","repository":{"id":245154768,"uuid":"817417604","full_name":"tiendc/go-linkpreview","owner":"tiendc","description":"Link preview and site info library for Go","archived":false,"fork":false,"pushed_at":"2025-10-30T14:16:22.000Z","size":13,"stargazers_count":9,"open_issues_count":1,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-30T16:28:12.545Z","etag":null,"topics":["link-preview","site-info","site-scraper","url-preview"],"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/tiendc.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2024-06-19T16:58:03.000Z","updated_at":"2025-10-30T14:16:25.000Z","dependencies_parsed_at":"2024-06-20T05:48:46.012Z","dependency_job_id":"dceac74c-207b-4990-8971-df5fa4954f31","html_url":"https://github.com/tiendc/go-linkpreview","commit_stats":null,"previous_names":["tiendc/go-linkpreview"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/tiendc/go-linkpreview","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tiendc%2Fgo-linkpreview","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tiendc%2Fgo-linkpreview/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tiendc%2Fgo-linkpreview/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tiendc%2Fgo-linkpreview/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tiendc","download_url":"https://codeload.github.com/tiendc/go-linkpreview/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tiendc%2Fgo-linkpreview/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31586404,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-08T14:31:17.711Z","status":"online","status_checked_at":"2026-04-09T02:00:06.848Z","response_time":112,"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":["link-preview","site-info","site-scraper","url-preview"],"created_at":"2026-04-09T04:32:46.498Z","updated_at":"2026-04-09T04:32:49.061Z","avatar_url":"https://github.com/tiendc.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Go Version][gover-img]][gover] [![GoDoc][doc-img]][doc] [![GoReport][rpt-img]][rpt]\n\n# Link preview and site info scraping library for Go\n\n## Installation\n\n```shell\ngo get github.com/tiendc/go-linkpreview\n```\n\n## Usage\n\n### Simple one\n\n```go\n    result, err := linkpreview.Parse(url)\n\n    // Output:\n    // {\n    //   \"title\": \u003ctitle\u003e,\n    //   \"description\": \u003cdescription\u003e,\n    //   \"og_meta\": {\u003copen graph metadata\u003e},\n    //   \"twitter_meta\": {\u003ctwitter metadata\u003e},\n    // }\n```\n\n### Parse with configuration\n\n```go\n    // Get everything\n    result, err := linkpreview.Parse(url,\n        linkpreview.ParseOGMeta(true),        // default: true\n        linkpreview.ParseTwitterMeta(true),   // default: true\n        linkpreview.ParseFavicons(true),      // default: false\n        linkpreview.ReturnMetaTags(true),     // default: false\n        linkpreview.ReturnLinkTags(true)      // default: false\n    )\n\n    // Output:\n    // {\n    //   \"title\": \u003ctitle\u003e,\n    //   \"description\": \u003cdescription\u003e,\n    //   \"og_meta\": {\u003copen graph metadata\u003e},\n    //   \"twitter_meta\": {\u003ctwitter metadata\u003e},\n    //   \"favicons\": [],\n    //   \"meta_tags\": [],\n    //   \"link_tags\": [],\n    // }\n```\n\n## Contributing\n\n- You are welcome to make pull requests for new functions and bug fixes.\n\n## Authors\n\n- Dao Cong Tien ([tiendc](https://github.com/tiendc))\n\n## License\n\n- [MIT License](LICENSE)\n\n[doc-img]: https://pkg.go.dev/badge/github.com/tiendc/go-linkpreview\n[doc]: https://pkg.go.dev/github.com/tiendc/go-linkpreview\n[gover-img]: https://img.shields.io/badge/Go-%3E%3D%201.18-blue\n[gover]: https://img.shields.io/badge/Go-%3E%3D%201.18-blue\n[rpt-img]: https://goreportcard.com/badge/github.com/tiendc/go-linkpreview\n[rpt]: https://goreportcard.com/report/github.com/tiendc/go-linkpreview\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftiendc%2Fgo-linkpreview","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftiendc%2Fgo-linkpreview","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftiendc%2Fgo-linkpreview/lists"}