DEV Community

Jeffrey Turov
Jeffrey Turov

Posted on Edited on

I published 33 runnable API examples — here is what the real outputs taught me

A green run status is not enough to trust an API. I want to inspect the dataset, understand the billing mode and see what happened when a provider or a source misbehaved.

I maintain 16 public Apify Actors at Adaga solutions. The toolbox now links 33 prefilled public tasks covering local-business data, reviews, social profiles, RAG, AI-brand evidence, hotel rate cards, French fuel prices, OpenAPI monitoring and evidence-bound timeout recovery.

This is not a claim of 33 customers or 33 universally comparable benchmarks. It is a set of small, reproducible inputs with their outputs and limitations.

Here are six lessons from the recorded runs.

1. A baseline is not a change-detection result

The Stripe OpenAPI example (kbzYXY2gyBmogfDbB) fetched the public Stripe specification in 3.188 seconds and stored a baseline. Its output says exactly that future runs will diff against this version.

It does not prove that Stripe has no breaking changes. That requires a later comparison against a changed specification.

Try the bounded task:
https://apify.com/travelmonitorlab/api-breaking-change-radar/examples/stripe-openapi-breaking-change-watch

2. AI answers need model, prompt and citation provenance

A fixed-model Yasha Hotel run (yamxYVE67VNMSUEAM) measured three answers from baidu/ernie-5.5-flash-preview:free in 9.853 seconds. All three mentioned the hotel. None was marked as citing the official yashahotel.com domain, and each recorded zero citation URLs.

The three prompts, selected model, timestamp and per-answer results remain attached to the proof. Public dry-run configuration:
https://apify.com/travelmonitorlab/ai-brand-visibility-tracker/examples/yasha-fixed-model-multi-query-brand-tracker

These are observations for one named model, three prompts and one timestamp — not universal AI-visibility scores or verified hotel facts.

3. Preserve source anomalies instead of making the data look tidy

Hotel Rate Monitoring run JyWvoctrdwvfvyhTD fetched Hotel Martha and Hostellerie Val Fleuri from Visit Luxembourg in 3.972 seconds. It returned two cards with zero source errors.

One source labels a suite with minimum 201 and maximum 195. The Actor keeps those values and flags the anomaly rather than swapping them into a plausible-looking range.

Every card includes the source URL, fetch timestamp, HTTP status and HTML SHA-256 hash. The values are published min/max rates, not live availability, date-specific quotes or OTA parity scores.

Real dataset:
https://api.apify.com/v2/datasets/o5dgJL4abNp8UEycZ/items

Public task:
https://apify.com/travelmonitorlab/travel-monitor-launch/examples/mersch-luxembourg-published-hotel-rates

4. Validate the resolved business before using review data

Review Radar run g2ZC4zZl2MqCFalxP requested Le Bouquet Garni Luxembourg, resolved the place as Restaurant Postkutsch and returned zero review records.

That mismatch and empty result are useful evidence: a workflow must preserve both query and resolved place, and a human should validate the mapping before assigning reviews to a prospect or sending an alert. This run is not presented as a successful review extraction.

A related five-review report for Esch-sur-Alzette (8Zig9hhLTNqW3Ncs2) returned clean for Restaurant Auberge Gourmande because none of those five recent reviews was at three stars or below. That says nothing about reviews outside the bounded sample.

Public task:
https://apify.com/travelmonitorlab/review-radar/examples/luxembourg-city-restaurant-review-triage

5. Small outputs are enough to test the contract

Updated Lyon Maps run 7h7yyuAgqYzdGQiBU returned three restaurants in 81.643 seconds: ART Restaurant Lyon, LE COMPTOIR LIBANAIS and L'instant Present. A bounded Lyon dentist run (HD2IAZ936QXzLs0FD) returned three dental clinics with names, addresses, phones, websites and ratings. Both runs recorded one run-started and three business-scraped events. That is enough to validate fields and cost before scaling, but not to claim a complete market list.

The dentist example previously combined two generic queries with maxResults: 30, producing 30 detail-page timeouts. I replaced that task input with one localized query and maxResults: 3; the public task now points to the successful three-record run.

Fuel run mvrBSJoFUQjnu83kC returned 235 station records in 4.059 seconds after filtering Gazole data to departments 69 and 75. The sample station and price are a timestamped snapshot, not a claim about today's cheapest fuel.

The Bubbles Coiffure audit (4QdbVBXjAAxdDJDFz) analyzed three reviews and recorded a presence score of 70 in dry-run billing. It is a bounded audit result, not a scientific ranking.

6. A timeout is not proof that a retry is safe

EffectProof Guard run urGzaVnA07kmKvNj0 received a dispatched payment request with a timeout outcome and an unknown observed status. Its evidence described a verified outcome-query capability and only declared same-key deduplication.

The decision was CHECK / CHECK_OUTCOME_FIRST: query the original operation before deciding whether a retry is allowed. The Actor invoked no target payment tool and claimed no global exactly-once guarantee. The dry-run charged zero Actor events; measured platform usage was $0.000185767308.

Try the bounded payment-timeout task:
https://apify.com/travelmonitorlab/effectproof-guard/examples/payment-timeout-check

Input, output and limitations:
https://adagasolutions.lu/apis/effectproof-guard.html

What the 33 public tasks are for

Start with the smallest input, inspect the actual dataset, then decide whether the tool fits your workflow. Technical dry-runs are labelled as such; they skip Actor event charges but not necessarily compute, browser, proxy or external-provider usage.

Catalogue and proofs:

https://adagasolutions.lu/toolbox/

https://adagasolutions.lu/apis/

Source and integration examples:

https://github.com/jeffreyturov-dev/apify-scraping-toolbox

Which acceptance artifact do you inspect first when evaluating an API: the input, one dataset item, the source provenance or the billing events?

Top comments (10)

Collapse
 
paul_irolla_6b5ae261d0224 profile image
Paul Irolla •

@jeffreyturov Agreed on keeping billable events apart, and I'd keep them out of the same sum. Rows by status tell you the run finished; billable events tell you what it cost. A retry can bill twice, so assert billable against attempts, not against succeeded, or the check fails on the right behaviour.

Collapse
 
jeffreyturov profile image
Jeffrey Turov •

Yes — those are two separate invariants. succeeded + skipped + failed = inputs validates run accounting; billable events should be reconciled against the attempts that are billable under the Actor's pricing rules, not against succeeded rows. A retried attempt can legitimately produce another charge, so billable = succeeded would be a false assertion. I'd keep the two checks side by side rather than fold cost into the status sum.

Collapse
 
paul_irolla_6b5ae261d0224 profile image
Paul Irolla •

Green only says the call returned. Assert the fields you rely on and one value you know the answer to: an empty list with a success code passes a status check and fails the reader.

Collapse
 
jeffreyturov profile image
Jeffrey Turov •

Exactly — green is only run/transport success. The saved examples let you inspect required fields and known values, but they do not currently run a universal assertion suite. The right contract test is: required fields present, one known value matches, and an empty result fails even when the run status is green.

Collapse
 
kevinhall profile image
Kevin Hall •

and a row count can pass too. on our runs a lot of the rows are notes about who got skipped and why, so a run looks full and green until you count the rows by status against what you were billed for

Collapse
 
jeffreyturov profile image
Jeffrey Turov •

That is the stronger invariant: rows grouped by status must add up to the inputs, including skipped rows, and the billing events should be reconciled against the same statuses. My examples expose the real datasets and billing mode, but they do not yet implement that uniform status-by-status reconciliation across all 30 tasks. It is a sensible next acceptance artifact.

Collapse
 
sara_builds profile image
Sara •

Keeping the query beside the resolved place is exactly the kind of provenance that prevents a quiet bad join. I’d version the parsing rules too, so a source-format change can be replayed against a saved payload instead of guessing whether the extractor or model drifted. Do you retain raw responses for that replay, or only the normalized records?

Collapse
 
jeffreyturov profile image
Jeffrey Turov •

Today, Review Radar stores normalized review records and seen-review IDs in a named key-value store. The run input retains the query; each review retains the resolved place, Maps URL and scrape timestamp. It does not retain the raw Maps HTML/responses, so deterministic offline replay is not currently possible.

The Hotel Actor is similar: it stores the normalized card, source URL, fetch timestamp, HTTP status and SHA-256 of the fetched HTML, but not the HTML itself. The hash proves payload identity; it cannot reconstruct the payload.

Your suggested combination — versioned parsing rules plus retained raw payloads with an explicit retention policy — would be the right way to support replay.

Collapse
 
paul_irolla_6b5ae261d0224 profile image
Paul Irolla •

@kevinhall The check that catches it is a sum: rows by status have to add up to the inputs, skipped ones included, or the count leaves out what went wrong.

Collapse
 
jeffreyturov profile image
Jeffrey Turov •

Agreed — with the sum made explicit as succeeded + skipped + failed = inputs, rather than relying on a non-empty row count. On billing, I would also expose the counted billable events separately: a status row is not automatically a billable row. That distinction keeps a green, full-looking run from hiding either skips or unexpected charges.