Documentation

Information

This is a consumption-only API only the HTTP GET method is available on resources.

No authentication is required to access this API, and all resources are fully open and available. Since the move to static hosting in January 2022, rate limiting has been removed entirely, but we still encourage you to limit the frequency of requests to limit our hosting costs.

Fair Use Policy

PvZ API is free and open to use. It is also very popular. Because of this, we ask every developer to abide by our fair use policy. People not complying with the fair use policy will have their IP address permanently banned.

PvZ API is primarily an educational tool, and we will not tolerate denial of service attacks divventing people from learning.

Rules:

  • Locally cache resources whenever you request them.
  • Be nice and friendly to your fellow PvZ API developers.

Plants (endpoint)

Inorder to get the plants-names with the help of PVZ API use the below http-address

https://pvz-2-api.vercel.app/api/plants

The above link returns a list of all plant's name in Plants vs Zombies

Plant Information (endpoint)

Inorder to get the specific plant-information with the help of PVZ API use the below http-address

https://pvz-2-api.vercel.app/api/plants/[plant_name]

Replace plant_name with Plant to be searched . Then the above link returns a json file of information about the specific plant
Example: https://pvz-2-api.vercel.app/api/plants/aloe

Areas (endpoint)

Inorder to get the areas-names with the help of PVZ API use the below http-address

https://pvz-2-api.vercel.app/api/areas

The above link returns a list of all area's name in Plants vs Zombies

Area Information (endpoint)

Inorder to get the specific area-information with the help of PVZ API use the below http-address

https://pvz-2-api.vercel.app/api/areas/[area_name]

Replace area_name with Area to be searched . Then the above link returns a json file of information about the specific area-name
Example: https://pvz-2-api.vercel.app/api/areas/player's%20house

Zombies (endpoint)

Inorder to get the zombies-names with the help of PVZ API use the below http-address

https://pvz-2-api.vercel.app/api/zombies

The above link returns a list of all zombies name in Plants vs Zombies

Zombie Information (endpoint)

Inorder to get the specific zombie-information with the help of PVZ API use the below http-address

https://pvz-2-api.vercel.app/api/zombies/[zombie_name]

Replace zombie_name with Zombie to be searched . Then the above link returns a json file of information about the specific zombie.
Example: https://pvz-2-api.vercel.app/api/zombies/basic%20zombie

Found bugs?