{
  "x402Version": 2,
  "id": 52656,
  "slug": "52656",
  "resource": "https://qr-api-production-1836.up.railway.app/decode",
  "description": "Decode QR/barcodes from a base64-encoded image; returns each detected code's type, decoded text, bounding rect, and polygon.",
  "type": "http",
  "resourceType": "Market Data",
  "accepts": [
    {
      "scheme": "exact",
      "network": "eip155:8453",
      "payTo": "0xFFc458dB291b4ABcE020fE3de4f91F2770E537b1",
      "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
      "amount": "1000",
      "amountUsd": 0.001,
      "maxTimeoutSeconds": 300
    }
  ],
  "outputSchema": {
    "properties": {
      "example": {
        "properties": {
          "count": {
            "description": "Number of QR/barcodes detected in the image.",
            "type": "integer"
          },
          "image_size": {
            "description": "Decoded image dimensions in pixels.",
            "type": "object"
          },
          "results": {
            "description": "One record per detected code: type, decoded data, bounding rect, and polygon points.",
            "type": "array"
          }
        },
        "type": "object"
      },
      "type": {
        "type": "string"
      }
    },
    "required": [
      "type"
    ],
    "type": "object"
  },
  "extensions": {
    "bazaar": {
      "info": {
        "input": {
          "body": {
            "image_base64": "iVBORw0KGgoAAAANSUhEUgAAASIAAAEiCAYAAABdvt+2AAAABmJLR0QA/wD/AP+gvaeTAAAF..."
          },
          "bodyType": "json",
          "method": "POST",
          "type": "http"
        },
        "output": {
          "example": {
            "count": 1,
            "image_size": {
              "height": 330,
              "width": 330
            },
            "results": [
              {
                "data": "https://payapi.market",
                "polygon": [
                  {
                    "x": 40,
                    "y": 40
                  },
                  {
                    "x": 40,
                    "y": 290
                  },
                  {
                    "x": 290,
                    "y": 290
                  },
                  {
                    "x": 290,
                    "y": 40
                  }
                ],
                "rect": {
                  "height": 250,
                  "left": 40,
                  "top": 40,
                  "width": 250
                },
                "type": "QRCODE"
              }
            ]
          },
          "type": "json"
        }
      },
      "schema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "input": {
            "additionalProperties": false,
            "properties": {
              "body": {
                "properties": {
                  "image_base64": {
                    "description": "Base64-encoded image (PNG/JPEG/GIF) containing one or more QR codes. A data: URI prefix is allowed.",
                    "type": "string"
                  }
                },
                "required": [
                  "image_base64"
                ],
                "type": "object"
              },
              "bodyType": {
                "enum": [
                  "json",
                  "form-data",
                  "text"
                ],
                "type": "string"
              },
              "method": {
                "enum": [
                  "POST",
                  "PUT",
                  "PATCH"
                ],
                "type": "string"
              },
              "type": {
                "const": "http",
                "type": "string"
              }
            },
            "required": [
              "type",
              "method",
              "bodyType",
              "body"
            ],
            "type": "object"
          },
          "output": {
            "properties": {
              "example": {
                "properties": {
                  "count": {
                    "description": "Number of QR/barcodes detected in the image.",
                    "type": "integer"
                  },
                  "image_size": {
                    "description": "Decoded image dimensions in pixels.",
                    "type": "object"
                  },
                  "results": {
                    "description": "One record per detected code: type, decoded data, bounding rect, and polygon points.",
                    "type": "array"
                  }
                },
                "type": "object"
              },
              "type": {
                "type": "string"
              }
            },
            "required": [
              "type"
            ],
            "type": "object"
          }
        },
        "required": [
          "input"
        ],
        "type": "object"
      }
    }
  },
  "tags": [
    "bazaar"
  ],
  "sourceHost": "qr-api-production-1836.up.railway.app",
  "lastUpdated": "2026-10-08T07:52:00.839Z",
  "quality": {
    "calls30d": 4,
    "uniquePayers30d": 4,
    "lastCalledAt": "2026-10-08T07:52:00.606Z"
  },
  "metadata": {
    "extensions": {
      "bazaar": {
        "info": {
          "input": {
            "body": {
              "image_base64": "iVBORw0KGgoAAAANSUhEUgAAASIAAAEiCAYAAABdvt+2AAAABmJLR0QA/wD/AP+gvaeTAAAF..."
            },
            "bodyType": "json",
            "method": "POST",
            "type": "http"
          },
          "output": {
            "example": {
              "count": 1,
              "image_size": {
                "height": 330,
                "width": 330
              },
              "results": [
                {
                  "data": "https://payapi.market",
                  "polygon": [
                    {
                      "x": 40,
                      "y": 40
                    },
                    {
                      "x": 40,
                      "y": 290
                    },
                    {
                      "x": 290,
                      "y": 290
                    },
                    {
                      "x": 290,
                      "y": 40
                    }
                  ],
                  "rect": {
                    "height": 250,
                    "left": 40,
                    "top": 40,
                    "width": 250
                  },
                  "type": "QRCODE"
                }
              ]
            },
            "type": "json"
          }
        },
        "schema": {
          "$schema": "https://json-schema.org/draft/2020-12/schema",
          "properties": {
            "input": {
              "additionalProperties": false,
              "properties": {
                "body": {
                  "properties": {
                    "image_base64": {
                      "description": "Base64-encoded image (PNG/JPEG/GIF) containing one or more QR codes. A data: URI prefix is allowed.",
                      "type": "string"
                    }
                  },
                  "required": [
                    "image_base64"
                  ],
                  "type": "object"
                },
                "bodyType": {
                  "enum": [
                    "json",
                    "form-data",
                    "text"
                  ],
                  "type": "string"
                },
                "method": {
                  "enum": [
                    "POST",
                    "PUT",
                    "PATCH"
                  ],
                  "type": "string"
                },
                "type": {
                  "const": "http",
                  "type": "string"
                }
              },
              "required": [
                "type",
                "method",
                "bodyType",
                "body"
              ],
              "type": "object"
            },
            "output": {
              "properties": {
                "example": {
                  "properties": {
                    "count": {
                      "description": "Number of QR/barcodes detected in the image.",
                      "type": "integer"
                    },
                    "image_size": {
                      "description": "Decoded image dimensions in pixels.",
                      "type": "object"
                    },
                    "results": {
                      "description": "One record per detected code: type, decoded data, bounding rect, and polygon points.",
                      "type": "array"
                    }
                  },
                  "type": "object"
                },
                "type": {
                  "type": "string"
                }
              },
              "required": [
                "type"
              ],
              "type": "object"
            }
          },
          "required": [
            "input"
          ],
          "type": "object"
        }
      }
    }
  },
  "liveness": {
    "reliability": null
  },
  "verified": false,
  "featured": false,
  "provider": {
    "host": "qr-api-production-1836.up.railway.app",
    "manifest_name": "qr-api-production-1836.up.railway.app",
    "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": {
    "count": 1,
    "image_size": {
      "height": 330,
      "width": 330
    },
    "results": [
      {
        "data": "https://payapi.market",
        "polygon": [
          {
            "x": 40,
            "y": 40
          },
          {
            "x": 40,
            "y": 290
          },
          {
            "x": 290,
            "y": 290
          },
          {
            "x": 290,
            "y": 40
          }
        ],
        "rect": {
          "height": 250,
          "left": 40,
          "top": 40,
          "width": 250
        },
        "type": "QRCODE"
      }
    ]
  }
}