Skip to content

get-library-docs "topic" argument input patterns and best practices #584

@jhu960213

Description

@jhu960213

Hello,

I've played around with:

curl -X GET "https://context7.com/api/v1/vercel/next.js?type=txt&topic=ssr&tokens=5000"
-H "Authorization: Bearer CONTEXT7_API_KEY"

to grab docs related to a certain repo with a certain topic of focus. In the examples I've seen, the topic arg often is fed with one-word-like patterns such as "installation", "implementation", "a word about a specific topic within the repo".

I wonder what the recommended best practices are for this "topic" argument?

Can we append topics to each other to create an extended term, such as topic=install-topic1-topic2-topic3-topicN when we want to retrieve code/documentation regarding a specific repository?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions