# parse\_url

Source: https://zotonic.com/docs/2267/parse_url

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

Language: en



Parses an URL (URI) using `uri_string:parse/1`.

Example:

```django
{% print "https://example.com:8443/foo?a=b#test"|parse_url %}
```

Gives:

```erlang
#{fragment => <<"test">>, host => <<"example.com">>,
  path => <<"/foo">>, port => 8443, query => <<"a=b">>,
  scheme => <<"https">>}
```

License: 

Attribution: 

Related resources: https://zotonic.com/api/agent/related/2267?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/2267?language=en>)
