Purlock
API Facts and prices API

Change a price from your code. Every page follows.

The values behind Live Facts, through an API. Update one, and every page using its tag shows the new value within seconds, with no deploy.

One API call per request. Showing a value on your site uses no calls: Live Facts tags need no key.

What you get

What it does for you

  • Read every fact

    Prices, phone numbers, trial lengths and refund windows, all from one place.

  • Change one in one call

    Send a new value, and it reaches every page. We also tell you how many pages still type the old value by hand.

  • Stripe prices

    Link a fact to a Stripe lookup key, and Stripe decides what it shows.

  • Fast, and easy on Stripe

    Prices come from our records, so they're quick and don't use your Stripe rate limit.

  • Lowest price in 30 days

    Once we have 30 days of history for a price, it's included, for places that require you to show it.

  • Scoped keys

    A key can read, or read and write. Changing a fact needs a key that can write, on a verified site.

How it works

What it looks like in your code

Change a fact

PUT /v1/facts/pro-price

{
  "value": "$29/month"
}

Read a Stripe price

GET /v1/prices/pro_monthly

{
  "lookupKey": "pro_monthly",
  "amount": 2900,
  "currency": "usd",
  "interval": "month",
  "formatted": "$29/month",
  "lowest30Days": 1900,
  "lowest30DaysFormatted": "$19/month"
}

Good to know

What it can't do

  • A key for facts has to be tied to one site, chosen when you create it.
  • Free accounts can have 2 live prices.
  • With a pasted Stripe key, prices update daily, after each sale and when you ask, rather than instantly.

FAQ

Questions, answered

Do I need this to show live prices?
No. A tag on your page and our script do that with no key. This is for changing or reading values from your own code.
Can I change a price this way if it's linked to Stripe?
Stripe decides what a linked fact shows, so change the price in Stripe.