---
title: "How to scrape a phone app like a web page"
description: "Lusor's POST /v1/scrape reads a phone app screen from an app:// address and returns Markdown, JSON checked against the page and screenshots."
author: "Josiah Richards"
canonical: "https://lusor.ai/blog/scrape-phone-apps-like-web-pages"
updated: "2026-11-26"
---

[Blog](https://lusor.ai/blog) / [Integrations](https://lusor.ai/blog/integrations)

# How to scrape a phone app like a web page

Lusor's scrape call reads one screen of a phone app and returns it as Markdown, checked JSON and screenshots. Here is how an app:// address names the screen, what comes back, how far one scrape reads and where it stops today.

Scrape · November 24, 2026 · Updated November 26, 2026 · 8 min read

By Josiah Richards

## TL;DR

- POST /v1/scrape opens an app on a phone, follows an app:// address such as app://settings/general/about to one screen, and returns that screen as Markdown, JSON fields and screenshots.
- Scrape is mechanical. Fixed rules 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, and only the json format uses one.
- Every text and number in json is checked against the page's own text. A value the page does not show comes back null and is listed in metadata.unverified.
- Scrape reads the whole page by scrolling to its end, up to maxScreens screens, 10 by default and at most 50, and reports metadata.screensRead and metadata.reachedEnd.
- A scrape is a task. The start call answers 202 with an id, and GET /v1/scrape/{id} reads processing until the document or the error is ready.

A developer who scrapes the web sends a URL and gets the page back as Markdown or JSON. The data in a phone app has no URL and no HTML. Lusor's scrape call opens the app on a phone, follows an `app://` address to one screen, and returns that screen as a document.

Lusor's app-data API is modeled on Firecrawl's, so scrape takes a `url` and `formats` and returns a document. This post covers how an address names a screen, how a scrape runs, what comes back, how far one scrape reads, and where it stops today. The [scrape docs](https://docs.lusor.ai/app-data/scrape) have every field.

## What is an app:// address?

An address is one string in Lusor's own scheme, the way a web page has a URL.

```text
app://settings/general/about
```

- **The host is the app.** Write a Lusor app name such as `settings`, `photos`, `messages`, `safari` or `calendar`, and Lusor opens that app on the phone's platform. Or write the app's own package or bundle id, as in `app://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.
- **The app alone**, as in `app://settings`, reads the app's first screen.

Scrape follows the path from the app's first screen. If the app was left on another page, Lusor taps back until it reaches the first screen or a screen on the address's path, then follows the rest. Any address that is not `app://`, a deep link or a web link included, is refused with `400 bad_request`.

To find the addresses an app already has, call map. The post [introducing map for phone apps](https://lusor.ai/blog/introducing-map-for-phone-apps) covers it.

## How does scrape reach a screen without a model choosing where to go?

With fixed rules. For each part of the path, scrape finds the row with that name, taps it, and checks that the screen moved on. A step that is not on screen is found by scrolling the list. If the screen does not match the address, the scrape fails and names the step. Only the `json` format uses a model, and only to read fields off the page once the scrape is there.

So each step either matches the screen or fails, and a stale address fails instead of guessing. Work that needs judgment, such as signing in, searching or filling a form, belongs to the agent call, covered in [introducing agent for phone apps](https://lusor.ai/blog/introducing-agent-for-phone-apps).

## How do you run a scrape?

A scrape holds a phone for a few seconds or more, so it is a task. Start it with `POST /v1/scrape`.

```bash
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 call answers `202` at once with the task's `id`, and with a `liveViewUrl` when the run can be watched.

```json
{
  "id": "3f6c1e0a-…",
  "liveViewUrl": "https://…"
}
```

Read `GET /v1/scrape/{id}` until `status` is no longer `processing`. The first read that says `completed` carries the document, and the first that says `failed` carries the `error`. A stopped scrape reads `cancelled`. From a shell, with `jq`:

```bash
TASK_ID=$(curl -s "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"] }' | jq -r .id)

while :; do
  RESULT=$(curl -s "https://api.lusor.ai/v1/scrape/$TASK_ID" -H "X-Api-Key: $LUSOR_API_KEY")
  [ "$(echo "$RESULT" | jq -r .status)" != "processing" ] && break
  sleep 2
done
echo "$RESULT" | jq .
```

`liveViewUrl` is a watch-only player page for the phone while the scrape runs. You can open it or embed it with no Lusor login, taps through it are refused, and it stops working when the scrape ends. To put a phone's screen inside your own app over WebRTC instead, see [put a phone's live screen in your own app](https://lusor.ai/blog/live-phone-screen-in-your-app).

## What comes back?

`formats` says what the document holds. Without it, a scrape returns Markdown.

|  | Returns |
| --- | --- |
| "markdown" | markdown: the page title as # Title, then one line per row, top to bottom. The default. |
| "screenshot" | screenshot: a PNG of the screen the address reached. |
| { "type": "screenshot", "fullPage": true } | screenshot, plus screenshots: one PNG for each screen read, top to bottom. |
| { "type": "json", "schema": { … } } | json: the fields the schema names, read off the page. |

The Markdown is the page's title as `# Title`, then one line per row, top to bottom. A row with a value is `- **Name**: value`, and a row without one is `- **Name**`. Each row appears once, even when it was on two screens.

```json
{
  "status": "completed",
  "markdown": "# About\n- **Name**: iPhone\n- **iOS Version**: 26.1\n- **Model Name**: iPhone 13 Pro Max\n- **Model Number**: …",
  "metadata": {
    "scrapeId": "3f6c1e0a-…",
    "url": "app://settings/general/about",
    "sourceURL": "app://settings/general/about",
    "title": "About",
    "app": "com.apple.Preferences",
    "device": "…",
    "screensRead": 2,
    "reachedEnd": true,
    "durationMs": 9500
  },
  "error": null
}
```

|  | metadata field |
| --- | --- |
| sourceURL | The address you sent, as written. |
| url | The address of the screen the read ended on. A completed scrape reached its address. |
| title, app | The screen's title and the app's package or bundle id, when the read found them. |
| screensRead | How many screens of the page were read. |
| reachedEnd | true when the read reached the end of the page, false when maxScreens stopped it. |
| unverified | The json fields whose value the page did not show. Present only when there are some. |
| creditsUsed | What this scrape was charged. |

Each screenshot 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. Any format not in the table above is refused with `400 unsupported_format`, and the message names the supported ones.

## How do you get checked JSON from a screen?

Add a `json` format with a [JSON Schema](https://json-schema.org/specification). Each leaf must be a plain value: `string`, `number`, `integer` or `boolean`. A leaf can sit at the top level or inside nested objects and arrays.

```bash
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",
      {
        "type": "json",
        "schema": {
          "type": "object",
          "properties": {
            "version": { "type": "string" },
            "model": { "type": "string" }
          }
        }
      },
      "screenshot"
    ]
  }'
```

```json
{
  "status": "completed",
  "markdown": "# About\n- **Name**: iPhone\n…",
  "json": { "version": "26.1", "model": "iPhone 13 Pro Max" },
  "screenshot": "https://…",
  "metadata": { "scrapeId": "3f6c1e0a-…", "url": "app://settings/general/about" },
  "error": null
}
```

Every text and number value is checked against the page's own text. A value the page does not show comes back as `null`, and the field is listed in `metadata.unverified`, because 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.

An array's items are the page's rows: one item per row, in order, each row once, and at most the array's `maxItems`. Each item's values are checked against its own row, so a value read off another row comes back `null`. Objects and arrays nest at most 4 deep, and one schema asks for at most 100 values, with an array counted as one. A schema past those limits, an array inside an array's item or an object with no `properties` is refused with `400 unsupported_schema`, and the message names its path. For results that need judgment, send the schema to the agent call. Why a value that fits the schema can still be wrong is the subject of [JSON from a phone screen you can check](https://lusor.ai/blog/json-from-a-phone-screen).

## How much of the page does one scrape read?

The whole page. After it reaches the address, scrape scrolls to the end and returns all of it. Each move scrolls a whole screen, so the last row shown in full becomes the first row of the next screen.

`maxScreens` caps the read, the first screen included. It defaults to `10` and can be at most `50`, and `"maxScreens": 1` reads only the screen the address reaches. A scrape that asks only for `screenshot` reads one screen and does not scroll.

```bash
curl "https://api.lusor.ai/v1/scrape" \
  -H "X-Api-Key: $LUSOR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "url": "app://settings/privacy-&-security",
    "formats": ["markdown", { "type": "screenshot", "fullPage": true }],
    "maxScreens": 20
  }'
```

`metadata.screensRead` says how many screens were read. `metadata.reachedEnd` is `false` when `maxScreens` stopped the read first, so rows may be left below. In a live run on an iPhone 13 Pro Max, this address read 6 screens to the end of Privacy & Security and returned `reachedEnd: true`. With `fullPage: true`, `screenshots` holds one picture per screen read. They are separate pictures, not one stitched image.

## What happens when the screen does not match the address?

The scrape fails and names the step that did not match, counting from 0.

```json
{
  "status": "failed",
  "error": "step 1 (\"abuot\") is not on this screen or in 2 page moves up and down the list: nothing is named \"abuot\""
}
```

A name that matches two rows on the list taps nothing. The scrape fails and lists the matches, so it never guesses between two rows that look the same. To prove a name is unique, scrape scans the whole list before it taps a row that was not on the first screen, so a step below the fold is slower.

## What happens when the phone is already busy?

A phone runs one task at a time. A scrape sent to a phone that is running another task waits, reading `processing`, 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 waits too long fails with `queue_expired` without starting, and is not charged.

Send an [`Idempotency-Key`](https://datatracker.ietf.org/doc/draft-ietf-httpapi-idempotency-key-header/) header to retry a start safely. A retry with the same key returns the first request's task id instead of starting a second scrape. The post on [queued turns and safe retries](https://lusor.ai/blog/phone-tasks-queue-and-retry) covers the same ideas for agent turns and sessions.

## Where does scrape stop today?

- **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, and one address that works across platforms and languages is not built yet.
- **A page opened from the app's own search**, such as Settings, then search, then a result, can make the next scrape of that app fail, because the read can start from the wrong page.
- **`json` over a longer page reads the text alone.** On a one-screen page, 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.
- **Scrape takes no actions.** To tap, type or move around an app, use the agent call. Other formats such as `summary`, `links` and `images` are refused with `unsupported_format`.

The search and crawl calls are not available yet. Today the app-data API is four calls: scrape for a screen you can name, [map](https://lusor.ai/blog/introducing-map-for-phone-apps) for the addresses Lusor knows in an app, and [agent](https://lusor.ai/blog/introducing-agent-for-phone-apps) for work that needs judgment, and [interact](https://lusor.ai/blog/introducing-interact-for-phone-apps) to keep working on the screen a task ended on. Every field, status and error code is in the [scrape docs](https://docs.lusor.ai/app-data/scrape), next to the [map docs](https://docs.lusor.ai/app-data/map) and the [agent docs](https://docs.lusor.ai/app-data/agent).

## Frequently asked questions

### What is an app:// address?

It is the string Lusor uses to name a screen in a phone app, the way a URL names a web page. The host is the app, either a Lusor app name such as settings or the app's own package or bundle id. The path is the rows to tap, each written in lowercase with dashes, so app://settings/general/about opens Settings, taps General, then taps About.

### Does Lusor's scrape use AI to move through the app?

No. Scrape follows the address with fixed rules: 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. Only the json format uses a model, to read fields off the page, and every text and number it returns is checked against the page's text.

### What happens when a scrape cannot find a step of the address?

The scrape fails and its error names the step, counting from 0, for example step 1 ("abuot") is not on this screen. A step that is off screen is found by scrolling the list first. A name that matches two rows taps nothing and fails the scrape, listing the matches.

### How do you get JSON from a phone app screen with scrape?

Add a json format with a JSON Schema whose leaves are plain strings, numbers, integers or booleans, at the top level or inside nested objects and arrays. An array's items are the page's rows, each row once and in order. The result's json field holds those values. A text or number value the page does not show comes back null and is listed in metadata.unverified by its path. An array inside an array's item is refused with 400 unsupported\_schema.

### How many screens does one scrape read?

After it reaches the address, scrape scrolls to the end of the page and returns all of it, up to maxScreens screens. maxScreens defaults to 10 and can be at most 50, and maxScreens: 1 reads only the screen the address reaches. metadata.reachedEnd is false when maxScreens stopped the read before the end.

### Can scrape open a deep link or tap buttons on a screen?

No. Scrape follows app:// addresses only, and a deep link or a web link is refused with 400 bad\_request. Scrape takes no list of actions. To tap, type or move through an app with judgment, use Lusor's agent call.

## About the author

**Josiah Richards**

- [LinkedIn](https://www.linkedin.com/in/illjosiah/)

## Keep reading

- [The best MCP servers for Android phones](https://lusor.ai/blog/best-mcp-servers-for-android-phones): A shortlist of nine MCP servers for Android phones. What each one shows the agent, its setup, where it runs and its license, from each project's own docs.
- [How to give your AI agent an Android phone: every option](https://lusor.ai/blog/give-your-ai-agent-an-android-phone): Every way to give an AI agent an Android phone: adb, Appium, mobile-mcp, phone-harness and Lusor. Setup, what the agent sees, cost, and when to pick each.
- [Introducing interact: continue a phone app task in plain words](https://lusor.ai/blog/introducing-interact-for-phone-apps): Lusor's POST /v1/interact/{id} continues a scrape or agent task on the screen it ended on: send a turn, read the output, stop, and handle a busy phone.
