---
agent:
  instructions: "Search crawlapi docs via GET /.well-known/search?q={query} (add &format=json or Accept: application/json for JSON)."
  endpoint: "https://docs.crawlapi.dev/.well-known/search?q={query}"
  method: "GET"
  documentation: "https://docs.crawlapi.dev/llms.txt"
---

> Documentation index: https://docs.crawlapi.dev/llms.txt
> Search docs: https://docs.crawlapi.dev/.well-known/search?q={query}
> OpenAPI 3.1 specification: https://docs.crawlapi.dev/openapi.json

# Structured JSON

> Normalized page entities, data tables, JSON-LD, embedded state, and card listings.

Send `"format": "json"` to extract a normalized primary entity, data tables, raw JSON-LD, and embedded page state from a URL.

## Example

**cURL**

```bash
curl -sS https://api.crawlapi.dev/v1/scrape \
  -H "Authorization: Bearer $CRAWLAPI_API_KEY" \
  -H 'content-type: application/json' \
  --data '{"url": "https://www.imdb.com/title/tt0111161/", "format": "json"}'
```

**TypeScript**

```typescript
const response = await fetch('https://api.crawlapi.dev/v1/scrape', {
  method: 'POST',
  headers: {
    Authorization: `Bearer ${process.env.CRAWLAPI_API_KEY}`,
    'content-type': 'application/json',
  },
  body: JSON.stringify({ url: 'https://www.imdb.com/title/tt0111161/', format: 'json' }),
});
const body = await response.json();
if (!body.success) throw new Error(`${body.error.code}: ${body.error.message}`);
console.log(body.data.json.structured);
```

**Python**

```python
import os
import requests

response = requests.post(
    "https://api.crawlapi.dev/v1/scrape",
    headers={"Authorization": f"Bearer {os.environ['CRAWLAPI_API_KEY']}"},
    json={"url": "https://www.imdb.com/title/tt0111161/", "format": "json"},
    timeout=65,
)
body = response.json()
if not body["success"]:
    raise RuntimeError(f"{body['error']['code']}: {body['error']['message']}")
print(body["data"]["json"]["structured"])
```

```json
{
  "success": true,
  "request_id": "req_3c5a360ab9ad5ba76a75",
  "data": {
    "metadata": {
      "title": "The Shawshank Redemption (1994) - IMDb",
      "description": "The Shawshank Redemption: Directed by Frank Darabont. With Tim Robbins, Morgan Freeman, Bob Gunton, William Sadler. After a banker is sentenced to life in Shawshank Prison, he forms an unlikely friendship with a seasoned inmate and clings to hope amid cruelty and corruption.",
      "language": "en-US",
      "status": 200,
      "final_url": "https://www.imdb.com/title/tt0111161/"
    },
    "links": [
      "https://www.imdb.com/?ref_=tt_nv_home",
      "https://www.imdb.com/?ref_=tt_nv_menu_home",
      "https://www.imdb.com/calendar/?ref_=tt_nv_menu"
    ],
    "json": {
      "structured": {
        "type": "creative_work",
        "source": "jsonld",
        "creative_work": {
          "kind": "Movie",
          "name": "The Shawshank Redemption",
          "date": "1994-10-14",
          "rating": {
            "value": 9.3,
            "count": 3264267
          },
          "genre": "Drama",
          "directors": ["Frank Darabont"],
          "actors": ["Tim Robbins", "Morgan Freeman", "Bob Gunton"],
          "authors": ["Stephen King", "Frank Darabont"],
          "duration": "PT2H22M",
          "image": "https://m.media-amazon.com/images/M/MV5BMDAyY2FhYjctNDc5OS00MDNlLThiMGUtY2UxYWVkNGY2ZjljXkEyXkFqcGc@._V1_.jpg"
        }
      },
      "tables": [
        {
          "source": "embedded",
          "headers": ["name", "url"],
          "rows": [
            ["Tim Robbins", "https://www.imdb.com/name/nm0000209/"],
            ["Morgan Freeman", "https://www.imdb.com/name/nm0000151/"],
            ["Bob Gunton", "https://www.imdb.com/name/nm0348409/"]
          ]
        }
      ],
      "jsonld": [
        {
          "@context": "https://schema.org",
          "@type": "Movie",
          "url": "https://www.imdb.com/title/tt0111161/",
          "name": "The Shawshank Redemption",
          "aggregateRating": {
            "@type": "AggregateRating",
            "ratingCount": 3264267,
            "bestRating": 10,
            "worstRating": 1,
            "ratingValue": 9.3
          },
          "contentRating": "R",
          "genre": ["Drama"],
          "datePublished": "1994-10-14",
          "duration": "PT2H22M"
        }
      ],
      "embedded": [
        {
          "source": "next-data",
          "key": "__NEXT_DATA__",
          "bytes": 984030,
          "value": {
            "props": {
              "pageProps": {
                "tconst": "tt0111161"
              }
            }
          }
        }
      ]
    }
  },
  "usage": {
    "credits": 1,
    "remaining": 9997
  }
}
```

Sample response trimmed for display.

## The four keys

Check `structured` and `tables` first; `jsonld` and `embedded` carry the raw backing data. `tables`, `jsonld`, and `embedded` are always present (empty arrays when none exist); `structured` is omitted when the page declares no entity.

| Key | Contents |
| --- | --- |
| `structured` | Normalized primary entity (`source`: `jsonld`, `microdata`, `opengraph`, `x`, or `youtube`), with missing fields filled from secondary sources declaring the same object. |
| `tables` | Extracted data tables (`source`: `embedded`, `html`, `list`, or `document`). |
| `jsonld` | Raw `<script type="application/ld+json">` blocks parsed as JSON. |
| `embedded` | Embedded page state blobs (`source`: `next-data`, `json-script`, `inline`, or `document`), largest first. |

## Structured types

When `data.json.structured` is present, `structured.type` names one of 12 normalized types and the object lives under the matching key:

| `type` | Declared for | Key fields |
| --- | --- | --- |
| `product` | Products, vehicles | `name`, `price`, `currency`, `availability`, `sku`, `gtin`, `brand`, `images`, `rating`, `url` |
| `article` | Articles, news, blog posts | `title`, `author`, `published`, `updated`, `site`, `image` |
| `listing` | Item lists, collections | `items` (`name`, `url`, `price`, `image`), `count` |
| `recipe` | Recipes | `name`, `ingredients`, `steps`, `prep_time`, `cook_time`, `total_time`, `servings`, `nutrition`, `rating`, `author`, `image` |
| `software_app` | Apps and games | `name`, `os`, `category`, `price`, `currency`, `rating`, `developer` |
| `creative_work` | Movies, TV, books, music, podcasts | `kind`, `name`, `date`, `rating`, `genre`, `directors`, `actors`, `authors`, `duration`, `image` |
| `event` | Events | `name`, `start`, `end`, `location`, `organizer`, `price`, `currency`, `url` |
| `job` | Job postings | `title`, `company`, `location`, `salary`, `posted`, `employment_type` |
| `faq` | FAQ and Q&A pages | Array of `{ question, answer }` |
| `local_business` | Businesses, shops, hotels | `name`, `address`, `phone`, `hours`, `rating` |
| `video` | Videos and YouTube | `name`, `duration`, `uploaded`, `thumbnail`, `url`, `description`, `channel`, `views`, `transcript` |
| `post` | X posts and threads | `author`, `handle`, `url`, `published`, `text`, `likes`, `reposts`, `replies`, `quotes`, `bookmarks`, `views`, `media`, `thread`, `quoted`, `article`, `comments` |

Full property types and descriptions live in the [OpenAPI 3.1 spec](https://docs.crawlapi.dev/openapi.json). For dedicated `post` and `video` layouts, see [X and YouTube](https://docs.crawlapi.dev/special-sites.md).

## Repeated card lists

Pages that render listings as repeated cards without an HTML `<table>` — such as job boards, product grids, or forum threads — extract into `tables` with `source: "list"`. Single-entity pages (like an individual product or article) skip related-item rails.

## Handling plain prose and fallbacks

`format: "json"` succeeds when a page exposes structured entity data, data tables, embedded records, or a card listing. Plain prose pages with no structured data return [`422 NO_CONTENT`](https://docs.crawlapi.dev/errors.md#NO_CONTENT) — fall back to [Markdown](https://docs.crawlapi.dev/markdown.md) (`format: "markdown"`) when your pipeline handles mixed URLs.

When reading `data.json`, check `structured?.type` first for normalized fields (such as product prices, ratings, or article metadata), then inspect `tables` for tabular grids and listings, and drop down to `jsonld` or `embedded` only when you need site-specific raw fields.

## Output size

`data.json` is capped at **`2 MiB`** UTF-8, prioritizing `structured`, then `jsonld`, `tables`, and `embedded`. When a payload is trimmed to fit, `metadata.truncated` is set to `true`.
