# content\_type\_urls

Source: https://zotonic.com/docs/1906/content_type_urls

URI: https://zotonic.com/id/1906

Language: en



Return the available content representations and URLs for a resource.

The result is a list of `{ContentType, Url}` pairs derived from the resource's content-type dispatch rules. This can be used to present links to HTML, JSON, or other export formats.

For example:

```django
{% for content_type, url in id|content_type_urls %}
    <a href="{{ url }}">{{ content_type|content_type_label }}</a>
{% endfor %}
```

License: 

Attribution: 

Related resources: https://zotonic.com/api/agent/related/1906?language=en


## API access

- [API help](<https://zotonic.com/api-help>)
- [OpenAPI specification](<https://zotonic.com/openapi.json>)
- [This resource as JSON](<https://zotonic.com/api/agent/resource/1906?language=en>)
