I’ve been looking all over for a Search Streaming API, so I’m not spamming the REST API. Does anyone know any third parties or if I overlooked a first party, Streaming API for the Roblox Catalog?
If we are talking specifics, I only really need a Streaming Search API with category filtering.
You can only send one request and receive one response afaik. No streaming or connections. But I’m not sure what you mean by spamming the REST API, perhaps you could elaborate.
Roblox HttpService was not designed for streaming or other heavy uses cases such as you find out on the web in general.
Not clear what your question means by “Streaming API”, as @CleverSource points out.
You may be best served by sending wider / deeper search requests through HttpService to your REST API and having it return wider / deeper search results to Roblox, which your Lua can then handle to provide some local filtering / pseudo-searching functionality on before having to send out another web request once your absolutely need more data.
As for Streaming API, there’s two main approaches:
Web client makes a web request to a server, the server leaves the connection open and continues to trickle data down through that connection. Such as when downloading a single file.
A script or some other process on the web client continually sends new requests to the web server, which continually responds (or does not) where each connection is closed as soon as possible at both ends. Repeat as needed. Such as when requesting JSON or video streaming in chunks at a time.
Web frameworks are basically structures built on top of those two approaches.
I mean I would have to spam it in intervals to check for new items that were created. With streaming API I can just connect it to an event in Node.js and do everything from there.
I apologize for not stating that this isn’t for Roblox Studio, I’m making a bot in Node.js.
mean I would have to spam it in intervals to check for new items that were created. With streaming API I can just connect it to an event in Node.js and do everything from there.
Not possible from Roblox, you’re stuck with polling. You could ofc avoid any “spamming” to Roblox by buffering any new items on your own web server, and poll that instead.
I apologize for not stating that this isn’t for Roblox Studio, I’m making a bot in Node.js.
Ah, didn’t realize that’s what you meant.
My guess is still the same, polling only, no events to subscribe to.