# UPRN lookup

To get the address for a UPRN, call `AddressesAsync()` 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.

UprnLookup.cscsharp

```csharp
using IdealPostcodes;

using var client = new IdealPostcodesClient("ak_test");

var hits = (await client.AddressesAsync(new AddressesParams { Uprn = 50002012147 })).Result.Hits;

if (hits.Count > 0)
{
    Console.WriteLine($"{hits[0].Line1}, {hits[0].PostTown}, {hits[0].Postcode}");
}
```

This prints `9 Malyons Road, Swanley, BR8 7RE`. `Query` is optional, so set the `Uprn` filter alone.

## Several addresses per UPRN

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.

## UPRN not found

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

## Batch size

One UPRN per request. The `Uprn` filter takes a single number.

## 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 [`AddressesAsync()`](/docs/sdks/dotnet/endpoints/addresses.md) for the other filters, such as `PostcodeOutward` and `PostTown`.
