DEVELOPER QUICKSTART / QUOTE INTELLIGENCE

From quotes to decisions.

Start with two fictional offers and one purchase request. The expected local result is EUR 130 in potential savings before VAT, with offer 2 selected. A successful transport response is not a purchasing decision.

1. REST API: start once, then retrieve

Keep your Apify API token in a server-side credential store, never in a browser or repository. The following examples are for a shell with APIFY_TOKEN already configured. Starting a run may incur USD 0.05 for an eligible comparison; post-run storage access may incur additional Apify fees. Do not blindly retry a POST if its outcome is unknown.

curl -X POST 'https://api.apify.com/v2/actors/hushed_saddlebag~metraskeld-quote-intelligence/runs?maxTotalChargeUsd=0.05' \
  -H "Authorization: Bearer $APIFY_TOKEN" \
  -H 'Content-Type: application/json' \
  --data-binary @quote-demo.json

Persist data.id (the run ID) before continuing. Poll the run until a terminal status. If the POST times out, reconcile your account's run history rather than creating another run.

curl -H "Authorization: Bearer $APIFY_TOKEN" \
  'https://api.apify.com/v2/actor-runs/RUN_ID'

If the run succeeds, use its defaultDatasetId and defaultKeyValueStoreId to retrieve the result and separate billing receipt.

curl -H "Authorization: Bearer $APIFY_TOKEN" \
  'https://api.apify.com/v2/datasets/DATASET_ID/items'
curl -H "Authorization: Bearer $APIFY_TOKEN" \
  'https://api.apify.com/v2/key-value-stores/STORE_ID/records/METRASKELD_BILLING_RECEIPT'

2. MCP: let your agent use the tool

Configure the official Apify MCP integration in a compatible client with your own account. Discover the specific Actor at:

https://mcp.apify.com/?tools=hushed_saddlebag/metraskeld-quote-intelligence

Use the discovered input schema and explicit spending approval. Start the Actor once, keep its run ID, retrieve dataset items and the receipt with the provided storage tools. Verify the client exposes the spending cap before allowing a paid run. Do not grant permission for automatic purchases. Official MCP documentation.

3. n8n: a simple procurement workflow

Use the official Apify integration or authenticated HTTP Request nodes. A recommended sequence is:

Manual trigger / verified structured quote JSON

→ Start Actor once, with spending cap

→ Save run ID and poll status

→ Get dataset items and billing receipt

→ IF all_offers_comparable and audit PASSED

→ Send result for human approval; otherwise request clarification.

Disable automatic retries on the start step. For missing output or ambiguous receipt, stop and reconcile. This is an integration recipe, not a tested native Metraskeld node.

4. Read the business result

CONCLUANT: a lowest comparable offer. EX_AEQUO_PRIX: equal lowest prices; no selected winner. PARTIEL: incomplete comparison, inspect error_codes and recovery_plan. ERREUR_ENTREE: fix the input. Inspect independent_audit, selected_offer_index (1-based), all_offers_comparable and can_auto_purchase.

SDK_RECORDED is not settlement confirmation. Check your Apify usage. An empty dataset or missing receipt requires investigation even if the run status is SUCCEEDED. Never purchase automatically.

5. Scope and privacy

2–5 structured quotes, one currency, recoverable VAT. No PDF ingestion, supplier identity verification or automatic purchasing. Keep sensitive data out of your initial tests. Review Apify's access and sharing settings before using real quotes.