/v1/search
Search the CTAN registry
Provalo dal vivo
10 chiamate gratuite al giorno — senza registrazione, senza chiave API. Passa dal gateway oanor.
Funziona. Prendi una chiave API e usala nel tuo progetto.
Ottieni una chiave APIFrammenti di codice
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_..."}
)
Risposta di esempio
Una risposta reale di questo endpoint, acquisita dall'ultimo health check.
{
"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
…