GraphQLOur GraphQL backend is publicly available. Read here how to use it.
We are thrilled to introduce our blazingly fast GraphQL API, accessible to everyone here. Designed to provide an additional experience to our website, and our website is running on it as well.
As an open API, we welcome everyone to explore and utilize the features offered by our GraphQL service. With its flexibility, you can tailor your queries to suit your specific requirements, ensuring a smooth and optimized experience.
Query packages within a channel
Packages can easily be queried from a channel using the following query. Check the docs in the explorer to see what possible information is available.
{
channel(name: "conda-forge") {
name
description
packages {
pages
page {
name
}
}
}
}
Query package variants
Get variant information about a package in a channel.
This example using the conda-forge
channel and the lemon
package.
{
package(channelName: "conda-forge", name: "lemon") {
variants(limit: 300) {
page {
filename
platform
md5
yankedReason
repoDataPatches
}
}
}
}
Explorer
You can use the interactive explorer below to test the queries from above! Please note: you are operating on the actual database of the website. If you delete a channel, it is gone! So be careful.
The GraphQL explorer can also be found under https://prefix.dev/api/graphql for a fullscreen experience.