Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
sundowndev
GitHub Repository: sundowndev/phoneinfoga
Path: blob/master/web/docs/swagger.yaml
994 views
1
basePath: /api
2
definitions:
3
api.ErrorResponse:
4
properties:
5
error:
6
type: string
7
type: object
8
handlers.AddNumberInput:
9
properties:
10
number:
11
type: string
12
required:
13
- number
14
type: object
15
handlers.AddNumberResponse:
16
properties:
17
carrier:
18
type: string
19
country:
20
type: string
21
countryCode:
22
type: integer
23
e164:
24
type: string
25
international:
26
type: string
27
local:
28
type: string
29
rawLocal:
30
type: string
31
valid:
32
type: boolean
33
type: object
34
handlers.DryRunScannerInput:
35
properties:
36
number:
37
type: string
38
options:
39
$ref: '#/definitions/remote.ScannerOptions'
40
required:
41
- number
42
- options
43
type: object
44
handlers.DryRunScannerResponse:
45
properties:
46
error:
47
type: string
48
success:
49
type: boolean
50
type: object
51
handlers.GetAllScannersResponse:
52
properties:
53
scanners:
54
items:
55
$ref: '#/definitions/handlers.Scanner'
56
type: array
57
type: object
58
handlers.RunScannerInput:
59
properties:
60
number:
61
type: string
62
options:
63
$ref: '#/definitions/remote.ScannerOptions'
64
required:
65
- number
66
- options
67
type: object
68
handlers.RunScannerResponse:
69
properties:
70
result: {}
71
type: object
72
handlers.Scanner:
73
properties:
74
description:
75
type: string
76
name:
77
type: string
78
type: object
79
number.Number:
80
properties:
81
carrier:
82
type: string
83
country:
84
type: string
85
countryCode:
86
type: integer
87
e164:
88
type: string
89
international:
90
type: string
91
local:
92
type: string
93
rawLocal:
94
type: string
95
valid:
96
type: boolean
97
type: object
98
remote.GoogleSearchDork:
99
properties:
100
dork:
101
type: string
102
number:
103
type: string
104
url:
105
type: string
106
type: object
107
remote.GoogleSearchResponse:
108
properties:
109
disposable_providers:
110
items:
111
$ref: '#/definitions/remote.GoogleSearchDork'
112
type: array
113
general:
114
items:
115
$ref: '#/definitions/remote.GoogleSearchDork'
116
type: array
117
individuals:
118
items:
119
$ref: '#/definitions/remote.GoogleSearchDork'
120
type: array
121
reputation:
122
items:
123
$ref: '#/definitions/remote.GoogleSearchDork'
124
type: array
125
social_media:
126
items:
127
$ref: '#/definitions/remote.GoogleSearchDork'
128
type: array
129
type: object
130
remote.NumverifyScannerResponse:
131
properties:
132
carrier:
133
type: string
134
country_code:
135
type: string
136
country_name:
137
type: string
138
country_prefix:
139
type: string
140
international_format:
141
type: string
142
line_type:
143
type: string
144
local_format:
145
type: string
146
location:
147
type: string
148
number:
149
type: string
150
valid:
151
type: boolean
152
type: object
153
remote.OVHScannerResponse:
154
properties:
155
city:
156
type: string
157
found:
158
type: boolean
159
number_range:
160
type: string
161
zip_code:
162
type: string
163
type: object
164
remote.ScannerOptions:
165
additionalProperties: true
166
type: object
167
web.JSONResponse:
168
properties:
169
error:
170
type: string
171
message:
172
type: string
173
success:
174
type: boolean
175
type: object
176
web.ScanResultResponse:
177
properties:
178
error:
179
type: string
180
message:
181
type: string
182
result: {}
183
success:
184
type: boolean
185
type: object
186
web.getAllNumbersResponse:
187
properties:
188
error:
189
type: string
190
message:
191
type: string
192
numbers:
193
items:
194
$ref: '#/definitions/number.Number'
195
type: array
196
success:
197
type: boolean
198
type: object
199
web.healthResponse:
200
properties:
201
commit:
202
type: string
203
demo:
204
type: boolean
205
success:
206
type: boolean
207
version:
208
type: string
209
type: object
210
host: localhost:5000
211
info:
212
contact: {}
213
description: Advanced information gathering & OSINT framework for phone numbers.
214
license:
215
name: GNU General Public License v3.0
216
url: https://github.com/sundowndev/phoneinfoga/blob/master/LICENSE
217
title: PhoneInfoga REST API
218
version: v2
219
paths:
220
/:
221
get:
222
operationId: healthCheck
223
produces:
224
- application/json
225
responses:
226
"200":
227
description: OK
228
schema:
229
$ref: '#/definitions/web.healthResponse'
230
"500":
231
description: Internal Server Error
232
schema:
233
$ref: '#/definitions/web.JSONResponse'
234
summary: Check if service is healthy.
235
tags:
236
- General
237
/numbers:
238
get:
239
deprecated: true
240
description: This route is actually not used yet.
241
operationId: getAllNumbers
242
produces:
243
- application/json
244
responses:
245
"200":
246
description: OK
247
schema:
248
$ref: '#/definitions/web.getAllNumbersResponse'
249
summary: Fetch all previously scanned numbers.
250
tags:
251
- Numbers
252
/numbers/{number}/scan/googlesearch:
253
get:
254
deprecated: true
255
operationId: googleSearchScan
256
parameters:
257
- description: Input phone number
258
in: path
259
name: number
260
required: true
261
type: string
262
produces:
263
- application/json
264
responses:
265
"200":
266
description: OK
267
schema:
268
allOf:
269
- $ref: '#/definitions/web.ScanResultResponse'
270
- properties:
271
result:
272
$ref: '#/definitions/remote.GoogleSearchResponse'
273
type: object
274
"400":
275
description: Bad Request
276
schema:
277
$ref: '#/definitions/web.JSONResponse'
278
summary: Perform a scan using Google Search engine.
279
tags:
280
- Numbers
281
/numbers/{number}/scan/local:
282
get:
283
deprecated: true
284
operationId: localScan
285
parameters:
286
- description: Input phone number
287
in: path
288
name: number
289
required: true
290
type: string
291
produces:
292
- application/json
293
responses:
294
"200":
295
description: OK
296
schema:
297
allOf:
298
- $ref: '#/definitions/web.ScanResultResponse'
299
- properties:
300
result:
301
$ref: '#/definitions/number.Number'
302
type: object
303
"400":
304
description: Bad Request
305
schema:
306
$ref: '#/definitions/web.JSONResponse'
307
summary: Perform a scan using local phone number library.
308
tags:
309
- Numbers
310
/numbers/{number}/scan/numverify:
311
get:
312
deprecated: true
313
operationId: numverifyScan
314
parameters:
315
- description: Input phone number
316
in: path
317
name: number
318
required: true
319
type: string
320
produces:
321
- application/json
322
responses:
323
"200":
324
description: OK
325
schema:
326
allOf:
327
- $ref: '#/definitions/web.ScanResultResponse'
328
- properties:
329
result:
330
$ref: '#/definitions/remote.NumverifyScannerResponse'
331
type: object
332
"400":
333
description: Bad Request
334
schema:
335
$ref: '#/definitions/web.JSONResponse'
336
summary: Perform a scan using Numverify's API.
337
tags:
338
- Numbers
339
/numbers/{number}/scan/ovh:
340
get:
341
deprecated: true
342
operationId: ovhScan
343
parameters:
344
- description: Input phone number
345
in: path
346
name: number
347
required: true
348
type: string
349
produces:
350
- application/json
351
responses:
352
"200":
353
description: OK
354
schema:
355
allOf:
356
- $ref: '#/definitions/web.ScanResultResponse'
357
- properties:
358
result:
359
$ref: '#/definitions/remote.OVHScannerResponse'
360
type: object
361
"400":
362
description: Bad Request
363
schema:
364
$ref: '#/definitions/web.JSONResponse'
365
summary: Perform a scan using OVH's API.
366
tags:
367
- Numbers
368
/numbers/{number}/validate:
369
get:
370
deprecated: true
371
operationId: validate
372
parameters:
373
- description: Input phone number
374
in: path
375
name: number
376
required: true
377
type: string
378
produces:
379
- application/json
380
responses:
381
"200":
382
description: OK
383
schema:
384
$ref: '#/definitions/web.JSONResponse'
385
"400":
386
description: Bad Request
387
schema:
388
$ref: '#/definitions/web.JSONResponse'
389
summary: Check if a number is valid and possible.
390
tags:
391
- Numbers
392
/v2/numbers:
393
post:
394
consumes:
395
- application/json
396
description: This route returns information about a given phone number.
397
operationId: AddNumber
398
parameters:
399
- description: Request body
400
in: body
401
name: request
402
required: true
403
schema:
404
$ref: '#/definitions/handlers.AddNumberInput'
405
produces:
406
- application/json
407
responses:
408
"200":
409
description: OK
410
schema:
411
$ref: '#/definitions/handlers.AddNumberResponse'
412
"500":
413
description: Internal Server Error
414
schema:
415
$ref: '#/definitions/api.ErrorResponse'
416
summary: Add a new number.
417
tags:
418
- Numbers
419
/v2/scanners:
420
get:
421
description: This route returns all available scanners.
422
operationId: GetAllScanners
423
produces:
424
- application/json
425
responses:
426
"200":
427
description: OK
428
schema:
429
$ref: '#/definitions/handlers.GetAllScannersResponse'
430
summary: Get all available scanners.
431
tags:
432
- Numbers
433
/v2/scanners/{scanner}/dryrun:
434
post:
435
consumes:
436
- application/json
437
description: This route performs a dry run with the given phone number. This
438
doesn't perform an actual scan.
439
operationId: DryRunScanner
440
parameters:
441
- description: Request body
442
in: body
443
name: request
444
required: true
445
schema:
446
$ref: '#/definitions/handlers.DryRunScannerInput'
447
- description: Scanner name
448
in: path
449
name: scanner
450
required: true
451
type: string
452
produces:
453
- application/json
454
responses:
455
"200":
456
description: OK
457
schema:
458
$ref: '#/definitions/handlers.DryRunScannerResponse'
459
"404":
460
description: Not Found
461
schema:
462
$ref: '#/definitions/api.ErrorResponse'
463
"500":
464
description: Internal Server Error
465
schema:
466
$ref: '#/definitions/api.ErrorResponse'
467
summary: Dry run a single scanner
468
tags:
469
- Numbers
470
/v2/scanners/{scanner}/run:
471
post:
472
consumes:
473
- application/json
474
description: This route runs a single scanner with the given phone number
475
operationId: RunScanner
476
parameters:
477
- description: Request body
478
in: body
479
name: request
480
required: true
481
schema:
482
$ref: '#/definitions/handlers.RunScannerInput'
483
- description: Scanner name
484
in: path
485
name: scanner
486
required: true
487
type: string
488
produces:
489
- application/json
490
responses:
491
"200":
492
description: OK
493
schema:
494
$ref: '#/definitions/handlers.RunScannerResponse'
495
"404":
496
description: Not Found
497
schema:
498
$ref: '#/definitions/api.ErrorResponse'
499
"500":
500
description: Internal Server Error
501
schema:
502
$ref: '#/definitions/api.ErrorResponse'
503
summary: Run a single scanner
504
tags:
505
- Numbers
506
schemes:
507
- http
508
- https
509
swagger: "2.0"
510
511