this post was submitted on 12 Mar 2024
10 points (85.7% liked)

Lemmy

11867 readers
4 users here now

Everything about Lemmy; bugs, gripes, praises, and advocacy.

For discussion about the lemmy.ml instance, go to [email protected].

founded 4 years ago
MODERATORS
 

Is there a setting page on the lemmy instance where I can download all my data?

top 3 comments
sorted by: hot top controversial new old
[–] [email protected] 7 points 6 months ago

You can download your account settings as a JSON file. That includes the lists of followed communities, saved posts and comments, and blocked instances, communities and users. I'm not aware of any other way to download additional data.

[–] [email protected] 6 points 6 months ago

No settings page (as far as I'm aware), but you can use the API to get everything (posts, comments, etc):

step 1: get login token -

curl --request POST \
     --url https://lemmy.ml/api/v3/user/login \
     --header 'accept: application/json' \
     --header 'content-type: application/json' \
     --data '
{
  "username_or_email": "2br02b",
  "password": "YOUR-PASSWORD"
}
'

step 2: use login token (big long string starting with 'ey') to get data -

curl --request GET \
     --url 'https://lemmy.ml/api/v3/user?username=2br02b&page=1' \
     --header 'accept: application/json' \
     --header 'authorization: Bearer YOUR-JWT'

Increment page number until you have everything. source: https://lemmy.readme.io/reference/get_user

[–] [email protected] 4 points 6 months ago

Is this a GDPR thing?