Search api for Linen
# main
j
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
👍 2
e
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
Thanks, do you have any guidelines about rate limiting or anything?
e
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
@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
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
337 Views