# UPRN lookup

To get the address for a UPRN, call `addresses()` with the `uprn` filter and no query. The UPRN (Unique Property Reference Number) is the number UK local authorities assign to each property and Ordnance Survey maintains.

uprn\_lookup.phpphp

```php
use IdealPostcodes\IdealPostcodes;

$client = IdealPostcodes::client('ak_test');
$hits = $client->addresses(['uprn' => 50002012147])->result->hits;

if ($hits !== []) {
    echo $hits[0]->line1, ', ', $hits[0]->postTown, ', ', $hits[0]->postcode, PHP_EOL;
}
```

This prints `9 Malyons Road, Swanley, BR8 7RE`. The `query` parameter is optional, so pass the `uprn` filter alone.

## Can one UPRN return several addresses?

Yes. A key with PAF Alias returns the Royal Mail record plus each alias for the same property. UPRN `1`, Bristol City Council, returns three hits: the `paf` record and two `pafa` aliases with different department lines. Check `dataset` on each hit if you want the Royal Mail record only.

## What if the UPRN is not found?

`hits` is empty and the request costs nothing. It does not throw.

## How many UPRNs can I send at once?

One. The `uprn` filter does not take a comma-separated list, so send one request per UPRN.

## What does it cost?

One lookup when the UPRN matches an address. Your key needs one of PAF, Multiple Residence, Not Yet Built, PAF Alias, PAF Welsh, AddressBase or AddressBase Premium.

See [`search`](/docs/sdks/php/endpoints/addresses.md) for the other filters, such as `postcode_outward` and `post_town`.
