Search api for Linen
#default
j

jon

10/27/2022, 10:43 PM
Hi, do you guys have an API for Linen? I'm working on a search engine for developers and think a feature to search slack/discord might be helpful
e

Emil Ajdyna

10/28/2022, 9:34 PM
Hey, we've got few endpoints that we're using internally, like
/api/search
, but they can change in the future. Please feel free to have a look at it :) PRs are highly welcome t
j

jon

10/29/2022, 1:05 AM
Thanks, do you have any guidelines about rate limiting or anything?
e

Emil Ajdyna

10/31/2022, 9:20 AM
Not yet, there are tons of things we need to do. For now, just please be reasonable, potentially cache data on your side as well
j

jon

10/31/2022, 2:04 PM
@Emil Ajdyna i'm trying to search across all linen communities, not just one at a time, including those that are synced from discord/slack, is there a way to do that? /api/search seems to be for one community a a time.
k

kam

10/31/2022, 3:22 PM
We don't have one yet but it seems doable with some small modifications to this query https://github.com/Linen-dev/linen.dev/blob/main/nextjs/pages/api/search.ts#L45 We also don't have a API key/rate limit system setup yet. Which I think I'd like to have that ready before we get the api implemented. We'll prioritize the API/Developer experience soon in the coming weeks. Can you tell me a bit more about your project? I've also created a ticket here: https://github.com/Linen-dev/linen.dev/issues/614