Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

REST API: Nostr: query specific kinds / types #773

Open
blackcoffeexbt opened this issue Aug 21, 2024 · 1 comment
Open

REST API: Nostr: query specific kinds / types #773

blackcoffeexbt opened this issue Aug 21, 2024 · 1 comment

Comments

@blackcoffeexbt
Copy link

Hi,

I've read through the Granary code and README but can't see a way to filter Nostr data by kind. Can you tell me if this is supported yet?

This is an example query that I am trying without any filtering applied.

https://granary.io/nostr/npub1dqepr0g4t3ahvnjtnxazvws4rkqjpxl854n29wcew8wph0fmw90qlsmmgt/?relay=relay.damus.io

@snarfed
Copy link
Owner

snarfed commented Aug 21, 2024

Hey, good question! The Python library can, you can pass Nostr.query an arbitrary NIP-01 filter - https://granary.readthedocs.io/en/latest/source/granary.html#granary.nostr.Nostr.query - but the REST API can't. That could be a good addition! I'm not sure what the parameter(s) would look like though.

@snarfed snarfed changed the title Query specific nostr kinds / types REST API: Nostr: query specific kinds / types Dec 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants