Skip to main content
You can export file lists (including Google Drive) directly from the UI. Refer to this guide only when you want to export using the API.

API

We provide a public API so you can use the retrieved data however you like. For details on the available API endpoints, see the API documentation. You can also access it from Settings > API Keys > “API Documentation”. API documentation screen

API for File Export

Get files for a service in an organization is the API endpoint for exporting file data. GET https://api.itmc.i.moneyforward.com/api/v1/organizations/`{organizationId}`/services/`{serviceId}`/files This returns a list of files for the specified ServiceID. organizationId is the ID assigned to each individual tenant.

Preparing Your Execution Environment

  • Web API execution environment Prepare an environment to call the Web API. Options include Python and CLI (curl). This guide uses the following Chrome extension: Talend API Tester - Free Edition
  • File conversion tool Convert the JSON output from the API to CSV or Excel format. A service like the following works well: JSON to CSV Converter

Steps (Exporting the Google Drive Public File List)

Finding Your OrganizationID

The Organization ID shown under Settings > API Keys is your OrganizationID. Copy it for later use. Organization ID screen

Generating an API Key

  1. Go to Settings > API Keys and click Generate API Key.
  2. On the “Generate API Key” screen, enter a name for the key and click Generate. API key generation screen
  3. Your API key will be issued. Copy and save it. Note: This key is required to call the API. It is displayed only once, so save it before closing the dialog. API key display screen

Finding the Service ID

Find the ServiceID for the service whose file data you want to retrieve. Click on the relevant service and check the URL to see its ServiceID. ServiceID confirmation screen For Google Drive, the ServiceID is 384.

Running the API

Start your Web API execution environment and call the API.
curl -i -X GET -H "Authorization:Bearer <API key>" https://api.itmc.i.moneyforward.com/api/v1/organizations/{organizationID}/services/384/files'
This outputs Google Drive files (up to 200 items).
Below is a sample execution using Talend API Tester - Free Edition. Talend API Tester execution example

Setting Authentication Credentials

Set the authentication credentials to access the service as follows: Authorization:Bearer <API key>

Specifying Query Parameters

You can filter the output by specifying query parameters. For example, you can limit results to files owned by admins or files shared publicly. The available query parameters are listed below.
limit=10
sharingStatus=pubilc
https://api.itmc.i.moneyforward.com/api/v1/organizations/99579724/services/384/files?limit=10&sharingStatus=pubilc
ParameterDescription
keywordFilter by a keyword in the file name.
workspaceIdFilter by workspace ID to retrieve files from a specific workspace.
sharingStatusFilter by sharing status.
"public": Files shared with everyone
"shared": Files shared externally
limitSet the number of results. Maximum is 200. Defaults to 50 if not specified.
Example: limit=50
sortBySort results by the specified field. Available sort fields:
"fileName": File name
"source": Source SaaS
"sharingStatus": Sharing status
"creationDate": File creation date
"workspaceId": Workspace ID
"workspaceName": Workspace name
FileTypeFilter by type.
"file": Retrieve files only
"folder": Retrieve folders only
ownersFilter by file owner (email address).
sortOrderSet the sort direction.
"DESC": Descending
"ASC": Ascending

Checking the Results

When the API call succeeds, results appear in the Body section. Execution results screen
  • Meta > nextCursor When more than 200 results are returned, use this cursor to retrieve items 201 and beyond. Pass the nextCursor value as a query parameter to retrieve the next page of results.
  • Item: Details for each individual file.

Exporting JSON and Converting to CSV

Download the results to save them as a JSON file. Then convert the downloaded JSON file to CSV format. Visit a service such as JSON to CSV Converter, upload the JSON file, and download the resulting CSV. JSON to CSV Converter screen
Last modified on July 14, 2026