Importer-Exporter Details API
apisetu · Government
The Importer-Exporter Code (IEC), issued by Directorate General of Foreign Trade (DGFT), is a key business identification number which is mandatory for Exports or Imports. This API can be used to get details of a importer-exporter by importer-exporter code.
Authentication
Sample Requests
Description of Importer-Exporter Code (IEC) Verification API.
Hover any highlighted part to learn what it does
curl -X GET "https://api.apis.guru/v2/specs/apisetu.gov.in/dgft/3.0.0/v1/iec/{iec}"import requests
response = requests.get(
"https://api.apis.guru/v2/specs/apisetu.gov.in/dgft/3.0.0/v1/iec/{iec}",
)
print(response.json())const url = 'https://api.apis.guru/v2/specs/apisetu.gov.in/dgft/3.0.0/v1/iec/{iec}';
const response = await fetch(url);
const data = await response.json();
console.log(data);package main
import (
"fmt"
"io"
"net/http"
)
func main() {
targetURL := "https://api.apis.guru/v2/specs/apisetu.gov.in/dgft/3.0.0/v1/iec/{iec}"
req, _ := http.NewRequest("GET", targetURL, nil)
client := &http.Client{}
resp, _ := client.Do(req)
defer resp.Body.Close()
body, _ := io.ReadAll(resp.Body)
fmt.Println(string(body))
}require "net/http"
require "json"
uri = URI("https://api.apis.guru/v2/specs/apisetu.gov.in/dgft/3.0.0/v1/iec/{iec}")
http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = uri.scheme == "https"
req = Net::HTTP::Get.new(uri)
res = http.request(req)
puts JSON.parse(res.body)<?php
$url = "https://api.apis.guru/v2/specs/apisetu.gov.in/dgft/3.0.0/v1/iec/{iec}";
$opts = ["http" => [
"method" => "GET",
]];
$ctx = stream_context_create($opts);
$res = file_get_contents($url, false, $ctx);
print_r(json_decode($res, true));Postman Setup Guide
- See official documentation for authentication and setup.
What can you build with Importer-Exporter Details API?
Importer-Exporter Details API is a Government API. Developers commonly use government APIs for:
- surfacing public datasets in citizen-facing apps
- building transparency and civic engagement tools
- accessing legislation, court records, and official data
- powering research and journalism tools
- creating compliance and regulatory monitoring dashboards
No authentication required. This API is open — no signup or key needed. Ideal for quick prototypes and public-facing features. Importer-Exporter Details API is free to use, making it a low-risk choice to experiment with.
New to APIs? Read our beginner's guide · Learn about API keys · What is REST?