Aller au contenu
GET /v1/search

Search projects

Essayez-le en direct

10 appels gratuits par jour — sans inscription, sans clé API. Passe par la passerelle oanor.

En-têtes personnalisés (facultatif)
api.oanor.com/modrinth-api

Ça marche. Récupérez une clé API et utilisez-la dans votre projet.

Obtenez une clé API

Extraits de code

curl "https://api.oanor.com/modrinth-api/v1/search" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/modrinth-api/v1/search", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/modrinth-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/modrinth-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": {
        "sort": "downloads",
        "type": "shader",
        "count": 10,
        "query": "shaders",
        "total": 156,
        "source": "Modrinth",
        "results": [
            {
                "slug": "complementary-reimagined",
                "title": "Complementary Shaders - Reimagined",
                "author": "EminGT",
                "downloads": 51705265,
                "followers": 9704,
                "categories": [
                    "atmosphere",
                    "bloom",
                    "cartoon",
                    "colored-lighting",
                    "fantasy",
                    "foliage",
                    "high",
                    "iris",
                    "low",
                    "medium",
                    "optifine",
                    "pbr",
                    "potato",
                    "reflections",
                    "shadows",
                    "vanilla-like"
                ],
                "project_type": "shader",
                "latest_game_version": "yCCduG44"
            },
            {
                "slug": "complementary-unbound",
                "title": "Complementary Shaders - Unbound",
                "author": "EminGT",
                "downloads": 33224978,
                "followers": 5205,
                "categories": [
                    "atmosphere",
                    "bloom",
                    "cartoon",
                    "colored-lighting",
                    "fantasy",
                    "foliage",
                    "high",
                    "iris",
                    "low",
                    "medium",
                    "optifine",
                    "pbr",
                    "potato",
                    "reflections",
                    "semi-realistic",
                    "shadows"
                ],
                "project_type": "shader",
                "latest_game_version": "VMHXIk50"
            },
            {
                "slug": "bsl-shaders",
                "title": "BSL Shaders",
                "author": "CaptTatsu",
                "downloads": 23488683,
                "followers": 5633,
                "categories": [
                    "atmosphere",
                    "bloom",
                    "cartoon",
                    "colored-lighting",
                    "foliage",
                    "iris",
                    "low",
                    "optifine",
                    "pbr",
                    "reflections",
                    "shadows"
                ],
                "project_type": "shader",
                "latest_game_version": "hIibTfxn"
            },
            {
                "slug": "photon-shader",
                "title": "Photon Shaders",
                "author": "sixthsurge",
                "downloads": 19628723,
                "followers": 3601,
                "categories": [
                    "atmosphere",
                    "bloom",
    
…