Overview
The Search API provides full-text search across skill names and descriptions using PostgreSQL’s GIN index for fast, relevance-ranked results.Search Skills
Endpoint:GET /api/v1/search
Search for skills by name or description. Returns paginated results ranked by relevance.
Query Parameters
Search query (searches name and description)
Page number (1-indexed)
Results per page (max 50)
Request
Example - Search for “hello” skills:Response
Array of matching skills (ranked by relevance)
Current page number
Results per page
Total matching results
Search Behavior
Full-Text Search
Whenq parameter is provided:
- Searches both name and description fields
- Uses PostgreSQL
to_tsvectorandplainto_tsqueryfor natural language search - Supports multi-word queries (e.g.,
hello world) - Results ranked by
ts_rank(relevance score)
Listing Skills
Whenq parameter is empty:
- Returns all accessible skills
- Sorted by
updated_at(newest first) - Useful for browsing the registry
Visibility Filtering
Unauthenticated Requests
Only public skills are returned.Authenticated Requests
Returns:- Public skills (all)
- Private skills where user is:
- The publisher
- A member of the owning organization
- Explicitly granted access via
skill_accesstable
Pagination
Usepage and limit to navigate large result sets:
Calculating Pages
Search Examples
Find Security Skills
Find Skills by Organization
Browse All Skills
Search with Authentication
Search Performance
- GIN Index: Full-text search uses a GIN index on
search_vectorcolumn - Trigram Similarity: Fuzzy matching for typo tolerance
- Sub-100ms: Most queries complete in <100ms
Empty Results
When no skills match the query:Next Steps
Skills API
Get detailed skill information
Authentication
Access private skills with API keys