v1

latestOpenAPI 3.0.02026-07-13162290.3 KB
Search

Search for libraries

Search for libraries by name with intelligent LLM-powered ranking based on your query context.

get/v2/libs/search

Query parameters

libraryNamestring required

Library name to search for (e.g., 'react', 'nextjs', 'express')

querystring required

User's original question or task - used for intelligent relevance ranking

fast'true' | 'false'

When true, skip LLM reranking and return top vector-search results directly. Trades relevance quality for lower latency.

Response

Search results ranked by relevance

searchFilterAppliedboolean required

Indicates whether the search results were filtered by the teamspace's public library access settings. When true, some libraries may be excluded from results based on the teamspace's configuration (e.g., only verified libraries, selected libraries, or private repos only).

Example response

{
  "results": [
    {
      "id": "/vercel/next.js",
      "title": "Next.js",
      "description": "The React Framework",
      "branch": "canary",
      "lastUpdateDate": "2025-01-15T10:30:00.000Z",
      "state": "finalized",
      "totalTokens": 607822,
      "totalSnippets": 3629,
      "stars": 131745,
      "trustScore": 10,
      "benchmarkScore": 95.5,
      "versions": [
        "v15.1.8",
        "v14.3.0"
      ]
    }
  ]
}
All 16 operations