# Import Landed Cost Calculator - Ghana Kenya Nigeria (`bonpleincapital/africa-resale-prices`) Actor

Landed cost, break-even and resale price in GHS, KES, NGN, UGX, TZS from your supplier prices, with per-product duty, shipping and margin. Created with the help of AI.

License: personal use only; resale and redistribution prohibited.
Created with the help of artificial intelligence.

- **URL**: https://apify.com/bonpleincapital/africa-resale-prices.md
- **Developed by:** [Bon Plein Capital](https://apify.com/bonpleincapital) (community)
- **Categories:** E-commerce, Business
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.60 / 1,000 product price results

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## Ghana & Kenya Reseller Landed Cost Calculator

**Ghana & Kenya Reseller Landed Cost Calculator** is an Apify Actor for resellers, importers and dropshippers who buy goods abroad (China, UAE, UK, USA, Europe) and sell them in Ghana or Kenya. Give it your supplier prices and it returns, as JSON, CSV or Excel, the **landed cost** and a **suggested resale price** in Ghana cedis (GHS) and Kenyan shillings (KES), using the latest public exchange rates. Classified sites such as Tonaton and Pigiame block automated access, so this Actor does not scrape them: it relies on an open exchange-rate source that never blocks, and it runs in a few seconds.

### What can this Actor do?

- Convert supplier prices from USD, CNY, EUR, GBP or AED into GHS, KES, NGN, UGX and TZS (Ghana, Kenya, Nigeria, Uganda, Tanzania) with a dated exchange rate.
- Optional `quantity` per product gives total landed cost and total profit for the whole batch, plus the real margin on sale price.
- Add your shipping, duty/taxes and target margin to give the landed cost, the suggested resale price and the profit per unit.
- Handle many products at once: one dataset item per product and per country, ready for a spreadsheet or your own tool.
- Run on the Apify free plan: the prefilled example returns 4 results in seconds.

### How to use it

1. Click **Try for free** and open the **Input** tab.
2. Paste your products as JSON (name and unit price), choose the supplier currency and the countries (GH, KE).
3. Adjust shipping, duty and margin percentages to your reality, then click **Start**.
4. Download the results from the **Output** tab, or call the Actor from the API, Make, Zapier or n8n.

### Input

```json
{
  "products": [
    {"name": "Wireless earbuds", "price": 8},
    {"name": "Phone case", "price": 1.5}
  ],
  "supplierCurrency": "USD",
  "countries": ["GH", "KE"],
  "shippingPercent": 15,
  "dutyPercent": 20,
  "marginPercent": 30,
  "maxItems": 4
}
```

Shipping is a percentage of the supplier price. Duty and taxes apply to price plus shipping. Margin applies to the landed cost. These are your own assumptions: check real customs rates with your clearing agent.

### Output

```json
{
  "product": "Phone case",
  "country": "Ghana",
  "supplierPrice": 1.5,
  "supplierCurrency": "USD",
  "localCurrency": "GHS",
  "exchangeRate": 10.9,
  "rateDate": "Wed, 18 Nov 2026 00:02:31 +0000",
  "supplierPriceLocal": 16.35,
  "landedCostLocal": 22.56,
  "suggestedResalePriceLocal": 29.33,
  "profitPerUnitLocal": 6.77,
  "quantity": 1,
  "totalLandedCostLocal": 22.56,
  "totalProfitLocal": 6.77,
  "marginOnSalePricePercent": 23.1,
  "breakEvenPriceLocal": 22.56,
  "assumptions": "shipping 15%, duty/taxes 20%, margin 30%",
  "rateSource": "open.er-api.com"
}
```

#### Per-product overrides

Each product can carry its own `shippingPercent`, `dutyPercent` and `marginPercent`, for example electronics at 25% duty and a phone case at 10%:

```json
{"name": "Wireless earbuds", "price": 8, "quantity": 100, "dutyPercent": 25, "marginPercent": 40}
```

### Who uses it

- Resellers pricing a new AliExpress or Alibaba batch for Ghana, Kenya or Nigeria.
- Importers comparing the same product across five East and West African markets.
- Dropshippers checking that a supplier price still leaves a margin after freight and duty.

### How much does it cost?

This Actor uses **pay per event** pricing: you pay a small amount for each result (one product in one country), and nothing for results that are not produced. 1,000 results cost the price of 1,000 `result` events shown in the **Pricing** tab. Apify's free plan gives you monthly credits to try it first.

### FAQ

#### Does it scrape Tonaton, Pigiame or Jiji?

No. Those sites show a human-verification page to automated visitors, and this Actor never bypasses captchas. It uses only public exchange-rate data.

#### How accurate are the prices?

The exchange rates are public daily mid-market rates, not what your bank or mobile-money provider charges. Duty, shipping and margin are your assumptions. Treat the output as an estimate, not financial advice.

#### Is it legal to use this Actor?

It processes no personal data, only public exchange rates and the numbers you provide. You remain responsible for lawful use of the results, including GDPR if you add personal data to your own workflows.

#### What if something does not work?

Open an issue in the **Issues** tab with your input and the run link.

#### Can I use it through the API?

Yes. Every run can be started and read through the Apify API and its Python and JavaScript clients.

***

Created with the help of artificial intelligence.

# Changelog

This Actor's version history is a separate document: https://apify.com/bonpleincapital/africa-resale-prices/changelog.md

# Actor input Schema

## `products` (type: `array`):

Items you plan to import and resell: a name and the supplier price per unit.

## `supplierCurrency` (type: `string`):

Currency of the supplier prices.

## `countries` (type: `array`):

GH = Ghana (GHS), KE = Kenya (KES), NG = Nigeria (NGN), UG = Uganda (UGX), TZ = Tanzania (TZS).

## `shippingPercent` (type: `integer`):

Freight and handling as a percentage of the supplier price.

## `dutyPercent` (type: `integer`):

Import duty and taxes as a percentage of price plus shipping.

## `marginPercent` (type: `integer`):

Margin added on top of the landed cost.

## `maxItems` (type: `integer`):

Stop after this many results (one per product and country).

## Actor input object example

```json
{
  "products": [
    {
      "name": "Wireless earbuds",
      "price": 8
    },
    {
      "name": "Phone case",
      "price": 1.5
    }
  ],
  "supplierCurrency": "USD",
  "countries": [
    "GH",
    "KE"
  ],
  "shippingPercent": 15,
  "dutyPercent": 20,
  "marginPercent": 30,
  "maxItems": 4
}
```

# Actor output Schema

## `results` (type: `string`):

One dataset item per result, shown in the Overview view.

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "products": [
        {
            "name": "Wireless earbuds",
            "price": 8
        },
        {
            "name": "Phone case",
            "price": 1.5
        }
    ],
    "supplierCurrency": "USD",
    "countries": [
        "GH",
        "KE"
    ],
    "shippingPercent": 15,
    "dutyPercent": 20,
    "marginPercent": 30,
    "maxItems": 4
};

// Run the Actor and wait for it to finish
const run = await client.actor("bonpleincapital/africa-resale-prices").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {
    "products": [
        {
            "name": "Wireless earbuds",
            "price": 8,
        },
        {
            "name": "Phone case",
            "price": 1.5,
        },
    ],
    "supplierCurrency": "USD",
    "countries": [
        "GH",
        "KE",
    ],
    "shippingPercent": 15,
    "dutyPercent": 20,
    "marginPercent": 30,
    "maxItems": 4,
}

# Run the Actor and wait for it to finish
run = client.actor("bonpleincapital/africa-resale-prices").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "products": [
    {
      "name": "Wireless earbuds",
      "price": 8
    },
    {
      "name": "Phone case",
      "price": 1.5
    }
  ],
  "supplierCurrency": "USD",
  "countries": [
    "GH",
    "KE"
  ],
  "shippingPercent": 15,
  "dutyPercent": 20,
  "marginPercent": 30,
  "maxItems": 4
}' |
apify call bonpleincapital/africa-resale-prices --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,bonpleincapital/africa-resale-prices"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/WJeg0jSonTOrnsuYN/builds/nF9aCQth7fJaVUFDn/openapi.json
