{
  "x402Version": 2,
  "id": 36411,
  "slug": "36411",
  "resource": "https://api.s2ar.dev/x402/v1/sym/map",
  "description": "GitHub repo map — files ranked by imports with their definitions, fitted to a token budget. GET ?repo=owner/repo",
  "type": "http",
  "serviceName": "s2ar",
  "resourceType": "Blockchain Data",
  "accepts": [
    {
      "scheme": "exact",
      "network": "eip155:8453",
      "payTo": "0x2c4938626788e8e4fd803bfd1353eca64c1b5452",
      "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
      "amount": "10000",
      "amountUsd": 0.01,
      "maxTimeoutSeconds": 60
    }
  ],
  "outputSchema": {
    "properties": {
      "example": {
        "type": "object"
      },
      "type": {
        "type": "string"
      }
    },
    "required": [
      "type"
    ],
    "type": "object"
  },
  "extensions": {
    "bazaar": {
      "info": {
        "input": {
          "method": "GET",
          "queryParams": {
            "budget": "600",
            "ref": "14.1.1",
            "repo": "BurntSushi/ripgrep"
          },
          "type": "http"
        },
        "output": {
          "example": {
            "charged_usd": 0.01,
            "ok": true,
            "receipt": {
              "charter": "https://api.s2ar.dev/charter",
              "cost_usd": 0.01,
              "determinism": "replayable",
              "evidence_hash": "sha256:94abfed2…",
              "issued_at": "2026-10-10T00:00:00Z",
              "refund_rule": "failed calls are never charged",
              "what": "…",
              "witnesses": [
                "sym"
              ]
            },
            "ref": "14.1.1",
            "repo": "https://github.com/BurntSushi/ripgrep",
            "text": "crates/core/flags/mod.rs:\n  trait Flag\n  enum Category\n…",
            "tokens_est": 577
          },
          "type": "json"
        }
      },
      "schema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "input": {
            "additionalProperties": false,
            "properties": {
              "headers": {
                "additionalProperties": {
                  "type": "string"
                },
                "type": "object"
              },
              "method": {
                "enum": [
                  "GET"
                ],
                "type": "string"
              },
              "queryParams": {
                "additionalProperties": {
                  "type": "string"
                },
                "properties": {
                  "budget": {
                    "description": "approximate tokens (default 1000)",
                    "type": "string"
                  },
                  "ref": {
                    "description": "branch, tag or commit; the default branch when omitted",
                    "type": "string"
                  },
                  "repo": {
                    "description": "a public GitHub, GitLab or Codeberg repository: owner/repo, github.com/owner/repo or its https URL",
                    "type": "string"
                  }
                },
                "required": [
                  "repo"
                ],
                "type": "object"
              },
              "type": {
                "const": "http",
                "type": "string"
              }
            },
            "required": [
              "type",
              "method",
              "queryParams"
            ],
            "type": "object"
          },
          "output": {
            "properties": {
              "example": {
                "type": "object"
              },
              "type": {
                "type": "string"
              }
            },
            "required": [
              "type"
            ],
            "type": "object"
          }
        },
        "required": [
          "input"
        ],
        "type": "object"
      }
    }
  },
  "tags": [
    "code",
    "github",
    "repository",
    "map",
    "tree-sitter",
    "bazaar"
  ],
  "sourceHost": "api.s2ar.dev",
  "lastUpdated": "2026-10-10T02:43:02.613Z",
  "quality": {
    "calls30d": 1,
    "uniquePayers30d": 1,
    "lastCalledAt": "2026-10-10T02:43:02.472Z"
  },
  "metadata": {
    "serviceName": "s2ar",
    "extensions": {
      "bazaar": {
        "info": {
          "input": {
            "method": "GET",
            "queryParams": {
              "budget": "600",
              "ref": "14.1.1",
              "repo": "BurntSushi/ripgrep"
            },
            "type": "http"
          },
          "output": {
            "example": {
              "charged_usd": 0.01,
              "ok": true,
              "receipt": {
                "charter": "https://api.s2ar.dev/charter",
                "cost_usd": 0.01,
                "determinism": "replayable",
                "evidence_hash": "sha256:94abfed2…",
                "issued_at": "2026-10-10T00:00:00Z",
                "refund_rule": "failed calls are never charged",
                "what": "…",
                "witnesses": [
                  "sym"
                ]
              },
              "ref": "14.1.1",
              "repo": "https://github.com/BurntSushi/ripgrep",
              "text": "crates/core/flags/mod.rs:\n  trait Flag\n  enum Category\n…",
              "tokens_est": 577
            },
            "type": "json"
          }
        },
        "schema": {
          "$schema": "https://json-schema.org/draft/2020-12/schema",
          "properties": {
            "input": {
              "additionalProperties": false,
              "properties": {
                "headers": {
                  "additionalProperties": {
                    "type": "string"
                  },
                  "type": "object"
                },
                "method": {
                  "enum": [
                    "GET"
                  ],
                  "type": "string"
                },
                "queryParams": {
                  "additionalProperties": {
                    "type": "string"
                  },
                  "properties": {
                    "budget": {
                      "description": "approximate tokens (default 1000)",
                      "type": "string"
                    },
                    "ref": {
                      "description": "branch, tag or commit; the default branch when omitted",
                      "type": "string"
                    },
                    "repo": {
                      "description": "a public GitHub, GitLab or Codeberg repository: owner/repo, github.com/owner/repo or its https URL",
                      "type": "string"
                    }
                  },
                  "required": [
                    "repo"
                  ],
                  "type": "object"
                },
                "type": {
                  "const": "http",
                  "type": "string"
                }
              },
              "required": [
                "type",
                "method",
                "queryParams"
              ],
              "type": "object"
            },
            "output": {
              "properties": {
                "example": {
                  "type": "object"
                },
                "type": {
                  "type": "string"
                }
              },
              "required": [
                "type"
              ],
              "type": "object"
            }
          },
          "required": [
            "input"
          ],
          "type": "object"
        }
      }
    }
  },
  "liveness": {
    "reliability": null
  },
  "verified": false,
  "featured": false,
  "provider": {
    "host": "api.s2ar.dev",
    "manifest_name": "api.s2ar.dev",
    "source": "cdp-mirror",
    "source_manifest_url": "https://api.cdp.coinbase.com/platform/v2/x402/discovery/resources",
    "submitted_at": "2026-10-14T01:15:01.050Z"
  },
  "exampleResponse": {
    "example": {},
    "type": "string"
  }
}