You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+55Lines changed: 55 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -123,6 +123,61 @@ console.log(ipinfo.country)
123
123
// United States
124
124
```
125
125
126
+
### Core API
127
+
128
+
The library also supports the [Core API](https://ipinfo.io/developers/data-types#core-data), which provides city-level geolocation with nested geo and AS objects. Authentication with your token is required.
129
+
130
+
```typescript
131
+
import { IPinfoCoreWrapper } from "node-ipinfo";
132
+
133
+
const ipinfoWrapper = new IPinfoCoreWrapper("MY_TOKEN");
The library also supports the [Plus API](https://ipinfo.io/developers/data-types#plus-data), which provides enhanced data including mobile carrier info and privacy detection. Authentication with your token is required.
146
+
147
+
```typescript
148
+
import { IPinfoPlusWrapper } from "node-ipinfo";
149
+
150
+
const ipinfoWrapper = new IPinfoPlusWrapper("MY_TOKEN");
The library also supports the [Residential Proxy API](https://ipinfo.io/developers/residential-proxy-api), which allows you to check if an IP address is a residential proxy. Authentication with your token is required.
165
+
166
+
```typescript
167
+
import { IPinfoWrapper } from "node-ipinfo";
168
+
169
+
const ipinfoWrapper = new IPinfoWrapper("MY_TOKEN");
0 commit comments