app:// address to one screen, and returns that screen as a document: Markdown, the fields you ask for as JSON, and screenshots. It reads the whole page, scrolling to its end.
Scrape is mechanical. Fixed rules follow the address: open the app, tap the row each part of the path names, and check that the screen moved on. No model chooses where to go. If the screen does not match the address, the scrape fails and names the step. Only the json format uses a model, to read fields off the page.
For work that needs judgment, such as signing in, searching or filling a form, use Agent. To find the addresses an app has, use Map. To keep working on the screen a scrape ended on, send it a turn with Interact.
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. A screen is an
app:// address instead of a URL. A scrape is a task you read back by id, because reading a phone screen takes seconds. Tasks queue per phone, because a phone runs one task at a time. Map lists the screens earlier runs recorded, plus base maps Lusor ships, since an app has no sitemap. Firecrawl’s calls, for phone apps goes through every difference.Scrape a screen
A scrape is a task. Start it withPOST /v1/scrape, then read it with GET /v1/scrape/{id}.
202 with the task’s id at once:
status is no longer processing. $TASK_ID is the id the start call returned:
Response
A completed scrape returns the document:Addresses
An address is one string in Lusor’s own scheme, the way a web page has a URL:- The host is the app. Write a Lusor app name, such as
settings,photos,messages,safariorcalendar, and Lusor opens that app on the phone’s platform. Or write the app’s own package or bundle id, such asapp://com.apple.Preferences/general/about, and Lusor opens it as written. - The path is the screens to tap through. Each part is a row’s name as it appears on screen, in lowercase with dashes: “Software Update” is
software-update. Parts match the names on screen ignoring case, and a dash matches a space. app://settingsalone reads the app’s first screen.
app:// addresses only. Any other address, including a deep link such as instagram://… or a web link, is refused with 400 bad_request.
Formats
formats says what comes back. Without it, a scrape returns ["markdown"].
Any other format is refused with
400 unsupported_format, and the message names the supported ones.
Extract fields as JSON
Send a JSON Schema whose top-level properties are plain values:string, number, integer or boolean.
null, and the field is listed in metadata.unverified: a missing value is safer than a wrong one. A field the model could not read is null too. Booleans describe the state of the screen rather than words on it, so they are not checked.
A schema with a nested object, an array or no properties is refused with 400 unsupported_schema, and the message names the property. For nested results, or results that need judgment, use Agent with a schema. Structured output explains how to write one.
Screenshots
screenshot is a PNG of the screen the address reached, taken before the page is scrolled. With fullPage: true, screenshots holds one PNG for each screen read. They are separate pictures, not one stitched image.
Each picture is usually an https link, valid for 24 hours from the read and never past the moment the result leaves your plan’s history. Read the task again for fresh links. A picture that could not be stored comes back inline, as a data:image/png;base64,… URL.
A scrape that asks only for screenshot reads one screen and does not scroll.
Read the whole page
After it reaches the address, scrape scrolls the page to its end and returns all of it. Each move scrolls a whole screen: the last row shown in full becomes the first row of the next screen.maxScreens caps how far it reads, the first screen included. It defaults to 10 and can be at most 50. "maxScreens": 1 reads only the screen the address reaches.
metadata.screensRead says how many screens were read. metadata.reachedEnd is false when maxScreens stopped the read first, so rows may be left below. A page that does not scroll is one screen.
Start and status
Every scrape is a task: it holds a phone for a few seconds or more, so the request returns at once and you read the result when it is ready.status is one of:
The first read that says
completed carries the document, and the first that says failed carries the error, so you can stop at the first status that is not processing.
A failed scrape names the step that did not match, counting from 0:
GET /v1/sessions/{id} describes the same run. See Follow a session.
Watch it run
While the scrape runs,liveViewUrl is a watch-only link to the phone: a player page you can open or embed with no Lusor login. Taps and typing through it are refused, and it stops working when the scrape ends. Send expiresIn (seconds) in the body, or as a query parameter on the status read, to make the link expire sooner. The response leaves liveViewUrl out once the run has ended, or when the phone cannot serve one.
A busy phone queues the scrape
A phone runs one task at a time. A scrape sent to a phone that is running another task waits, readingprocessing, and starts when the phone frees. Its metadata then reports concurrencyLimited: true and concurrencyQueueDurationMs, the time from your request to the phone taking it. A scrape that found the phone free has neither field.
A scrape still waiting after 15 minutes fails with queue_expired, without starting, and is not charged.
Retry safely
Send anIdempotency-Key header with a value you choose. A retry with the same key returns the first request’s task id instead of starting a second scrape.
Options
Scrape takes no
actions list. A request that includes actions is refused with 400 bad_request before anything runs. To tap, type or move around an app, use Agent. Other fields scrape does not know are ignored.
Errors
Errors are JSON with anerror code and a message. See Errors.
Known limits
- An address is the words on screen. It works on the platform and in the language those words come from. Scrape has been tested mostly on English iPhone Settings. One address that works across platforms and languages is not built yet.
- A step below the fold is slower. To prove a name is unique, scrape scans the whole list before it taps a row that was not on the first screen.
- A page opened from the app’s own search (for example Settings, then search, then a result) can make the next scrape of that app fail, because the read can start from the wrong page.
jsonover a longer page reads the text alone. On a one-screen page, the fields are read from the text and the screenshot. When more than one screen is read, only the text is used, so a value the page shows only as a picture is not found.- No
actions, and no other formats yet.summary,links,imagesand the other Firecrawl formats are refused withunsupported_format.
Related
Map
List the addresses Lusor knows for an app, then scrape them.
Agent
Give a task in plain words when you do not know which screen holds the data.
Interact
Keep working on the screen this task ended on.

