Authentication


Your API token is used to authenticate you with our API and can be provided either as an HTTP Basic Auth username, a bearer token, or alternatively as a token URL parameter.


# With Basic Auth
$ curl -u token: api.ip.cc

# With Bearer token
$ curl -H "Authorization: Bearer token" api.ip.cc

# With token query parameter
$ curl api.ip.cc?token=token


It's also possible to use the API without authentication in a more limited capacity.

Authentication


Your API token is used to authenticate you with our API and can be provided either as an HTTP Basic Auth username, a bearer token, or alternatively as a token URL parameter.


# With Basic Auth
$ curl -u token: api.ip.cc

# With Bearer token
$ curl -H "Authorization: Bearer token" api.ip.cc

# With token query parameter
$ curl api.ip.cc?token=token


It's also possible to use the API without authentication in a more limited capacity.