Our new Search API is now live at https://api.nostr.wine/search. The documentation is available here: https://docs.nostr.wine

The following parameters are supported:

- query (search string, * supported in front and back of string)

- kind (event kind)

- pubkey (nostr pubkey in hex)

- since (unix timestamp)

- until (unix timestamp)

- sort (“time” or “relevance”, default: relevance)

- limit (number of results per page)

- page (pagination)

Example query: https://api.nostr.wine/search?query=*wine*&kind=1

Current rate limit: 1 request/second. We’ll see how that goes. Try it out, and let me know if you have any issues! I have not thoroughly tested this yet.

Reply to this note

Please Login to reply.

Discussion

おおお。検索できる内容が増えてる

#[0]

Our new search does have some current limitations.

- Search event database is currently only 5 days old

- We are dropping most events kinds that are not relevant to search (with a few exceptions)

- Spam filtering is done with basic rules, no modeling yet

#[0]

Broke this for the last ~15 minutes. Should be all setup now and I’ll stop messing with it. Anyone tried it? Any issues? #[0]

Thank you to #[0]​ for finding a silly bug in our Search API where kind=0 was not filtering correctly. It is now fixed!

#[1]

One last before bed update from #[0]​. Multiple kind values are now accepted in search query as a comma separated list. Example: https://api.nostr.wine/search?kind=0,3&pubkey=3d842afecd5e293f28b6627933704a3fb8ce153aa91d790ab11f6a752d44a42d #[1]

The requested URL was not found on the server. If you entered the URL manually please check your spelling and try again.

Hmm, which URL? They are all working for me.

Amethyst rendering issue with a dot after a URL. #[5]

I can add our “stealth” URL to the new search API as well so our friends in 🇨🇳 can use it too.

If you’re in China and can’t access nostr.wine, DM me for an alternate URL. #[0]

Tor onion service?

Right now it’s simply another URL as I was told they cannot reach tor from China without a VPN.

Have you looked into for bridges which is what BIP 324 was inspired from? Making notr requests look like https for example.

Also, have you tried posting this in Chinese XD

I have a post one of our users made that I’ve been spamming around as well! I have not looked into any other options besides just a different URL that isn’t “as” public.

One of my other web projects was blocked in China on its original URL so I simply made a separate link exclusively for Chinese users and it has remained accessible for 5+ years 🤷‍♂️

Did anyone else try it?

#[0]