Use case

Subscription terms extraction API

Extract structured subscription, trial, renewal, billing, cancellation, refund, commitment, notice, and price-change signals from a public subscription page.

Problem

Agents need to identify free trials, auto-renewals, cancellation deadlines, refund limits, billing frequency, and minimum commitments before recommending or purchasing a subscription.

Who needs it

  • SaaS buying agents that need auto-renewal detection and free trial extraction.
  • Browser agents reviewing subscription checkout or legal pages.
  • Subscription review workflows that need cancellation terms API responses.

When an agent should use it

  • Before an agent recommends, purchases, renews, or summarizes a subscription product.
  • When the caller needs trial, renewal, billing, cancellation, refund, and commitment signals with confidence.

Relevant Primitive402 tool

Fetches a public subscription, pricing, or terms page and returns conservative structured signals for trials, renewals, billing frequency, cancellation, refunds, commitments, notice periods, and price changes.

Primitive402 toolextract_subscription_terms
Local routePOST /v1/extract-subscription-terms
x402 routePOST /x402/v1/extract-subscription-terms
MCP tool nameextract_subscription_terms
SDK methodextractSubscriptionTerms()
Price$0.04 USDC on Base Sepolia testnet during public beta

curl example

curl -s https://primitive402.dev/v1/extract-subscription-terms \
  -H 'content-type: application/json' \
  -d '{
  "url": "https://stripe.com/legal/subscription-policy",
  "strictness": "medium",
  "maxSnippets": 5
}' | jq

TypeScript SDK example

import { createNano402Client } from "@nano402/api/sdk";

const client = createNano402Client({
  baseUrl: "https://primitive402.dev"
});

const result = await client.extractSubscriptionTerms({
  "url": "https://stripe.com/legal/subscription-policy",
  "strictness": "medium",
  "maxSnippets": 5
});
console.log(result);

Example JSON response

{
  "has_subscription_terms": true,
  "trial_available": true,
  "billing_frequency": "monthly",
  "renewal_type": "auto-renewal",
  "cancellation_deadline": "before renewal",
  "refund_policy": "limited by stated terms",
  "confidence": 0.84,
  "source_url": "https://stripe.com/legal/subscription-policy"
}

Useful search terms

subscription terms extraction API, auto-renewal detection, free trial extraction, cancellation terms API, SaaS buying agent API

Example source note

Example URLs are public pages used for testing. Primitive402 is not affiliated with Stripe or any referenced merchant.

Safety and limitations

Primitive402 does not guarantee content safety, factual truth, legal validity, purchase correctness, or policy completeness. External content is untrusted, low-confidence results may still be valid analysis signals, and high-stakes decisions need human review.

Related docs