{"id":13432264,"url":"https://github.com/withspectrum/micro-open-graph","last_synced_at":"2025-03-16T23:30:59.364Z","repository":{"id":55416849,"uuid":"82681256","full_name":"withspectrum/micro-open-graph","owner":"withspectrum","description":"A tiny Node.js microservice to scrape open graph data with joy.","archived":true,"fork":false,"pushed_at":"2021-01-01T09:04:24.000Z","size":197,"stargazers_count":380,"open_issues_count":3,"forks_count":51,"subscribers_count":6,"default_branch":"master","last_synced_at":"2024-10-27T11:50:16.032Z","etag":null,"topics":["micro","microservices","nodejs","opengraph","scraper"],"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/withspectrum.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-02-21T13:10:50.000Z","updated_at":"2024-06-15T22:13:57.000Z","dependencies_parsed_at":"2022-08-14T23:50:48.101Z","dependency_job_id":null,"html_url":"https://github.com/withspectrum/micro-open-graph","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/withspectrum%2Fmicro-open-graph","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/withspectrum%2Fmicro-open-graph/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/withspectrum%2Fmicro-open-graph/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/withspectrum%2Fmicro-open-graph/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/withspectrum","download_url":"https://codeload.github.com/withspectrum/micro-open-graph/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243949866,"owners_count":20373653,"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":["micro","microservices","nodejs","opengraph","scraper"],"created_at":"2024-07-31T02:01:09.835Z","updated_at":"2025-03-16T23:30:59.089Z","avatar_url":"https://github.com/withspectrum.png","language":"JavaScript","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"readme":"# `micro-open-graph`\n\nA tiny Node.js microservice to scrape open graph data with joy.\n\nRunning this microservice you won't need a backend solely to get some meta information about links your users submit. Press the deploy button below and show your users what the links they're clicking on contain!\n\n## Deployment\n\nYour own `micro-open-graph` is one click away:\n\n[![Deploy to now](https://deploy.now.sh/static/button.svg)](https://deploy.now.sh/?repo=https://github.com/withspectrum/micro-open-graph)\n\nYou can also deploy with a single command from the terminal (assuming you have [`now`](https://now.sh) installed):\n\n```sh\nnow withspectrum/micro-open-graph\n```\n\n## Usage\n\nTo get the data for a given URL, for example `mxstbr.blog`, simply add that URL (safely escaped) to the `url` query parameter:\n\n```sh\nhttps://your-url.now.sh/?url=http://mxstbr.blog\n```\n\nAnd you will get the parsed data in the following format:\n\n```JSON\n{\n\t\"author\": null,\n\t\"date\": \"2017-02-16T11:00:00.000Z\",\n\t\"description\": \"Fresh thinking and expert tips about HTML, CSS, JavaScript and other web technologies.\",\n\t\"image\": \"http://mxstbr.blog/social_media.png\",\n\t\"publisher\": \"\u003cmxstbr/\u003e\",\n\t\"title\": \"\u003cmxstbr/\u003e\",\n\t\"url\": \"http://mxstbr.blog/\"\n}\n```\n\n\u003e Note: Not all of this, or even more, data might be available depending on the `meta` tags the page has in its HTML. (see [`metascraper`](https://github.com/microlinkhq/metascraper/blob/master/README.md#rules) for the full list of supported properties)\n\nWe infer the data from more places than just the open graph meta tags, we also support twitter meta tags and fallback to standard HTML tags like e.g. the `title` tag if no open graph data was specified. Results are cached in memory for 24 hours, which means calling this with the same URL repeatedly won't have a large impact on your server!\n\n## Development\n\n```sh\ngit clone git@github.com:withspectrum/micro-open-graph.git\nnpm run dev\n```\n\nThe server will then be listening at `localhost:3000`.\n\n## Updating\n\nThe `master` branch of this repository is what you will be deploying. To update to a new version with potential bugfixes, all you have to do is run the `now` command again and change the URL you call in your app! 👌\n\n## License\n\nCopyright (c) 2017 Maximilian Stoiber, licensed under the MIT license. See [LICENSE.md](LICENSE.md) for more information.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwithspectrum%2Fmicro-open-graph","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwithspectrum%2Fmicro-open-graph","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwithspectrum%2Fmicro-open-graph/lists"}