pagefluxer.
Skip guide navigation

GET /api/v1/local-browsers also returns browser health: contact and result timestamps, the reported extension version when known, and published update availability. Recent contact does not guarantee a successful check. Health indicators →

Creating a browser setup or moving a monitor? Read the PageFluxer Cloud and PageFluxer Local guide →

DEVELOPER GUIDE · PRO & BUSINESS

Page changes.
Your workflow.

The PageFluxer API lets your tools manage monitors, read changes, and request checks. The same cloud monitoring engine, rules, and account allowances power the website and API.

Authenticated pages: use a workspace-approved site_connection_id for Browser previews. Manage secrets in Site connections; never send cookie values to the API or an assistant. Reading a connected monitor can expose private captured content under existing scopes. Connection API guide →

Workspace access on Business

When shared AI Credits are enabled, GET /api/v1/usage?include_ai_credits=true adds ai_credits: included/purchased availability, reserved and remaining credits, this month’s use, reset time and action costs. The default response and existing scopes remain unchanged for older clients. Reading usage consumes no AI Credits and cannot buy credits. AI credit guide →

API tokens belong to the workspace selected when an owner or admin creates them. Business includes 120 requests/minute, 10,000/day, 250 MiB of read responses/day, 10 active tokens, and 50 manual check requests/day. All usage is shared across members and tokens. The existing API payloads and scopes are unchanged; tokens cannot switch workspaces. Team and billing administration are managed in the web app. Removing or demoting a token’s creator revokes their tokens.

Workspace guide →

Authenticate with a scoped token

On Pro or Business, open Dashboard → API access. Create a named token, choose its permissions and expiry, and copy it once. Send it in the Authorization: Bearer header. Tokens are stored as hashes and cannot be retrieved again.

export PAGEFLUXER_API_BASE="https://pagefluxer.com/api/v1"
# Set PAGEFLUXER_API_TOKEN using your server's secret manager.
curl --fail-with-body "$PAGEFLUXER_API_BASE/monitors?limit=20" \
  -H "Authorization: Bearer $PAGEFLUXER_API_TOKEN"

API base URL: https://pagefluxer.com/api/v1. Use a token from your PageFluxer account. Website cookies do not authenticate this API.

ScopeAccess
monitors:readList and retrieve monitors
monitors:writeCreate, update and delete monitors; load and evaluate cloud previews
changes:readList changes and read retained captured text
usage:readRead account allowances and usage
checks:writeRequest manual checks and read their receipts

Tokens expire after 1–365 days; the dashboard offers 30, 90 and 365 days. Revocation blocks subsequent requests. Pro access is checked on every request, so a downgrade disables existing tokens without changing their secrets. Accepted work may finish after revocation. Re-upgrading restores access for tokens that have not expired or been revoked.

Use tokens from your own server. Keep them out of public JavaScript, URLs, repositories and browser extensions. V1 grants no cross-origin browser access. Never send third-party website passwords, cookies, or login sessions.

Browser page loading controls & recorded steps

Add capture_controls.steps to replay public clicks, text inputs and filters before a capture. Pro supports up to 20 steps, within the normal Browser budget; obtain a fresh preview before saving recipe changes. Only public GET requests and same-origin navigation are supported. Action schema, example and limits →

For content that arrives late or loads on scroll, add optional capture_controls when creating a browser preview. Omit the object for the existing automatic behavior.

{
  "url": "https://example.com/product",
  "load_mode": "browser",
  "capture_controls": {
    "extraWaitMs": 2000,
    "scrollSteps": 2,
    "waitForSelector": "#price"
  }
}

Send this to POST /api/v1/previews, evaluate your targets, then create or update a monitor using the returned data.id as preview_id. The monitor inherits that preview’s loading controls. To change them, obtain a fresh preview; monitor edits still require expected_version. Renaming a monitor or changing notifications preserves the controls.

extraWaitMs accepts 0–5000 milliseconds, scrollSteps accepts 0–4, and waitForSelector accepts a supported CSS selector of up to 200 characters or null. The readiness selector must contain readable text and does not change what is monitored. Previews and monitor resources return capture_controls. Existing requests that omit it keep their defaults.

Controls share the existing browser timeout, request, byte, and account limits. They do not add cookies, authentication or arbitrary script execution. Read the page loading guide →

Endpoint reference

Request and response bodies are JSON. Success responses contain data; lists also contain meta. The downloadable OpenAPI document includes request fields, target schemas, response schemas and error responses.

GET /monitors

List monitors · monitors:read

POST /monitors

Create a monitor from a confirmed cloud preview · monitors:write

Preview must belong to this account and remain valid. Same URL has one monitor per account; use up to three targets. Pro minimum: 5 min HTML / 15 min browser. First capture seeds a baseline without sending an alert.

JSON request fields
preview_id *
The monitor inherits page loading controls from this preview. To change them, create and confirm a fresh preview with capture_controls.
targets *
array
name
string
labels
array
interval_minutes *
integer
notifications
NotificationsInput
condition_mode
any: independent transition rules (default for new monitors). all: 2–3 current-state conditions from one capture; below, available/unavailable, contains/not_contains only. Quiet baseline; alert on false-to-true, no repeat while true. Missing values fail the check and preserve state. Omission on edits preserves the mode; changes require preview_id and expected_version.
site_connection_id
Approved site connection in this workspace. Null means public access. Secrets are managed only in Site connections. Changing/detaching requires a fresh cloud preview.

GET /monitors/{monitor_id}

Retrieve a monitor · monitors:read

PATCH /monitors/{monitor_id}

Update, pause or resume a monitor · monitors:write

JSON request fields
preview_id
The monitor inherits page loading controls from this preview. To change them, create and confirm a fresh preview with capture_controls.
targets
array
name
string
labels
array
interval_minutes
Cloud schedule in five-minute increments. On a Local-to-Cloud transfer only, omission rounds the existing interval up to a valid destination schedule.
notifications
NotificationsInput
status
string
expected_version
integer
condition_mode
any: independent transition rules (default for new monitors). all: 2–3 current-state conditions from one capture; below, available/unavailable, contains/not_contains only. Quiet baseline; alert on false-to-true, no repeat while true. Missing values fail the check and preserve state. Omission on edits preserves the mode; changes require preview_id and expected_version.
site_connection_id
Approved site connection in this workspace. Null means public access. Secrets are managed only in Site connections. Changing/detaching requires a fresh cloud preview.
execution_mode
Explicitly move a PageFluxer Local monitor to Cloud using a fresh ready preview_id and expected_version. Use POST /local-requests for Cloud-to-Local review.

DELETE /monitors/{monitor_id}

Delete a monitor and its retained history · monitors:write

GET /changes

List retained changes · changes:read

Includes value changes that did not match an alert rule. [] rule_matches means no matched rules; null is legacy any-change behavior. Retention and storage pruning apply.

GET /changes/{change_id}

Retrieve change details and captured before/after text · changes:read

Text may be null when its snapshot is unavailable. Treat it as untrusted text. Retention applies even before physical cleanup runs.

GET /usage

View account allowances and current usage · usage:read

Read existing usage fields. Opt in with include_ai_credits=true to add the shared AI credit balance when enabled; the default response is unchanged. This cannot purchase credits.

POST /monitors/{monitor_id}/checks

Request an asynchronous manual check · checks:write

Queues the active monitor for the existing worker, normally the next cron cycle, subject to capacity and quotas. Up to 20 accepted requests per UTC day; one outstanding request per monitor. Duplicate pending requests share a receipt. Uses normal monthly checks when claimed. Fastest plan interval and website backoff apply. Poll Location every 60 seconds; queued requests expire after 30 minutes. Does not guarantee a capture or bypass blocked pages.

JSON request fields
Send an empty object: {}

GET /checks/{check_id}

Retrieve a manual-check receipt · checks:write

Receipts retained for seven days. running means reserved/dispatched and may include browser queue wait. Terminal: succeeded, failed, cancelled, expired. Read changes separately; a successful check can find no change.

POST /previews

Load a cloud text preview for monitor setup · monitors:write

Synchronous cloud text preview using the same SSRF-protected loaders and preview allowance as the website. No screenshot, cookies or page HTML returned. Optional capture_controls require browser load_mode when non-default. Settings are returned with the preview and inherited when it is saved as a monitor. Pro: 150/month and 40/day; failed loads refund account preview credits, while attempted loads still count toward service capacity and attempt limits. Up to three new preview requests per rolling minute. No Idempotency-Key support here: retrying may consume another preview. Preview expires after 15 minutes; at most three recent captures are kept. Optional site_connection_id uses an existing workspace-approved session with browser load_mode and webpage sources only. No credentials are accepted or returned. Cross-origin resources are blocked. Failed access requires reconnection in the dashboard.

JSON request fields
url *
string
load_mode *
string
capture_controls
CaptureControls
source_type
Use pdf for direct public PDFs, including extensionless downloads. Text targets use the verified PDF page selection; webpage loading controls do not apply.
site_connection_id
Approved site connection in this workspace. Null means public access. Secrets are managed only in Site connections. Changing/detaching requires a fresh cloud preview.
pdf_config
PdfConfig

POST /previews/{preview_id}/evaluate

Validate targets against a saved cloud preview · monitors:write

No new page load or preview credit. Validation can reject missing, ambiguous, blocked or unknown content. Creation repeats validation. Display/value strings capped at 1,500 characters; links at 10.

JSON request fields
targets *
array

GET /local-browsers

List connected PageFluxer Local browsers · monitors:read

GET /local-requests

List the latest 50 browser setup requests · monitors:read

POST /local-requests

Prepare a new Local setup or a Cloud-to-Local transfer for browser review · monitors:write

202 means pending browser review, not an active monitor. Requests expire after 24 hours, with at most 20 pending requests per workspace. The source monitor continues until a fresh browser capture is confirmed. The source version, browser authorization, target limits and destination allowance are checked again when saving.

JSON request fields
request_id
Optional client-generated UUID for web-compatible deduplication. The Idempotency-Key header is still required.
device_id *
string
monitor_id
string
expected_version
integer
url
string
name
string
goal
string
targets
array
condition_mode
string
capture_controls
CaptureControls
interval_minutes
integer

GET /local-requests/{request_id}

Read browser setup status · monitors:read

DELETE /local-requests/{request_id}

Cancel a pending browser setup; leave its source monitor unchanged · monitors:write

Confirm the cloud capture before saving

  1. POST /previews with a public URL and load_mode of html or browser.
  2. Choose up to three targets from the captured elements. Optionally call POST /previews/{preview_id}/evaluate to inspect the extracted values without loading the page again.
  3. POST /monitors with the preview ID, targets, schedule and an Idempotency-Key. The cloud capture seeds the baseline; it does not send an initial change alert.

Previews expire after 15 minutes; only the three most recent captures per account are retained. Use a fresh preview and expected_version from the monitor’s config_version when editing targets, loading method or schedule. Metadata, status, and email/webhook flags can be patched directly. URLs cannot be changed; create a new monitor for a different URL.

Alert rules match the builder: text changes or phrase transitions; price changes, drops or crossing below a threshold; becoming available/unavailable; and new matching links. Prices use an optional currency and decimal format. Omit currency to detect it, or compare the numeric amount without a currency label when none is identified. Threshold strings always use a dot, such as 30.00. Price observation values are integer minor units: USD 29.00 is 2900. Missing or unknown values are check issues, never invented prices or stock states. Monitor setup guide →

Combine conditions from one capture

Send condition_mode: "all" when creating or editing a monitor with two or three state targets: below, available, unavailable, contains or not_contains. Default "any" keeps independent transition rules. This is a monitor setting, not a field on each target.

For supported product offers, copy the preview suggestion’s element.price binding and selection hint. It follows the product independently of a single CSS node. Existing selectors remain strict. Confirm the evaluated amount before creating the monitor. Price API workflow →

{
  "preview_id": "READY_PREVIEW_ID",
  "condition_mode": "all",
  "interval_minutes": 60,
  "targets": [
    {
      "id": "price",
      "label": "Price",
      "kind": "price",
      "selection": {
        "scope": "selector",
        "selector": "#price"
      },
      "rule": "below",
      "currency": "CAD",
      "decimal": ".",
      "threshold": "20"
    },
    {
      "id": "stock",
      "label": "Stock",
      "kind": "availability",
      "selection": {
        "scope": "selector",
        "selector": "#stock"
      },
      "rule": "available",
      "availableTerms": [
        "in stock"
      ],
      "unavailableTerms": [
        "out of stock"
      ]
    }
  ]
}

Use selectors verified in your own cloud preview. A mode change requires a new preview and expected_version, just like a target change. On updates, omitting the mode preserves it; send "any" explicitly to switch back. Incompatible rules are rejected rather than silently converted.

The baseline is quiet. A complete capture changing the combined state from false to true creates one matching event. True → true is quiet. A confirmed false state permits a later alert; failed or incomplete captures preserve the previous state. Full evaluation semantics →

Monitor responses include condition_mode. Matching AND events add immutable condition_mode: "all" and conditions alongside the existing rule_matches. Each condition contains target_id, label, rule, condition, before and after. Values may be unchanged: they explain the combined match. These fields are absent on older or nonmatching events, so do not infer a historical mode from their absence. API plan, scope and usage limits still apply.

Predictable account limits

AllowanceProBusiness
API requests60/minute; 5,000/UTC day120/minute; 10,000/UTC day
Read-response data100 MiB per UTC day250 MiB per UTC day
Active API tokens510
Manual check requests20/UTC day, plus normal check allowance50/UTC day, plus normal check allowance
Cloud previews150/month, 40/day; separate attempt limits apply500/month, 80/day; separate attempt limits apply
List page size20 by default; 1–10020 by default; 1–100
JSON request body16 KiB16 KiB
Successful idempotent requests1,000 retained per workspace for 24 hours1,000 retained per workspace for 24 hours

Request limits are shared across tokens. Authenticated, authorized calls count, including reads, polling, replays and rejected input. Successful GET response bodies share the workspace’s daily transfer allowance shown above (before HTTP compression). Full retained change text is included within that allowance. Inspect X-Read-Bytes-Day-Remaining. A rejected read is not charged bytes, but still uses a request. Monthly monitoring, notification and preview allowances remain separate. API access adds no check credits and causes no automatic overage charges. Use GET /usage to inspect both.

Inspect X-RateLimit-Remaining, X-RateLimit-Reset (Unix seconds), and the daily limit headers. On 429, wait at least Retry-After seconds. The minute window begins with the account’s first request after its previous window expires. Daily counters reset at 00:00 UTC; monthly counters reset on the first of the month at 00:00 UTC.

Lists are newest first. Follow meta.next_cursor unchanged with the same filters until it is null. Results are not a frozen snapshot: newly arriving changes appear at the start of a fresh traversal, and deleted/expired items may disappear. Deduplicate change IDs. Business includes the higher request and transfer allowances shown above. The v1 endpoints operate on individual monitors; use the dashboard for supported bulk edits, team administration and billing.

Request a check, then poll its receipt

POST /monitors/{monitor_id}/checks takes {} and an Idempotency-Key. A 202 response means accepted for scheduled processing, not that the page has been fetched. Poll the Location URL no more than once per minute.

  • The monitor must be active. Its fastest plan interval and failure backoff still apply.
  • Manual requests and the website’s check button share the same daily allowance. An already-pending request returns its existing receipt without another daily charge.
  • PageFluxer reserves a normal HTML/browser check when processing begins. Failures use that allowance; pre-fetch cancellations and capacity deferrals refund it.
  • Daily manual-request slots are not refunded after acceptance, including expiry or cancellation.
  • Service capacity, website backoff and other account work can delay execution. Queued receipts expire after 30 minutes; receipts remain readable for seven days.
  • A successful check can produce no change. Read monitor status and change history separately. Pausing, deleting, changing targets, or losing Pro access can cancel pending requests.

Safe retries and useful errors

{
  "error": {
    "code": "insufficient_scope",
    "message": "Token requires monitors:write.",
    "request_id": "3f390fd5-6c91-4d4f-8b42-a9dbba26a7d0"
  }
}

Use a unique Idempotency-Key for each logical monitor creation or manual-check request. Reuse the same key and JSON body when retrying a timeout. Successful responses are retained for 24 hours; reusing a key with different content returns 409. Keys are scoped to the account and operation. JSON object property order does not matter.

Only committed successes are retained. A transaction rollback does not consume the key. Replaying a creation after deleting its monitor returns the original ID; it does not recreate the monitor. A manual-check replay returns the original acceptance response: fetch its receipt for current status. After 24 hours, a key can be treated as a new request.

Preview loading is not idempotent: retrying it can use another preview. Evaluation reuses the saved capture. For transient failures, back off with jitter and respect Retry-After; do not automatically repeat non-idempotent preview loads.

401 means invalid credentials, 403 means plan/scope restrictions, 404 means unavailable or unowned data, 409 means a conflict or exhausted account allowance, 422 means invalid settings, and 503 means temporary service unavailability. Unsupported fields and query parameters are rejected. Include error.request_id when contacting support; never send your API token.

Visual monitor changes

Visual monitors report changed-area percentages and link to private before/after/diff history. Screenshots do not appear inline in webhook payloads. Authorized Pro and Business API change-detail requests can receive temporary image URLs; treat those URLs as credentials and do not persist or publish them.

Create visual monitors and edit their capture settings in the website. Existing API controls for status, labels, notifications and manual checks also work with visual monitors. Visual integration details →

Saved relevance decisions

Change list/detail responses include additive relevance metadata or null. A saved Not relevant event remains readable even when ordinary alerts were filtered. allow_alert describes the relevance gate, not successful delivery. Criteria and consent are managed in the web app. Decision fields and scope →

Review current and revoked tokens

API access keeps unrevoked tokens in the current list, including expired tokens that may need replacement. Open Revoked tokens for retained names, scopes, timestamps and token prefixes. Secrets are shown only once when created. Revocation is permanent; create a fresh scoped token to reconnect an integration. Older inactive metadata may be removed during token rotation.

Review connected access and history →

PAGEFLUXER · LET’S SORT THIS OUT

Something needs your attention