Address Generator
Overview
SeatLabs provides an API endpoint that allows users to generate real addresses from various cities and countries around the world. This API also offers the option to include phone numbers in the generated addresses.
API Endpoint
URL: https://seatlabs.net/api/generate-addresses
Method: POST
Request Format
Headers
Content-Type:
application/json
Body Parameters
locationInput
(string): The location input can either be a country code (e.g.,GB
for United Kingdom) or a city name (e.g.,London
).count
(integer): The number of unique addresses you want to generate.getPhoneNumbers
(boolean, optional): If set totrue
, phone numbers will be included with the generated addresses. Default isfalse
.getFullName
(boolean, optional): If set totrue
, Random Full Name country specific will be included with the generated addresses. Default isfalse
.getId
(boolean, optional): If set totrue
, Random Id country specific will be included with the generated addresses. Default isfalse
.apiKey
(string): Your unique API key to authenticate and authorize the request.
Example Request
Example 1: Generate 10 Addresses in London
Example 2: Generate 5 Addresses in the United Kingdom with Phone Numbers
Response Format
The response will be in JSON format.
Success Response
success
(boolean): Indicates whether the address generation was successful.addresses
(array): An array of objects, each representing a generated address. Each address object includes the street, number, city, country, and optionally a phone number if requested.
Example Success Response
Error Response
If an error occurs, the response will contain the error details.
Example Error Response: Insufficient Funds
Example Error Response: Country Not Found
Pricing
The cost for generating addresses is as follows:
Base Price: £0.10 per address
Additional Cost for Phone Numbers: £0.025 per address
Additional Cost for Id: £0.025 per address
Additional Cost for Name: £0.01 per address
The total cost will be calculated based on the number of addresses and whether phone numbers are included.
Supported Locations
You can input either a country code or a city name from the following supported locations:
United Kingdom (GB): Southampton, Leicester, West London, Bournemouth, Hull City, London, North London, Norwich, Birmingham, Middlesborough, Manchester, Edinburgh, Glasgow, Liverpool, Bristol, Lincoln, Cambridge, Leeds, York, Oxford, Newcastle, Nottingham, Chester, St Albans, Brighton, Ipswich, Wolverhampton
Germany (DE): Stuttgart, Leverkusen, Berlin, Munich, Frankfurt, Cologne, Dusseldorf, Hamburg, Mannheim, Essen, Münster, Kassel, Darmstadt, Aachen, Hanover, Karlsruhe, Augsburg, Leipzig
Ireland (IE): Dublin, Cork, Limerick, Galway, Belfast, Waterford, Dún Laoghaire, Bray, Wicklow, Kildare
United Arab Emirates (AE): Dubai, Abu Dhabi
Italy (IT): Milan, Rome, Turin, Naples, Florence, Genoa, Verona, Catania, Palermo, Potenza, Novara, Pisa, Trieste, Trento, Bologna, Perugia, Siena, Ravenna
Netherlands (NL): Amsterdam, Eindhoven, Rotterdam, The Hague, Leiden, Delft, Utrecht, Groningen, Dordrecht, Den Bosch, Maastricht, Breda, Enschede, Tilburg, Almere, Arnhem, Zwolle, Leeuwarden
France (FR): Paris, Nice, Lyon, Bordeaux, Toulouse, Marseille, Nantes, Strasbourg, Le Havre, Lille, Dijon, Reims, Montpellier, Tours, Annecy, Rennes
Switzerland (CH): Bern, Basel, Zurich, Geneva, Lausanne, Lucerne, St. Gallen, Thun, Chur, Altdorf, Winterthur, Olten, Solothurn, Herisau, Neuchâtel, Schaffhausen
Czech Republic (CZ): Prague, Brno, Pilsen, Liberec, Hradec Králové, Ostrava, Olomouc, Jablonec nad Nisou, Frýdek-Místek, Pardubice
Spain (ES): Madrid, Barcelona, Valencia, Seville, Malaga, Oviedo, Bilbao, Valladolid, Alicante, Murcia, Las Palmas de Gran Canaria, Zaragoza, Marbella, Santiago de Compostela, Santa Cruz de Tenerife, Castellón de la Plana
Portugal (PT): Porto, Lisbon, Coimbra, Braga, Faro, Funchal, Horta, Leiria, Beja, Aveiro, Viana do Castelo, Santarém, Vila Real, Portimão, Évora, Viseu
United States (US): New York, Los Angeles, Chicago, Houston, Phoenix, Denver, San Francisco, Seattle, Dallas, Miami
Australia (AU): Sydney, Melbourne, Brisbane, Perth, Adelaide, Canberra, Hobart, Darwin, Cairns, Rockhampton
China (CN): Beijing, Shanghai, Guangzhou, Hong Kong, Wuhan, Xi'an, Kunming, Nanjing, Changsha, Chongqing
Singapore (SG): Singapore
Timeout
The API operation has a timeout of 2 minutes. If the address generation process exceeds this time, a timeout error will be returned.
Contact
For further assistance, join our discord https://discord.gg/rFpcutkeQZ
Last updated