Skip to contents

HTTP.GET /post/site_metadata

Usage

lemmy_get_site_metadata(
  url,
  .lemmy_instance = getOption("lemmy_instance", "https://lemmy.world")
)

Arguments

url

A character value.

.lemmy_instance

Default: "https://lemmy.world". Change the default instance by setting the lemmy_instance options().

Value

A list of length 1:

<list>
`-metadata: <list>
  |-title: (Optional) A character value
  |-description: (Optional) A character value
  |-image: (Optional) A character value
  `-embed_video_url: (Optional) A character value

Examples

site_metadata <- lemmy_get_site_metadata("https://feddit.de")

site_metadata$metadata$title
#> [1] "Feddit - Deutschsprachige Lemmy Community"