Skip to content

Endpoints

Tamim Hamoudi edited this page Feb 7, 2024 · 5 revisions

You mainly have two endpoints.

/api/powers

This endpoint is used to fetch Psychonauts Psi-powers!

The endpoints support only two quires:

limit which is used to limit the number of powers

name regex query that returns to you a single result based on your search query parameters, meaning it cannot be used with the limit query.

Example:

Get all powers:

https://psychonauts-api.vercel.app/api/powers

Limit:

https://psychonauts-api.vercel.app/api/powers?limit=2

Get power by name

For more psi Powers suggestions search on: Psychonauts Fandom wiki

https://psychonauts-api.vercel.app/api/powers?name=pyro

/api/characters

This endpoint is used to fetch Psychonauts characters.

The endpoints support only three quires:

limit which is used to limit the number of powers

gender which is used to fetch a list of characters based on their gender. Note: can be used with limit.

name regex query that returns to you a single result based on your search query parameters, meaning it cannot be used with the limit query.

Example:

Get all characters:

https://psychonauts-api.vercel.app/api/characters

Limit:

https://psychonauts-api.vercel.app/api/characters?limit=5

Get characters based on gender:

Note: Only female and male are available for now.

https://psychonauts-api.vercel.app/api/characters?gender=female

Get characters with gender and limit:

https://psychonauts-api.vercel.app/api/characters?limit=5&gender=female

Get a character by name:

For more characters suggestions search on: Psychonauts Fandom wiki

https://psychonauts-api.vercel.app/api/powers?name=raz