lemmy_get_site_metadata: Fetch metadata for any given site.

View source: R/http-methods.R

lemmy_get_site_metadataR Documentation

Fetch metadata for any given site.

Description

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


remmy documentation built on July 26, 2023, 5:37 p.m.