> ## Documentation Index
> Fetch the complete documentation index at: https://docs.countrystatecity.in/llms.txt
> Use this file to discover all available pages before exploring further.

# Getting Started with the Export Tool

> Complete guide to signing up, understanding credits, and creating your first custom geographical data export in minutes.

Get up and running with custom geographical data exports in just a few minutes. This guide walks you through account setup, understanding the credit system, and creating your first export.

## Step 1: Create Your Account

Choose your preferred sign-up method to get started with free trial credits.

> [tab] GitHub Sign-Up
>
> **Quick One-Click Registration**
>
> 1. Visit [CSC Export Tool](https://export.countrystatecity.in)
>
> 2. Click "Sign up with GitHub"
>
> 3. Authorize the application
>
> 4. You're ready to go!
>
> > [!TIP]
> >
> > **Instant Setup**: Your account is created immediately with free trial credits added automatically.

> [tab] Email Sign-Up
>
> **Magic Link Authentication**
>
> 1. Visit [CSC Export Tool](https://export.countrystatecity.in)
>
> 2. Click "Sign up with Email"
>
> 3. Enter your email address
>
> 4. Check your inbox for the magic link
>
> 5. Click the link to complete registration
>
> > [!TIP]
> >
> > **No Password Required**: We use secure magic links for authentication - no need to remember another password!

## Step 2: Understanding the Credit System

Credits are the currency used to generate exports. Here's everything you need to know:

### How Credits Work

> [card] Dataset Costs
>
> **Per Dataset**
>
> * Countries: 1 credit
> * States: 3 credits
> * Cities: 4 credits

> [card] Format Costs
>
> **Additional Format Fees**
>
> * JSON / NDJSON / XML / YAML: +2 credits
> * CSV / Markdown: +3 credits
> * SQL: +4 credits
> * Excel (.xlsx) / GeoJSON: +4 credits
> * PostgreSQL / SQL Server / SQLite3: +5 credits
> * MongoDB Extended JSON: +3 credits

### Credit Calculation Examples

> [accordion] Simple Country Export
>
> **Scenario**: Countries data in JSON format
>
> * Countries dataset: 1 credit
> * JSON format: +2 credits
> * **Total: 3 credits**
>
> Perfect for basic country dropdowns in web forms.

> [accordion] E-commerce Checkout
>
> **Scenario**: Countries with states data in JSON format
>
> * Countries dataset: 1 credit
> * States dataset: 3 credits
> * JSON format: +2 credits
> * **Total: 6 credits**
>
> Ideal for multi-level location selection in checkout forms.

> [accordion] Analytics Dashboard
>
> **Scenario**: All datasets in CSV format for Excel analysis
>
> * Countries dataset: 1 credit
> * States dataset: 3 credits
> * Cities dataset: 4 credits
> * CSV format: +3 credits
> * **Total: 11 credits**
>
> Great for comprehensive data analysis and visualization.

> [accordion] Database Migration
>
> **Scenario**: Countries data ready for PostgreSQL import (dialect-specific schema)
>
> * Countries dataset: 1 credit
> * PostgreSQL format: +5 credits
> * **Total: 6 credits**
>
> Perfect for populating database tables with geographical data.

### Free Trial Credits

> [!NOTE]
>
> **Every new user receives free trial credits** to test the system and explore different export options before purchasing additional credits.

> [card] [View Pricing & Credit Packages](https://countrystatecity.in/pricing)
>
> See how many trial credits you get and compare credit packages

## Step 3: Your First Export

Let's create a simple countries export to get familiar with the process.

**1. Select Dataset**

1. Log into your account
2. Click "Create New Export"
3. Under "Datasets," select **Countries**
4. You'll see "1 credit" cost indicator

**2. Choose Fields**

Select the specific data fields you need:

**Recommended for first export:**

* `name` - Country name
* `iso2` - 2-letter country code
* `currency` - Currency code
* `phone_code` - International dialing code

> [!TIP]
>
> **Start Simple**: Choose 4-5 essential fields for your first export to see how the system works.

**3. Select Format**

Choose **JSON** for your first export - it works great for web applications.

```json JSON Output Preview theme={null}
{
  "countries": [
    {
      "name": "United States",
      "iso2": "US",
      "currency": "USD",
      "phone_code": "1"
    },
    {
      "name": "Canada",
      "iso2": "CA",
      "currency": "CAD",
      "phone_code": "1"
    }
  ]
}
```

```csv Alternative: CSV Format theme={null}
name,iso2,currency,phone_code
United States,US,USD,1
Canada,CA,CAD,1
```

**4. Preview & Confirm**

1. Click **"Preview Export"** to see a sample of your data
2. Review the credit cost displayed
3. If satisfied, click **"Create Export"**

> [!WARNING]
>
> **Credit Deduction**: Credits are deducted only when you click "Create Export," not during preview.

**5. Download Your Data**

1. Wait for processing (usually 10-30 seconds)
2. Click **"Download ZIP"** when ready
3. Extract the ZIP file to access your JSON data

> [!TIP]
>
> **Success!** You've created your first custom geographical data export.

## Managing Your Credits

### Checking Your Balance

> [tab] Dashboard View
>
> Your credit balance is prominently displayed on the main dashboard:
>
> * Current credits remaining
> * Recent transaction history
> * Usage patterns and recommendations

> [tab] Account Page
>
> Access detailed credit information:
>
> * Complete transaction history
> * Credit purchase receipts
> * Usage analytics and insights
> * Upcoming credit expiration (credits never expire!)

### When You Need More Credits

> [card] [View Credit Packages](https://countrystatecity.in/pricing)
>
> Compare credit packages and find the best option for your needs

### Purchasing Credits

> [card] [View Pricing & Purchase Credits](https://countrystatecity.in/pricing)
>
> Choose from flexible credit packages and purchase securely

**Payment Features:**

* Powered by Dodo Payments
* Major credit cards accepted
* Secure, encrypted transactions
* Credits added instantly to your account

## Account Dashboard Overview

Your dashboard provides everything you need to manage exports and credits:

### Main Features

> [accordion] Export History
>
> * View all previous exports
> * Re-download files for 30 days
> * See credit costs for each export
> * Track usage patterns over time

> [accordion] Credit Management
>
> * Current balance display
> * Purchase history with receipts
> * Usage analytics and recommendations
> * No expiration dates on credits

> [accordion] Account Settings
>
> * Personal information management
> * Email notification preferences
> * API access (coming soon)
> * Security settings and login methods

## Next Steps

Now that you've got the basics down, explore these advanced features:

> [card] [Explore Use Cases](https://docs.countrystatecity.in/tools/export-tool/use-cases.md)
>
> See real-world examples for e-commerce, mobile apps, and analytics

> [card] [Learn Export Formats](https://docs.countrystatecity.in/tools/export-tool/formats.md)
>
> Deep dive into JSON, CSV, XML, YAML, and SQL format options

## Common Getting Started Questions

> [accordion] How quickly can I create an export?
>
> Most users complete their first export within 2-3 minutes of signing up. The process is designed to be intuitive and fast.

> [accordion] What if I make a mistake in my export?
>
> Use the preview feature before confirming to see exactly what you'll get. Preview is free and doesn't use credits.

> [accordion] Can I modify an export after creating it?
>
> You'll need to create a new export for different fields or formats. However, you can re-download the same export for 30 days.

> [accordion] What happens if I run out of credits?
>
> Simply purchase more credits - they're added instantly to your account and never expire.

***

> [!NOTE]
>
> **Ready to create more exports?** Check out our [use cases guide](https://docs.countrystatecity.in/tools/export-tool/use-cases.md) for inspiration and practical examples.


## Related topics

- [Export Tool FAQ](https://docs.countrystatecity.in/tools/export-tool/faq.md)
- [Getting Started with the Update Tool](https://docs.countrystatecity.in/tools/update-tool/getting-started.md)
- [Export Tool Overview](https://docs.countrystatecity.in/tools/export-tool/index.md)
- [Country State City](https://docs.countrystatecity.in/index.md)
- [Use Cases](https://docs.countrystatecity.in/tools/export-tool/use-cases.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.