Local Listings Export API

Share your data with other apps

Public API
Live
API Endpoint URL
https://api.base44.com/api/apps//functions/exportLocalListings

Query Params

?status=approved — filter

?limit=200 — max results

Response

JSON array of listings

Includes lat/lng + images

Tutorial: Import into Another Base44 App
1

Open your other Base44 app

Go to the app where you want to import the listings.

2

Create an entity

Make a LocalListing entity in the other app with fields: name, name_bn, category, address, latitude, longitude, phone, images, district, upazila, status.

3

Create a backend function

Use the code below in a new backend function (e.g. importFromSource.js).

4

Run the function once

Go to Dashboard → Code → Functions → importFromSource → Test it. All listings will be copied!

Code for Your Other App (Backend Function)
// In your OTHER Base44 app — backend function or page import { base44 } from "@/api/base44Client"; // Call this to fetch all listings from the source app const fetchListings = async () => { const response = await fetch("https://api.base44.com/api/apps//functions/exportLocalListings"); const json = await response.json(); return json.data; // array of listings }; // Then import them into your new app's entity const importListings = async () => { const listings = await fetchListings(); // Map fields as needed, then bulk create const mapped = listings.map(l => ({ name: l.name, name_bn: l.name_bn, category: l.category, description: l.description, address: l.address, latitude: l.latitude, longitude: l.longitude, phone: l.phone, images: l.images, cover_image: l.cover_image, district: l.district, upazila: l.upazila, status: "approved", })); // Bulk create in batches of 50 for (let i = 0; i < mapped.length; i += 50) { await base44.entities.YourEntityName.bulkCreate(mapped.slice(i, i + 50)); } console.log(`Imported ${mapped.length} listings!`); }; importListings();
cURL / Direct HTTP Calls
# Get all listings curl "https://api.base44.com/api/apps//functions/exportLocalListings" # Get only approved listings curl "https://api.base44.com/api/apps//functions/exportLocalListings?status=approved" # Limit results curl "https://api.base44.com/api/apps//functions/exportLocalListings?status=approved&limit=100"
Exported Data Fields
id
name
name_bn
category
description
description_bn
address
latitude
longitude
phone
email
website
images
cover_image
logo_url
district
upazila
union
status
submitted_by
business_id
opening_hours
amenities
tags
created_date
updated_date