1

If I have an online database containing data about people (name, age, country etc), and then I create a page that displays information of it, and save it as: mywebsite.com/api/get_person_information/person_id This page would simply display a serialized array (php) with information of a table's row (which primary key value should be replaced in 'person_id'). Could that be considered an Web API?

user1091856
  • 3,032
  • 6
  • 31
  • 42

1 Answers1

3

A web API is anything that lets other people make an application reusing components of your application or your data. That would make exposing your data in a machine-readable way an API.

(You might want to use a more popular format to expose said data instead of PHP's variable dump syntax.)

millimoose
  • 39,073
  • 9
  • 82
  • 134