Find an API

Search public APIs with auth details & Postman guides

← All APIs

Locations

whapi · Media

Media No Auth Free & Open entertainment

The Locations API is a collection of methods that support geographical information. The first method is an address lookup service for UK addresses. This service can be used to provide a new customer with a list of possible addresses from which they can populate a registration form.

Authentication

No authentication requiredFree to use with no key needed.

Sample Requests

GET addressLookup

Retrieves a list of addresses when supplied with a house number or name and a postcode. It is generally used during customer registration to provide a list of possible addresses from where the customer can select their own address details.

https://api.apis.guru/v2/specs/whapi.com/locations/2.0/address/lookup?houseNum=example&postCode=example

Hover any highlighted part to learn what it does

curl -X GET "https://api.apis.guru/v2/specs/whapi.com/locations/2.0/address/lookup/?houseNum=example&postCode=example"
import requests
params = {
    "houseNum": "example",
    "postCode": "example"
}
response = requests.get(
    "https://api.apis.guru/v2/specs/whapi.com/locations/2.0/address/lookup/",
    params=params,
)
print(response.json())
const url = new URL('https://api.apis.guru/v2/specs/whapi.com/locations/2.0/address/lookup/');
url.searchParams.set('houseNum', 'example');
url.searchParams.set('postCode', 'example');

const response = await fetch(url); 
const data = await response.json();
console.log(data);
package main

import (
	"fmt"
	"io"
	"net/http"
	"net/url"
)

func main() {
	baseURL, _ := url.Parse("https://api.apis.guru/v2/specs/whapi.com/locations/2.0/address/lookup/")
	q := baseURL.Query()
	q.Set("houseNum", "example")
	q.Set("postCode", "example")
	baseURL.RawQuery = q.Encode()
	targetURL := baseURL.String()
	req, _ := http.NewRequest("GET", targetURL, nil)

	client := &http.Client{}
	resp, _ := client.Do(req)
	defer resp.Body.Close()
	body, _ := io.ReadAll(resp.Body)
	fmt.Println(string(body))
}
require "net/http"
require "json"

uri = URI("https://api.apis.guru/v2/specs/whapi.com/locations/2.0/address/lookup/")
uri.query = URI.encode_www_form({
  "houseNum" => "example",
  "postCode" => "example"
})

http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = uri.scheme == "https"

req = Net::HTTP::Get.new(uri)

res = http.request(req)
puts JSON.parse(res.body)
<?php
$url = "https://api.apis.guru/v2/specs/whapi.com/locations/2.0/address/lookup/?" . http_build_query([
    "houseNum" => "example",
    "postCode" => "example"
]);
$opts = ["http" => [
    "method" => "GET",
]];
$ctx = stream_context_create($opts);
$res = file_get_contents($url, false, $ctx);
print_r(json_decode($res, true));
GET getCountries

Retrieves a list of countries and its currencies.

https://api.apis.guru/v2/specs/whapi.com/locations/2.0/countries

Hover any highlighted part to learn what it does

curl -X GET "https://api.apis.guru/v2/specs/whapi.com/locations/2.0/countries/"
import requests
response = requests.get(
    "https://api.apis.guru/v2/specs/whapi.com/locations/2.0/countries/",
)
print(response.json())
const url = 'https://api.apis.guru/v2/specs/whapi.com/locations/2.0/countries/';

const response = await fetch(url); 
const data = await response.json();
console.log(data);
package main

import (
	"fmt"
	"io"
	"net/http"
)

func main() {
	targetURL := "https://api.apis.guru/v2/specs/whapi.com/locations/2.0/countries/"
	req, _ := http.NewRequest("GET", targetURL, nil)

	client := &http.Client{}
	resp, _ := client.Do(req)
	defer resp.Body.Close()
	body, _ := io.ReadAll(resp.Body)
	fmt.Println(string(body))
}
require "net/http"
require "json"

uri = URI("https://api.apis.guru/v2/specs/whapi.com/locations/2.0/countries/")

http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = uri.scheme == "https"

req = Net::HTTP::Get.new(uri)

res = http.request(req)
puts JSON.parse(res.body)
<?php
$url = "https://api.apis.guru/v2/specs/whapi.com/locations/2.0/countries/";
$opts = ["http" => [
    "method" => "GET",
]];
$ctx = stream_context_create($opts);
$res = file_get_contents($url, false, $ctx);
print_r(json_decode($res, true));
GET getCurrencies

Retreives the list of currencies.

https://api.apis.guru/v2/specs/whapi.com/locations/2.0/currencies

Hover any highlighted part to learn what it does

curl -X GET "https://api.apis.guru/v2/specs/whapi.com/locations/2.0/currencies/"
import requests
response = requests.get(
    "https://api.apis.guru/v2/specs/whapi.com/locations/2.0/currencies/",
)
print(response.json())
const url = 'https://api.apis.guru/v2/specs/whapi.com/locations/2.0/currencies/';

const response = await fetch(url); 
const data = await response.json();
console.log(data);
package main

import (
	"fmt"
	"io"
	"net/http"
)

func main() {
	targetURL := "https://api.apis.guru/v2/specs/whapi.com/locations/2.0/currencies/"
	req, _ := http.NewRequest("GET", targetURL, nil)

	client := &http.Client{}
	resp, _ := client.Do(req)
	defer resp.Body.Close()
	body, _ := io.ReadAll(resp.Body)
	fmt.Println(string(body))
}
require "net/http"
require "json"

uri = URI("https://api.apis.guru/v2/specs/whapi.com/locations/2.0/currencies/")

http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = uri.scheme == "https"

req = Net::HTTP::Get.new(uri)

res = http.request(req)
puts JSON.parse(res.body)
<?php
$url = "https://api.apis.guru/v2/specs/whapi.com/locations/2.0/currencies/";
$opts = ["http" => [
    "method" => "GET",
]];
$ctx = stream_context_create($opts);
$res = file_get_contents($url, false, $ctx);
print_r(json_decode($res, true));

Postman Setup Guide

Get Postman ↗
  1. See official documentation for authentication and setup.

What can you build with Locations?

Locations is a Media API. Developers commonly use media APIs for:

  • storing and delivering images, video, and audio
  • building digital asset management and media libraries
  • transcoding and optimising media for the web
  • adding video streaming and playback to your app
  • automating content tagging and metadata extraction

No authentication required. This API is open — no signup or key needed. Ideal for quick prototypes and public-facing features. Locations is free to use, making it a low-risk choice to experiment with.

New to APIs? Read our beginner's guide · Learn about API keys · What is REST?

Open documentation ↗