FedEx Logo

FedEx Go API

Connect with FedEx Using Go and EasyPost

Using Go to Integrate with FedEx?

You can't do it through FedEx. They use SOAP/XML for their endpoints with absolutely no client libraries or documentation to support you, but you can use Easypost to connect to FedEx today using Go.

With EasyPost's FedEx Go API, you can:

  • Print labels at the industry's lowest price
  • Track every outbound (or inbound) package
  • Verify every address, domestic or international
  • Shop for rates across your shipping accounts
  • Automate package insurance with low premiums
package example

import (
	"os"

	"github.com/EasyPost/easypost-go/v2"
)

func main() {
	apiKey := os.Getenv("EASYPOST_API_KEY")
	client := easypost.New(apiKey)

	address, _ := client.CreateAddress(&easypost.Address{}, &easypost.CreateAddressOptions{})

	parcel, _ := client.CreateParcel(
		&easypost.Parcel{
			PredefinedPackage: "Parcel",
			Weight:            28,
		},
	)

	shipment, _ := client.CreateShipment(
		&easypost.Shipment{
			ToAddress:   address,
			FromAddress: address,
			Parcel:      parcel,
		},
	)

	_, _ = client.BuyShipment(shipment.ID, shipment.Rates[0], "")
}

Tracking Packages

Track packages across all major carriers.

Learn more

Address Verification

Validate domestic and international addresses.

Learn more

International & Customs

Learn how to handle international shipping seamlessly.

Learn more

Shipping Insurance

Shipping insurance for all items sent with EasyPost.

Learn more

Leading companies rely on EasyPost

QALO

QALO uses EasyPost's API to automate their returns for an unbeatable customer experience.

EP&V

With EasyPost's API, Expedited Passports & Visas cut their operational load in half.

Casper

Casper sped up their European launch thanks to EasyPost's support of over 30+ European carriers.

EasyPost in the News

Bloomberg logo
Entrepreneur logo
NY Times logo
Tech Crunch logo

Connect to EasyPost Today

Sign up and start shipping in the same day with our Go Library. If you have any questions, or if you want to talk logistics, feel free to reach out to one of our shipping experts.