/v1/search
Search the CTAN registry
Essayez-le en direct
10 appels gratuits par jour — sans inscription, sans clé API. Passe par la passerelle oanor.
Ça marche. Récupérez une clé API et utilisez-la dans votre projet.
Obtenez une clé APIExtraits de code
curl "https://api.oanor.com/ctan-api/v1/search" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/ctan-api/v1/search", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/ctan-api/v1/search");
curl_setopt($ch, CURLOPT_HTTPHEADER, ["x-oanor-key: oanor_test_..."]);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$out = curl_exec($ch);
import requests
requests.get(
"https://api.oanor.com/ctan-api/v1/search",
headers={"x-oanor-key": "oanor_test_..."}
)
Exemple de réponse
Une réponse réelle de ce endpoint, capturée lors du dernier contrôle de santé.
{
"data": {
"count": 20,
"query": "graphics",
"total": 74,
"results": [
{
"key": "graphics",
"name": "graphics",
"caption": "Standard LaTeX graphics",
"ctan_url": "https://ctan.org/pkg/graphics"
},
{
"key": "graphics-cfg",
"name": "graphics-cfg",
"caption": "Sample configuration files for LaTeX color and graphics",
"ctan_url": "https://ctan.org/pkg/graphics-cfg"
},
{
"key": "graphics-def",
"name": "graphics-def",
"caption": "Colour and graphics option files",
"ctan_url": "https://ctan.org/pkg/graphics-def"
},
{
"key": "graphics-pln",
"name": "graphics-pln",
"caption": "LaTeX-style graphics for Plain TeX users",
"ctan_url": "https://ctan.org/pkg/graphics-pln"
},
{
"key": "graphicscache",
"name": "graphicscache",
"caption": "Cache includegraphics calls",
"ctan_url": "https://ctan.org/pkg/graphicscache"
},
{
"key": "combinedgraphics",
"name": "combinedgraphics",
"caption": "Include graphic (EPS or PDF)/LaTeX combinations",
"ctan_url": "https://ctan.org/pkg/combinedgraphics"
},
{
"key": "latex-graphics",
"name": "latex-graphics",
"caption": "The LaTeX standard graphics bundle",
"ctan_url": "https://ctan.org/pkg/latex-graphics"
},
{
"key": "latex-graphics-dev",
"name": "latex-graphics-dev",
"caption": "Development pre-release of the LaTeX graphics bundle",
"ctan_url": "https://ctan.org/pkg/latex-graphics-dev"
},
{
"key": "mpgraphics",
"name": "mpgraphics",
"caption": "Process and display MetaPost figures inline",
"ctan_url": "https://ctan.org/pkg/mpgraphics"
},
{
"key": "reflectgraphics",
"name": "reflectgraphics",
"caption": "Techniques for reflecting graphics",
"ctan_url": "https://ctan.org/pkg/reflectgraphics"
},
{
"key": "adjustbox",
"name": "adjustbox",
"caption": "Graphics package-alike macros for “general” boxes",
"ctan_url": "https://ctan.org/pkg/adjustbox"
},
{
"key": "animate",
"name": "animate",
"caption": "Create PDF and SVG animations from graphics files and inline graphics",
"ct
…