Mazin on Nostr: I can add our “stealth” URL to the new search API as well so our friends in ...
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.
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.
Published at
2023-04-01 05:00:20Event JSON
{
"id": "e2a3d2dace521d07b8ddaf81e586a21f46e87bc30e03c9d71b6ec33129c4301e",
"pubkey": "3d842afecd5e293f28b6627933704a3fb8ce153aa91d790ab11f6a752d44a42d",
"created_at": 1680325220,
"kind": 1,
"tags": [
[
"e",
"8db2343e9cf9f2da80a152a8f7dd32f82dbd9a18c316accaf1d9c064fbf21de5"
]
],
"content": "I can add our “stealth” URL to the new search API as well so our friends in 🇨🇳 can use it too. \n\nIf you’re in China and can’t access nostr.wine, DM me for an alternate URL. #[0]",
"sig": "22e827ba810d8ce2412abdf579f3c4ceedfcf2a6cfccd897d59baf2bfadc93e874fd5049b707e60cc60a32a5aabb079cc8b65dcad4deb70b8e7a594a6dc14c72"
}