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
  • 2,784
  • 6
  • 28
  • 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
  • 37,888
  • 9
  • 76
  • 132