ddnspod.github.io

IPv6 DDNSPod Free API

This service offers a REST API allowing to get a visitor IPv4&IPv6 address and to query location information from any Only-IPv6 address, It outputs JSON-encoded IP geolocation data.

1. GetIP (Get IPv4&IPv6 address in plain text format):

1.1 Returns the visitor IPv4&IPv6 address in plain text, useful for shell scripts or to find the external Internet routable address.

2. Splicing IPv6 (Get appending IPv6 address in plain text format):

2.1 Calling the API endpoint without any parameter will return IPv6 prefix for the visitor:

2.2 Get IPv6 prefix for the visitor and Appending an IPv6 suffix as parameter return this IPv6 address:

3. GeoIP (Get IPv6 address location in JSON format):

3.1 Calling the API endpoint without any parameter will return location information for the visitor IPv6 address:

3.2 Appending an IP address as parameter will return location information for this IPv6 address:

3.3 The output is a JSON object containing the following elements:

{
"ipv6":"2400:3200::1",
"full":"2400:3200:0000:0000:0000:0000:0000:0001",
"range":{
	"start":"2400:3200::",
	"end":  "2400:3200:15ff:ffff::"
	},
"cidr":"2400:3200::/35",
"addr":{
	"location":"中国 浙江省 杭州市",
	"isp":     "阿里云计算有限公司"
	},
"disp":"中国 浙江省 杭州市 阿里云",
"timestamp":"1711641279443"
}
ParameterDescription
ipv6Visitor IPv6 address, or IPv6 address specified as parameter.
fullIPv6 full 128-bit notation.
range->startThe start IPv6 prefix for an IPv6 address range.
range->endThe end IPv6 prefix for an IPv6 address range.
cidrThe CIDR notation for an IPv6 addresses range.
addr->locationName of the country,province,city,region.
addr->ispISP name.
dispLocation + ISP name.
timestampThe current timestamp.

4. IPv6 Range to CIDR

4.1 Use CIDR notation to provide information about a given IPv6 address range.

{
  "start":"2400:3200::",
  "end":  "2400:3200:ffff::",
  "cidr": "2400:3200::/32"
}

5. Get Timestamp

5.1 The default is the millisecond timestamp:

Errors

Client Errors

When incorrect user input is entered, the server returns an Error, along with a JSON-encoded error message.

©2019- DDNSPod. All Rights Reserved.1

浙ICP备17019137号