{"id":22901764,"url":"https://github.com/mbuczko/clj-embodie","last_synced_at":"2026-07-15T21:34:20.314Z","repository":{"id":62432327,"uuid":"165510816","full_name":"mbuczko/clj-embodie","owner":"mbuczko","description":"Fetching site-embedded data","archived":false,"fork":false,"pushed_at":"2019-01-13T13:57:10.000Z","size":5,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2026-01-14T07:41:55.862Z","etag":null,"topics":["clojure","oembed","open-graph"],"latest_commit_sha":null,"homepage":null,"language":"Clojure","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mbuczko.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-01-13T13:51:11.000Z","updated_at":"2023-10-25T13:06:22.000Z","dependencies_parsed_at":"2022-11-01T20:46:37.882Z","dependency_job_id":null,"html_url":"https://github.com/mbuczko/clj-embodie","commit_stats":null,"previous_names":["mbuczko/embodie"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/mbuczko/clj-embodie","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mbuczko%2Fclj-embodie","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mbuczko%2Fclj-embodie/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mbuczko%2Fclj-embodie/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mbuczko%2Fclj-embodie/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mbuczko","download_url":"https://codeload.github.com/mbuczko/clj-embodie/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mbuczko%2Fclj-embodie/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":35522129,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-07-15T02:00:06.706Z","response_time":131,"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":["clojure","oembed","open-graph"],"created_at":"2024-12-14T01:40:48.943Z","updated_at":"2026-07-15T21:34:20.285Z","avatar_url":"https://github.com/mbuczko.png","language":"Clojure","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# oEmbed / open-graph info fetcher\n\n[![Clojars Project](https://img.shields.io/clojars/v/defunkt/embodie.svg)](https://clojars.org/defunkt/embodie)\n\nThe goal of this project is to fetch [oEmbed](http://oembed.com/), [open-graph](http://ogp.me/) and basic HTML information stored at given URL.\n\nEntire API comes down to:\n\n``` clojure\n(require '[embodie.core :as core]\n         '[embodie.oembed :as oembed])\n\n(core/fetch url)\n(core/fetch url providers \u0026 opts)\n\n(oembed/init-oembed-providers)\n(oembed/init-oembed-providers location)\n\n(oembed/with-oembed-providers providers)\n```\n\n_providers_ is by vector of defined providers, `[:oembed :open-graph :html]` by default, and can be adjusted, eg. to limit amount of data gathered or simply to fetch data from one particular provider.\n\nThe `opts` map is a way to pass additional options, used currently only by `:html` provider to limit number of returned images (3 by default):\n\n``` edn\n{:max-images 3}\n```\n\nAdditionally:\n\n`init-oembed-providers` initializes a map of defined oembed providers and defaults to json stored at http://oembed.com/providers.json if no alternative location was provided.\n\n`with-oembed-providers` is a convenience macro which (re)binds variable with oembed providers initialized before.\n\n## Fetching in action\n\nTypical use of API functions:\n\n``` clojure\n\n;; initialize oembed providers from default list\n(def providers (oembed/init-oembed-providers))\n\n;; fetch info using :oembed, :open-graph and :html providers\n(oembed/with-oembed-providers providers\n  (core/fetch \"https://www.instagram.com/p/BoRz3GpAhsg/\"))\n\n;; only :html provider and max 1 image \n(core/fetch \"https://www.instagram.com/p/BoRz3GpAhsg/\" [:html] {:max-images 1})\n\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmbuczko%2Fclj-embodie","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmbuczko%2Fclj-embodie","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmbuczko%2Fclj-embodie/lists"}