Revenue Geographic Segmentation
Obtain revenue by geographic segmentation (e.g. United States, Europe, Asia).
Note that this information requires a Premium FMP subscription.
Also known as: revenue by region, geographic revenue breakdown.
Revenue Geographic Segmentation in Python
get_revenue_geographic_segmentation is part of the Toolkit module of the open-source Finance Toolkit. Install it with:
pip install financetoolkit -U
Then call get_revenue_geographic_segmentation as shown below.
from financetoolkit import Toolkit
toolkit = Toolkit(
["AAPL", "MSFT", "GOOGL", "AMZN"], api_key="FINANCIAL_MODELING_PREP_KEY", start_date="2021-05-01", quarterly=False
)
geographic_segmentation = toolkit.get_revenue_geographic_segmentation()
geographic_segmentation.loc['AAPL']
Which returns:
| 2020 | 2021 | 2022 | 2023 | |
|---|---|---|---|---|
| Americas | 4.631e+10 | 5.1496e+10 | 4.9278e+10 | 3.5383e+10 |
| Asia Pacific | 8.225e+09 | 9.81e+09 | 9.535e+09 | 5.63e+09 |
| China | 2.1313e+10 | 2.5783e+10 | 2.3905e+10 | 1.5758e+10 |
| Europe | 2.7306e+10 | 2.9749e+10 | 2.7681e+10 | 2.0205e+10 |
| Japan | 8.285e+09 | 7.107e+09 | 6.755e+09 | 4.821e+09 |
Parameters
get_revenue_geographic_segmentation accepts the following parameters:
- overwrite (bool): Defines whether to overwrite the existing data.
- show_columns (list[str] | None): A list of column names to keep in the result. Invalid names are reported and ignored. Defaults to None, which keeps every column.