this post was submitted on 12 Jul 2023
8 points (90.0% liked)

Lemmy

12572 readers
1 users here now

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

For discussion about the lemmy.ml instance, go to !meta@lemmy.ml.

founded 4 years ago
MODERATORS
 

I'm toying about with writing a client in Rust.

Example code online uses the API endpoint https://lemmy.ml/api/v3/post/list, and when I go to this link in a browser, it doe indeed load data. However, when I try to load it from a program, it gives me a 403 Forbidden. Does anyone know why this could be?

(code)

you are viewing a single comment's thread
view the rest of the comments
[โ€“] nmtake@lemm.ee 0 points 1 year ago (1 children)

Can you run the code against another instance, and curl https://lemmy.ml/api/v3/post/list?

[โ€“] SubArcticTundra@lemmy.ml 1 points 1 year ago

Strange, you're right, it does seem to work when I run it on lemmy.world instead