Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
| api:geoip [2017-07-04T23:07:10Z] – fusl | api:geoip [2018-02-17T14:28:23Z] (current) – [Variable parameters] add bl kewlfft | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ===== Tier 2 GeoIP API ====== | + | ====== Tier 2 GeoIP API ======= | 
| The GeoIP API returns a list of the nearest OpenNIC [[opennic: | The GeoIP API returns a list of the nearest OpenNIC [[opennic: | ||
| Line 16: | Line 16: | ||
| ^ Parameter ^ Function ^ Example ^ | ^ Parameter ^ Function ^ Example ^ | ||
| - | | list | (default) List servers including name and reliability | < | + | ^ list | (default) List servers including name and reliability | < | 
| 62.113.203.55 # ns1.de # 99.41%</ | 62.113.203.55 # ns1.de # 99.41%</ | ||
| - | | bare | Only list the server IP addresses | < | + | ^ bare | Only list the server IP addresses | < | 
| 62.113.203.55</ | 62.113.203.55</ | ||
| - | | ns | Create a list of nameservers | < | + | ^ ns | Create a list of nameservers | < | 
| nameserver 62.113.203.55 | nameserver 62.113.203.55 | ||
| - | | resolv | Provide a useable resolv.conf file | < | + | ^ resolv | Provide a useable resolv.conf file | < | 
| # and shows the most reliable servers near you. | # and shows the most reliable servers near you. | ||
| # You may retrieve updates automatically by using: | # You may retrieve updates automatically by using: | ||
| Line 31: | Line 31: | ||
| nameserver 87.98.175.85 | nameserver 87.98.175.85 | ||
| nameserver 62.113.203.55 | nameserver 62.113.203.55 | ||
| - | | json | Generate JSON data | < | + | ^ json | Generate JSON data | < | 
| - | | jsonp | Generate a JSON array | < | + | ^ jsonp | Generate a JSON array | < | 
| ==== Variable parameters ==== | ==== Variable parameters ==== | ||
| Line 38: | Line 38: | ||
| ^ Parameter ^ Example Value 1 ^ Example Value 2 ^ Description ^ | ^ Parameter ^ Example Value 1 ^ Example Value 2 ^ Description ^ | ||
| - | | adm | 2 | 5 | The first x servers will have unique admins (Defaults to 66% of the list) | | + | ^ adm | 2 | 5 | The first x servers will have unique admins (Defaults to 66% of the list) | | 
| - | | ip | 1.2.3.4 | 123.45.67.89 | Provide servers nearest the given IP address | | + | ^ ip | 1.2.3.4 | 123.45.67.89 | Provide servers nearest the given IP address | | 
| - | | res | 2 | 5 | Change the number of results | | + | ^ res | 2 | 5 | Change the number of results | | 
| - | | pct | 95 | 50 | (default=95) Change the threshold percentage for acceptable server reliability, | + | ^ pct | 95 | 50 | (default=95) Change the threshold percentage for acceptable server reliability, | 
| - | | lat | 50 | -33.45 | Set the reference latitude for your location | | + | ^ lat | 50 | -33.45 | Set the reference latitude for your location | | 
| - | | lon | -50 | 33.45 | Set the reference longitude for your location | | + | ^ lon | -50 | 33.45 | Set the reference longitude for your location | | 
| - | | ipv | 4 | 6 | Specify which class of IP addresses to return. \\ 4 - Only list IPv4 servers \\ 6 - Only list IPv6 servers \\ all - Include both IPv4 and IPv6 servers | | + | ^ ipv | 4 | 6 | Specify which class of IP addresses to return. \\ 4 - Only list IPv4 servers \\ 6 - Only list IPv6 servers \\ all - Include both IPv4 and IPv6 servers | | 
| - | | rnd | true | | Randomize the returned server order (omit this parameter to disable randomization) | + | ^ rnd | true | false | Randomize the returned server order | | 
| - | | wl | all | none | Include whitelist servers in the results. \\ If you specify wl=all, ONLY whitelist servers will be shown. | | + | ^ wl | all | none | Include whitelist servers in the results. \\ If you specify wl=all, ONLY whitelist servers will be shown. | | 
| + | ^ bl | | | Include blocklist servers in the results | | ||
| + | ^ anon | true | false | Return servers with anonymized logs only | | ||
| ==== Examples ==== | ==== Examples ==== | ||