> ## Documentation Index
> Fetch the complete documentation index at: https://docs.webrouter.net/llms.txt
> Use this file to discover all available pages before exploring further.

# ambientCG

> CC0 PBR materials, HDRIs, decals and 3D models from ambientCG: search assets with their metadata and download links, and list categories and collections.

![](https://mintcdn.com/webrouter/Wx0iBZkUGX_VAFTN/logo/data-apis/ambientcg.webp?fit=max\&auto=format\&n=Wx0iBZkUGX_VAFTN\&q=85\&s=a70efdd1d99a42491ee5c835480e744a)

[Web Catalog · Media](https://docs.webrouter.net/data-apis.md?category=media)

Key optional

Endpoints

3

Auth

Key in header

[Vendor docs](https://docs.ambientcg.com/api/v3/)

## Setup

| Variable | | What it is |
| - | - | - |
| `AMBIENTCG_API_KEY` | some calls | Optional API token shown at ambientCG.com/activate to Patreon supporters; it unlocks their tier's benefits (early access, exclusive files). |

Put them in your environment or `.env`; [Data APIs](https://docs.webrouter.net/vendors.md) covers the other ways.

## Notes

* Keyless for the public CC0 library; a token only adds Patreon benefits.
* Read-only: every v3 call is a GET.
* Run by one person: the operator warns it may be less reliable than an enterprise API, so cache results.

## Endpoints

GET

Search assets

Assets matching keywords, type, technique, id or release date, with the metadata and download links chosen by include.

[Open](#ambientcg-assets-search)

GET

List categories

Metadata about every asset category.

[Open](#ambientcg-categories-list)

GET

List collections

Metadata about every asset collection.

[Open](#ambientcg-collections-list)

### Search assets

GET

`/assets`

`ambientcg.assets.search`

Assets matching keywords, type, technique, id or release date, with the metadata and download links chosen by include.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr><td>`q`</td><td>string</td><td>query</td><td>Keywords separated by commas or spaces, combined with AND. Example `sand`</td></tr>
    <tr><td>`type`</td><td>string</td><td>query</td><td>Comma-separated (OR) data types: material, hdri, substance, decal, atlas, 3d-model, plain-image, brush, terrain, hdri-element. An invalid value returns nothing. Example `material`</td></tr>

    <tr>
      <td>
        `technique`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Comma-separated (OR) creation techniques, e.g. surface-photogrammetry, surface-fully-procedural, model-photogrammetry, hdri-bracketed-panorama.
      </td>
    </tr>

    <tr><td>`sort`</td><td>string</td><td>query</td><td>Order; popular when unset or unrecognized. One of `popular`, `latest`, `downloads`, `oldest`, `random`, `alphabet`</td></tr>

    <tr>
      <td>
        `id`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Comma-separated asset ids, e.g. PavingStones036; unknown ids are ignored.
      </td>
    </tr>

    <tr>
      <td>
        `date`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Only assets released on this day, YYYY-MM-DD.
      </td>
    </tr>

    <tr>
      <td>
        `limit`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        Results to return, 1 to 500; 100 by default.
      </td>
    </tr>

    <tr>
      <td>
        `offset`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        Results to skip; only applies when limit is set.
      </td>
    </tr>

    <tr><td>`include`</td><td>string</td><td>query</td><td>Comma-separated fields to return: type, releaseDate, shortDescription, longDescription, title, url, tags, colors, dimensions, downloadStatistics, maps, technique, downloads, relations, collections, previews, thumbnails. Example `title,tags,downloads`</td></tr>
  </tbody>
</table>

[Vendor docs](https://docs.ambientcg.com/api/v3/assets/) · Same job: [ccMixter](https://docs.webrouter.net/data-apis/ccmixter.md#ccmixter-uploads-search), [NASA Image and Video Library](https://docs.webrouter.net/data-apis/nasa-images.md#nasa-images-search), [Openverse](https://docs.webrouter.net/data-apis/openverse.md#openverse-images-search), [Pexels](https://docs.webrouter.net/data-apis/pexels.md#pexels-photos-search), [Poly Haven](https://docs.webrouter.net/data-apis/polyhaven.md#polyhaven-assets-list), [Sketchfab](https://docs.webrouter.net/data-apis/sketchfab.md#sketchfab-models-search)

```python Python theme={null}
router.call_data_api("ambientcg.assets.search", {'q': 'sand', 'type': 'material', 'include': 'title,tags,downloads'})
```

```text MCP theme={null}
call_data_api(endpoint="ambientcg.assets.search", params={"q": "sand", "type": "material", "include": "title,tags,downloads"})
```

> [!NOTE]
>
> * Download URLs are only in the response when include contains downloads.

### List categories

GET

`/categories`

`ambientcg.categories.list`

Metadata about every asset category.

Input

No inputs.

[Vendor docs](https://docs.ambientcg.com/api/v3/categories/) · Same job: [Poly Haven](https://docs.webrouter.net/data-apis/polyhaven.md#polyhaven-taxonomy-get), [Sketchfab](https://docs.webrouter.net/data-apis/sketchfab.md#sketchfab-categories-list)

```python Python theme={null}
router.call_data_api("ambientcg.categories.list")
```

```text MCP theme={null}
call_data_api(endpoint="ambientcg.categories.list")
```

### List collections

GET

`/collections`

`ambientcg.collections.list`

Metadata about every asset collection.

Input

No inputs.

[Vendor docs](https://docs.ambientcg.com/api/v3/collections/) · Same job: [Poly Haven](https://docs.webrouter.net/data-apis/polyhaven.md#polyhaven-taxonomy-get), [Sketchfab](https://docs.webrouter.net/data-apis/sketchfab.md#sketchfab-categories-list)

```python Python theme={null}
router.call_data_api("ambientcg.collections.list")
```

```text MCP theme={null}
call_data_api(endpoint="ambientcg.collections.list")
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.