Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Get an API key
Free tier, no form to fill in. Signing in shares your email address with us — we
store it to create your key and to recognise you if you sign in with another
provider. By signing up you are subscribing to the APIs.io and API Evangelist
newsletters — you can unsubscribe from any issue. See our
Privacy Policy and Terms.
openapi: 3.2.0
info:
title: pentest-tools.com REST Wordlists API
version: 1.0.1.1
description: Operations done on Wordlists
servers:
- url: https://api.pentest-tools.com/api/v2
description: Recommended (auto-routes by API key region)
- url: https://app-us.pentest-tools.com/api/v2
description: US region (direct)
- url: https://app.pentest-tools.com/api/v2
description: Europe region (direct)
security:
- bearerAuth: []
tags:
- name: wordlists
x-displayName: Wordlists
description: Operations done on Wordlists
paths:
/wordlists:
get:
summary: Get all wordlists
operationId: get_wordlists
tags:
- wordlists
responses:
200:
description: OK
content:
application/json:
schema:
type: object
required:
- data
properties:
data:
type: array
items:
$ref: '#/components/schemas/Wordlist'
401:
$ref: '#/components/responses/UnauthorizedError'
403:
$ref: '#/components/responses/ForbiddenError'
429:
$ref: '#/components/responses/TooManyRequestsError'
500:
description: Internal server error
/wordlists/{id}:
get:
summary: Get wordlist information by ID
operationId: get_wordlist
tags:
- wordlists
parameters:
- name: id
in: path
description: id of wordlist to get
required: true
schema:
type: integer
description: Get the details of a wordlist. For contents, use `/wordlists/{id}/contents`
responses:
200:
description: OK
content:
application/json:
schema:
type: object
required:
- data
properties:
data:
$ref: '#/components/schemas/Wordlist'
401:
$ref: '#/components/responses/UnauthorizedError'
403:
$ref: '#/components/responses/ForbiddenError'
404:
$ref: '#/components/responses/ObjectNotFoundError'
429:
$ref: '#/components/responses/TooManyRequestsError'
500:
description: Internal server error
delete:
summary: Delete a wordlist
operationId: delete_wordlist
tags:
- wordlists
parameters:
- name: id
in: path
description: id of wordlist to get
required: true
schema:
type: integer
responses:
204:
description: OK
401:
$ref: '#/components/responses/UnauthorizedError'
403:
$ref: '#/components/responses/ForbiddenError'
404:
$ref: '#/components/responses/ObjectNotFoundError'
429:
$ref: '#/components/responses/TooManyRequestsError'
500:
description: Internal server error
/wordlists/{id}/contents:
get:
summary: Get wordlist contents by ID
operationId: get_wordlist_contents
tags:
- wordlists
parameters:
- name: id
in: path
description: id of wordlist to get
required: true
schema:
type: integer
responses:
200:
description: OK
content:
text/plain:
schema:
$ref: '#/components/schemas/WordlistsContents'
401:
$ref: '#/components/responses/UnauthorizedError'
403:
$ref: '#/components/responses/ForbiddenError'
404:
$ref: '#/components/responses/ObjectNotFoundError'
429:
$ref: '#/components/responses/TooManyRequestsError'
500:
description: Internal server error
components:
responses:
ObjectNotFoundError:
description: The object with the given ID was not found
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
UnauthorizedError:
description: API key is missing or invalid
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
ForbiddenError:
description: You can"t perform this action.
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
TooManyRequestsError:
description: Too many requests made in a short period of time
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
schemas:
Wordlist:
additionalProperties: false
type: object
properties:
id:
readOnly: true
type: integer
example: 1
name:
type: string
example: URL Fuzzer (default)
description:
type:
- string
- 'null'
example: This is the standard wordlist used by URL Fuzzer
num_words:
type: integer
example: 254
predefined:
type: boolean
example: true
ErrorResponse:
type: object
additionalProperties: false
properties:
status:
type: integer
example: 401
message:
type: string
example: No API key specified
WordlistsContents:
type: string
example: 'root
cisco
admin
test'
securitySchemes:
bearerAuth:
type: http
scheme: bearer
description: Use the "API key" from the [profile page](https://app.pentest-tools.com/account/api) as the token