{
  "x402Version": 2,
  "id": 37802,
  "slug": "37802",
  "resource": "https://x402-extract-wg5z.onrender.com/extract-fields",
  "description": "Extract structured fields (email, phone, dates, amounts, invoice numbers, …) from any text via deterministic regex — no LLM, no API key. $0.02 USDC per call on Base.",
  "type": "http",
  "serviceName": "x402-fields",
  "resourceType": "AI Inference",
  "accepts": [
    {
      "scheme": "exact",
      "network": "eip155:8453",
      "payTo": "0xea6c6d0361a758e51004fc5b0c31a3c6b2408858",
      "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
      "amount": "20000",
      "amountUsd": 0.02,
      "maxTimeoutSeconds": 300
    }
  ],
  "outputSchema": {
    "properties": {
      "example": {
        "properties": {
          "confidence": {
            "additionalProperties": {
              "type": "number"
            },
            "description": "Field name -> 0..1 confidence score (0 for misses)",
            "type": "object"
          },
          "extracted": {
            "additionalProperties": {
              "type": [
                "string",
                "null"
              ]
            },
            "description": "Field name -> extracted value, or null when not found",
            "type": "object"
          },
          "found": {
            "type": "integer"
          },
          "missing": {
            "description": "Requested fields that were not found, by name",
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "total": {
            "type": "integer"
          }
        },
        "required": [
          "extracted",
          "found",
          "total",
          "missing",
          "confidence"
        ],
        "type": "object"
      },
      "type": {
        "type": "string"
      }
    },
    "required": [
      "type"
    ],
    "type": "object"
  },
  "extensions": {
    "bazaar": {
      "info": {
        "input": {
          "body": {
            "fields": [
              "invoice_no",
              "company",
              "amount",
              "email",
              "phone"
            ],
            "text": "Invoice #INV-2026-0042 from Acme Trading Ltd. Total due: $1,234.50. Contact jane@acme.test."
          },
          "bodyType": "json",
          "method": "POST",
          "type": "http"
        },
        "output": {
          "example": {
            "confidence": {
              "amount": 0.85,
              "company": 0.65,
              "email": 0.95,
              "invoice_no": 0.8,
              "phone": 0
            },
            "extracted": {
              "amount": "1234.50",
              "company": "Acme Trading Ltd",
              "email": "jane@acme.test",
              "invoice_no": "INV-2026-0042",
              "phone": null
            },
            "found": 4,
            "missing": [
              "phone"
            ],
            "total": 5
          },
          "type": "json"
        }
      },
      "schema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "input": {
            "additionalProperties": false,
            "properties": {
              "body": {
                "properties": {
                  "fields": {
                    "description": "1–15 field names. Supported: email, phone, url, date, amount, currency, invoice_no, order_id, name, company, address, zip, country, percentage, quantity",
                    "items": {
                      "enum": [
                        "email",
                        "phone",
                        "url",
                        "date",
                        "amount",
                        "currency",
                        "invoice_no",
                        "order_id",
                        "name",
                        "company",
                        "address",
                        "zip",
                        "country",
                        "percentage",
                        "quantity"
                      ],
                      "type": "string"
                    },
                    "type": "array"
                  },
                  "text": {
                    "description": "Text to extract fields from (10–10,000 chars)",
                    "type": "string"
                  }
                },
                "required": [
                  "text",
                  "fields"
                ],
                "type": "object"
              },
              "bodyType": {
                "enum": [
                  "json",
                  "form-data",
                  "text"
                ],
                "type": "string"
              },
              "method": {
                "enum": [
                  "POST"
                ],
                "type": "string"
              },
              "type": {
                "const": "http",
                "type": "string"
              }
            },
            "required": [
              "type",
              "method",
              "bodyType",
              "body"
            ],
            "type": "object"
          },
          "output": {
            "properties": {
              "example": {
                "properties": {
                  "confidence": {
                    "additionalProperties": {
                      "type": "number"
                    },
                    "description": "Field name -> 0..1 confidence score (0 for misses)",
                    "type": "object"
                  },
                  "extracted": {
                    "additionalProperties": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "description": "Field name -> extracted value, or null when not found",
                    "type": "object"
                  },
                  "found": {
                    "type": "integer"
                  },
                  "missing": {
                    "description": "Requested fields that were not found, by name",
                    "items": {
                      "type": "string"
                    },
                    "type": "array"
                  },
                  "total": {
                    "type": "integer"
                  }
                },
                "required": [
                  "extracted",
                  "found",
                  "total",
                  "missing",
                  "confidence"
                ],
                "type": "object"
              },
              "type": {
                "type": "string"
              }
            },
            "required": [
              "type"
            ],
            "type": "object"
          }
        },
        "required": [
          "input"
        ],
        "type": "object"
      }
    }
  },
  "tags": [
    "extraction",
    "regex",
    "structured-data",
    "text-parsing",
    "ai-agents",
    "bazaar"
  ],
  "sourceHost": "x402-extract-wg5z.onrender.com",
  "lastUpdated": "2026-10-08T06:26:04.792Z",
  "quality": {
    "calls30d": 2,
    "uniquePayers30d": 2,
    "lastCalledAt": "2026-10-08T06:26:04.546Z"
  },
  "metadata": {
    "serviceName": "x402-fields",
    "extensions": {
      "bazaar": {
        "info": {
          "input": {
            "body": {
              "fields": [
                "invoice_no",
                "company",
                "amount",
                "email",
                "phone"
              ],
              "text": "Invoice #INV-2026-0042 from Acme Trading Ltd. Total due: $1,234.50. Contact jane@acme.test."
            },
            "bodyType": "json",
            "method": "POST",
            "type": "http"
          },
          "output": {
            "example": {
              "confidence": {
                "amount": 0.85,
                "company": 0.65,
                "email": 0.95,
                "invoice_no": 0.8,
                "phone": 0
              },
              "extracted": {
                "amount": "1234.50",
                "company": "Acme Trading Ltd",
                "email": "jane@acme.test",
                "invoice_no": "INV-2026-0042",
                "phone": null
              },
              "found": 4,
              "missing": [
                "phone"
              ],
              "total": 5
            },
            "type": "json"
          }
        },
        "schema": {
          "$schema": "https://json-schema.org/draft/2020-12/schema",
          "properties": {
            "input": {
              "additionalProperties": false,
              "properties": {
                "body": {
                  "properties": {
                    "fields": {
                      "description": "1–15 field names. Supported: email, phone, url, date, amount, currency, invoice_no, order_id, name, company, address, zip, country, percentage, quantity",
                      "items": {
                        "enum": [
                          "email",
                          "phone",
                          "url",
                          "date",
                          "amount",
                          "currency",
                          "invoice_no",
                          "order_id",
                          "name",
                          "company",
                          "address",
                          "zip",
                          "country",
                          "percentage",
                          "quantity"
                        ],
                        "type": "string"
                      },
                      "type": "array"
                    },
                    "text": {
                      "description": "Text to extract fields from (10–10,000 chars)",
                      "type": "string"
                    }
                  },
                  "required": [
                    "text",
                    "fields"
                  ],
                  "type": "object"
                },
                "bodyType": {
                  "enum": [
                    "json",
                    "form-data",
                    "text"
                  ],
                  "type": "string"
                },
                "method": {
                  "enum": [
                    "POST"
                  ],
                  "type": "string"
                },
                "type": {
                  "const": "http",
                  "type": "string"
                }
              },
              "required": [
                "type",
                "method",
                "bodyType",
                "body"
              ],
              "type": "object"
            },
            "output": {
              "properties": {
                "example": {
                  "properties": {
                    "confidence": {
                      "additionalProperties": {
                        "type": "number"
                      },
                      "description": "Field name -> 0..1 confidence score (0 for misses)",
                      "type": "object"
                    },
                    "extracted": {
                      "additionalProperties": {
                        "type": [
                          "string",
                          "null"
                        ]
                      },
                      "description": "Field name -> extracted value, or null when not found",
                      "type": "object"
                    },
                    "found": {
                      "type": "integer"
                    },
                    "missing": {
                      "description": "Requested fields that were not found, by name",
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    },
                    "total": {
                      "type": "integer"
                    }
                  },
                  "required": [
                    "extracted",
                    "found",
                    "total",
                    "missing",
                    "confidence"
                  ],
                  "type": "object"
                },
                "type": {
                  "type": "string"
                }
              },
              "required": [
                "type"
              ],
              "type": "object"
            }
          },
          "required": [
            "input"
          ],
          "type": "object"
        }
      }
    }
  },
  "liveness": {
    "reliability": null
  },
  "verified": false,
  "featured": false,
  "provider": {
    "host": "x402-extract-wg5z.onrender.com",
    "manifest_name": "x402-extract-wg5z.onrender.com",
    "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": {
      "confidence": {},
      "extracted": {},
      "found": 0,
      "missing": [
        "string"
      ],
      "total": 0
    },
    "type": "string"
  }
}