{"id":21521620,"url":"https://github.com/zzarcon/page-ogtags","last_synced_at":"2026-05-17T19:33:35.062Z","repository":{"id":68435591,"uuid":"102074403","full_name":"zzarcon/page-ogtags","owner":"zzarcon","description":"Get any website OG tags using Puppeteer","archived":false,"fork":false,"pushed_at":"2017-09-20T12:04:14.000Z","size":29,"stargazers_count":3,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-17T17:21:29.242Z","etag":null,"topics":["og-tags","open-graph","page-ogtags","puppeteer","scraping"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/zzarcon.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":"2017-09-01T04:40:39.000Z","updated_at":"2020-09-16T00:04:39.000Z","dependencies_parsed_at":"2023-02-21T09:30:48.966Z","dependency_job_id":null,"html_url":"https://github.com/zzarcon/page-ogtags","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/zzarcon/page-ogtags","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zzarcon%2Fpage-ogtags","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zzarcon%2Fpage-ogtags/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zzarcon%2Fpage-ogtags/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zzarcon%2Fpage-ogtags/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zzarcon","download_url":"https://codeload.github.com/zzarcon/page-ogtags/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zzarcon%2Fpage-ogtags/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266261147,"owners_count":23901285,"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":["og-tags","open-graph","page-ogtags","puppeteer","scraping"],"created_at":"2024-11-24T01:07:47.217Z","updated_at":"2025-10-29T21:33:00.455Z","avatar_url":"https://github.com/zzarcon.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# page-ogtags\n\u003e Get OG tags with ease\n\n# Usage\n\n```javascript\nimport getMeta from 'page-ogtags';\n\nconst {title, description, url, locale, image} = await getMeta('https://www.atlassian.com/');\n\nconsole.log(\n  title,\n  description,\n  url,\n  locale.alternate,\n  image.url,\n  image.type,\n  image.width,\n);\n```\n\n# Features\n\n* Meta property serialization\n\n```html\n\u003cmeta property=\"og:url\" content=\"https://www.atlassian.com\" /\u003e\n\u003cmeta property=\"og:site_name\" content=\"Atlassian\" /\u003e\n\u003cmeta property=\"og:full_site_name\" content=\"Atlassian | 2017\" /\u003e\n```\n\n```json\n{\n  \"url\": \"https://www.atlassian.com\",\n  \"siteName\": \"Atlassian\",\n  \"fullSiteName\": \"Atlassian | 2017\"\n}\n```\n\n* Recursive mapping of tags into nested objects:\n\n```html\n\u003cmeta property=\"og:image\" content=\"https://wac-cdn.atlassian.com/dam/jcr:c20cf6d1-9568-4aba-9a16-dba24e1495de/Atlassian-blue-onecolor@2x-rgb.png\" /\u003e\n\u003cmeta property=\"og:image:width\" content=\"1200\" /\u003e\n\u003cmeta property=\"og:image:height\" content=\"630\"\u003e\n\u003cmeta property=\"og:video:type\" content=\"application/x-shockwave-flash\" /\u003e\n\u003cmeta property=\"og:video:width\" content=\"400\" /\u003e\n\u003cmeta property=\"og:video:height\" content=\"300\" /\u003e\n```\n\n```json\n{\n  \"image\": {\n    \"value\": \"https://wac-cdn.atlassian.com/dam/jcr:c20cf6d1-9568-4aba-9a16-dba24e1495de/Atlassian-blue-onecolor@2x-rgb.png\",\n    \"width\": \"1200\",\n    \"height\": \"630\"\n  },\n  \"video\": {\n    \"type\": \"application/x-shockwave-flash\",\n    \"width\": \"400\",\n    \"height\": \"300\"\n  }\n}\n```\n\n* Array support\n\n```html\n\u003cmeta property=\"og:image\" content=\"http://example.com/rock.jpg\" /\u003e\n\u003cmeta property=\"og:image\" content=\"http://example.com/rock2.jpg\" /\u003e\n```\n\n```json\n{\n  \"image\": [\n    \"http://example.com/rock.jpg\",\n    \"http://example.com/rock2.jpg\"\n  ]\n}\n```\n\n* Retrieve all ```og:``` tags from the page, officials or not.\n\n# TODO\n\n- [ ] babel-plugin-transform-flow-strip-types","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzzarcon%2Fpage-ogtags","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzzarcon%2Fpage-ogtags","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzzarcon%2Fpage-ogtags/lists"}