ComparisonUpdated 8 min read
Firecrawl's calls for phone apps: which carry over and which don't
Lusor's app-data API is modeled on Firecrawl's and points its calls at phone apps. Here is which calls work on a phone today, which names and fields stay the same, and where a phone forces a different choice.
By Josiah Richards
TL;DR
- Lusor's app-data API is modeled on Firecrawl's: the same call names and result shapes where they fit, with changes where phones need them. Each change is written down with its reason.
- Scrape, map, agent and interact work on phone apps today. Crawl and search are not available yet.
- Request and result names carry over: url, formats, json with a schema, metadata.scrapeId, links with url and title, prompt, schema, data, expiresAt, maxCredits, and the status words processing, completed and failed.
- An app has no URLs or HTML, so a screen is an app:// address and the Markdown is written from the screen's rows. A screen takes seconds to read, so scrape is a task you read back by id, and there is no cache.
- A phone runs one task at a time, so the queue is per phone. Map reads the screens runs have recorded, plus a base map Lusor ships, so it reports coverage and checkedAt and never claims to be complete.
Firecrawl's API turns web pages into data with calls named scrape, map, crawl, search, agent and interact. Lusor's app-data API reads phone apps, and it is modeled on Firecrawl's on purpose, so a developer who knows Firecrawl already knows what most fields in a Lusor request do.
A phone app is not a website, though. It has no URLs, no HTML and no sitemap, and a phone runs one task at a time. This post goes call by call through what works on a phone today, what keeps Firecrawl's names, and where a phone forces a different choice.
Why model Lusor's API on Firecrawl's?
Because the jobs are the same. Scrape reads one page, map lists the pages there are, crawl walks many pages, and agent does a task when you do not know where the data is. A phone app has the same jobs, with screens in place of pages. A developer who already calls Firecrawl should not have to learn a second vocabulary for them.
So Lusor keeps Firecrawl's call names and result shapes where they fit and changes them only where phones need it. Every option, result field, status word and method name is Firecrawl's word, or a difference written down with its reason. Lusor treats any other difference as a bug to fix.
Which calls work on a phone today?
Three of the six.
| Firecrawl | Lusor today | |
|---|---|---|
| scrape | Reads one web page and returns it as a document. | Live. Reads one app screen to the end of its page and returns it as a document. |
| map | Lists a site's URLs. | Live. Lists the screens Lusor knows in an app, as app:// addresses. |
| agent | Finds data on the web from a prompt. | Live. Does a task on a phone from a prompt. |
| crawl | Walks a site and scrapes each page. | Not available yet. |
| search | Searches the web and can scrape the results. | Not available yet. |
| interact | Keeps working on a page a scrape opened. | Live. Keeps working on the screen a scrape or agent task ended on, from a prompt. |
Each live call has its own launch post: scrape a phone app like a web page, introducing map for phone apps and introducing agent for phone apps. The examples here use curl, because the SDK methods with Firecrawl's names, such as lusor.scrape(), are not on npm yet.
What stays the same: names, fields, status words?
Most of the request. Here is a Firecrawl scrape:
curl -X POST "https://api.firecrawl.dev/v2/scrape" \
-H "Authorization: Bearer $FIRECRAWL_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"url": "https://firecrawl.dev",
"formats": ["markdown"]
}'And here is a Lusor scrape of an iPhone's About screen:
curl "https://api.lusor.ai/v1/scrape" \
-H "X-Api-Key: $LUSOR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"url": "app://settings/general/about",
"formats": ["markdown"]
}'The body has the same shape. The endpoint, the address and the key header change. These names mean the same thing on both APIs:
| Firecrawl's names, kept | |
|---|---|
| scrape request | url, formats, { type: "json", schema }, { type: "screenshot", fullPage: true } |
| scrape document | markdown, json, screenshot, metadata.scrapeId, metadata.sourceURL, metadata.url |
| map | url, search and limit in; success and links with url and title out |
| agent | prompt, schema and maxCredits in; success, status, data, expiresAt and creditsUsed out |
| status words | processing, then completed or failed |
| a capped agent run | error "Agent reached max credits", stopReason credit_limit_reached |
| a queued task | metadata.concurrencyLimited, metadata.concurrencyQueueDurationMs |
metadata.sourceURL is the address you sent, and metadata.url is the screen the read ended on, as in Firecrawl. Screenshot links are valid for 24 hours, as Firecrawl's are. A queued task reports its wait in the same two metadata fields Firecrawl uses.
Where does a phone force a different choice?
In six places.
- An address instead of a URL. An app has no URLs, so a screen is an
app://address. The host is the app, and the path is the rows to tap, soapp://settings/general/aboutopens Settings, taps General, then taps About. Like Firecrawl's scrape, Lusor's scrape is mechanical. Fixed rules follow the address, and no model chooses where to go. A deep link or a web link sent to scrape is refused with400 bad_request. - No HTML.
htmlandrawHtmlhave nothing to convert. The Markdown is written from the screen's rows instead: the title as# Title, then one line per row, as- **Name**: value. - Scrape is a task, and nothing is cached. Firecrawl's scrape answers with the page in the same request and can serve a recent cached copy. Reading a phone screen takes seconds, and a phone screen is live, so Lusor's
POST /v1/scrapeanswers202with an id, andGET /v1/scrape/{id}readsprocessinguntil the document is ready. Agent works the way Firecrawl's agent does, start then read. Map answers at once, as Firecrawl's map does, because it holds no phone. - The queue is per phone. Firecrawl queues requests that pass a team's concurrency limit. A phone runs one task at a time, so Lusor queues a task behind the task its phone is running, and tasks on two different phones never wait for each other. A task that waits too long fails with
queue_expiredwithout starting. Firecrawl's queued jobs also time out, after at most 48 hours. - Map knows only what runs have recorded. Firecrawl's map reads a site's sitemap, search results and earlier crawls. An app has no sitemap, so Lusor's map reads the screens your workspace's scrape and agent runs passed through, plus a base map of English iPhone Settings. It adds
coverageandcheckedAtto the result, never claims to be complete, and returns an empty list with amessagefor an app it knows no screens of. Itslimitstops at 5,000 where Firecrawl's goes to 100,000, anddevicepicks the platform, because screen names differ between iPhone and Android. - Agent runs on a phone, not across the web. There is no
urlsfield and noappfield, so name the app in the prompt. Every run is recorded, so the result addsrecordingUrl, andliveViewUrlwhile the run is live. A task can readawaiting_human. A phone task signs in and pays as a person, so the agent can stop to ask that person a question. A stopped task readscancelled, the word Firecrawl uses for a cancelled crawl, where Firecrawl's agent reports a cancelled run asfailed.
One more choice is about scrape, not phones. Firecrawl's scrape takes an actions list, and Firecrawl's own docs recommend its interact call over it. Lusor's scrape takes no actions. To tap, type or sign in on a phone today, describe the task to agent, or send a turn with interact on the screen a scrape ended on.
What isn't built yet?
- crawl is not available yet. Until it is, every scrape and agent run in an app adds the screens it passes through to that app's map.
- search is not available yet. To find something inside an app today, describe it to agent.
Scrape answers three formats today: markdown, screenshot and json. Firecrawl's other formats, such as summary, links and images, are refused with 400 unsupported_format, and the message names the supported ones.
Can a Firecrawl options object run unchanged?
On map, yes. Change the url to an app:// address and keep the rest. Map ignores the Firecrawl options it does not use, such as sitemap, includeSubdomains and ignoreQueryParameters. The exception is limit. A value above 5,000 is refused with 400 bad_request.
curl "https://api.lusor.ai/v1/map" \
-H "X-Api-Key: $LUSOR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"url": "app://settings",
"search": "about",
"limit": 50,
"sitemap": "include",
"includeSubdomains": false,
"ignoreQueryParameters": true
}'On scrape, three things need a look:
urlmust be anapp://address.formatsmust bemarkdown,screenshotorjson. Ajsonschema's leaves must be plain values: strings, numbers, integers or booleans. They can sit inside nested objects and arrays, as in Firecrawl, and an array's items are the page's rows. An array inside an array's item is refused with400 unsupported_schema. Every text and number injsonis checked against the page's own text, as JSON from a phone screen you can check explains.- Leave out
actions. A scrape that includes them is refused with400 bad_requestand nothing runs.
Scrape adds one option of its own, maxScreens, the most screens of the page to read. On agent, prompt, schema and maxCredits carry over. Fields agent does not know, such as urls, are ignored. For a task that waits behind another on a busy phone, and for safe retries with an Idempotency-Key, see queued turns and safe retries.
Every field, status and error code is in the scrape docs, the map docs and the agent docs.
Frequently asked questions
Does Lusor use the same call names as Firecrawl?
Yes. Lusor's app-data API is modeled on Firecrawl's, so it uses Firecrawl's call names (scrape, map, crawl, search, agent and interact) and Firecrawl's request and result names, such as url, formats, metadata.scrapeId, links, prompt, schema and data. Where a phone needs something different, Lusor writes the difference down with its reason.
Which of Firecrawl's calls work on phone apps through Lusor today?
Scrape, map, agent and interact. Scrape reads an app page from an app:// address, map lists the screens Lusor knows in an app, agent does a task on a phone from a prompt, and interact keeps working on the screen a scrape or agent task ended on. Crawl and search are not available yet.
Can you send a Firecrawl options object to Lusor unchanged?
On map, yes, once the url is an app:// address and limit is 5,000 or less. Map ignores the Firecrawl options it does not use. On scrape, the url must be an app:// address, formats must be markdown, screenshot or json, every leaf of a json schema must be a plain value, and a request that includes actions is refused with 400 bad_request before anything runs. On agent, prompt, schema and maxCredits carry over, and fields agent does not know, such as urls, are ignored.
Why is Lusor's scrape a task when Firecrawl's answers at once?
Reading one phone screen takes seconds, because Lusor opens the app on a phone and taps through to the screen. So POST /v1/scrape answers 202 with an id, and GET /v1/scrape/{id} reads processing until the document or the error is ready. Lusor's agent call is started and then read, as Firecrawl's agent call is.
Why does Lusor's map return fewer links than Firecrawl's?
Firecrawl's map reads a site's sitemap, search results and earlier crawls. An app has no sitemap, so Lusor's map lists only the screens your workspace's runs have passed through, plus a base map of English iPhone Settings. It reports coverage and checkedAt and never claims to be complete.
Can Lusor's scrape run Firecrawl actions such as click and write?
No. Scrape takes no actions. It follows an app:// address with fixed rules and reads the screen. To tap, type or sign in on a phone today, describe the task to Lusor's agent call.