Skip to content
This repository has been archived by the owner on Aug 29, 2022. It is now read-only.

codinasion-archive/public-api

Repository files navigation

Public API

Free and Open Source fake API for testing and prototyping

License Github Repo Size Github Contributors Github Last Commit

rainbow hr

Note This repository contains the source code of pubapi.vercel.app

rainbow hr

Contributing

See the contributing guide for detailed instructions on how to get started with our project.

rainbow hr

Sample API

  • Person Data

    fetch("https://pubapi.vercel.app/api/person")
      .then((response) => response.json())
      .catch((error) => console.log(error));
    [
      {
        "name": "Alice Rojas",
        "phone": "(104) 194-4167",
        "email": "quam.vel@hotmail.org",
        "address": "4288 Ut Rd.",
        "postalZip": "6213",
        "region": "Gelderland",
        "country": "Ukraine"
      },
      ...
    ]
  • Fruit Data

    fetch("https://pubapi.vercel.app/api/fruit")
      .then((response) => response.json())
      .catch((error) => console.log(error));
    [
      {
        "name": "Apple",
        "image": "https://upload.wikimedia.org/wikipedia/commons/thumb/1/15/Red_Apple.jpg/265px-Red_Apple.jpg",
        "price": 35
      },
      ...
    ]
  • Country Data

    fetch("https://pubapi.vercel.app/api/country")
      .then((response) => response.json())
      .catch((error) => console.log(error));
    [
      {
        "name": "Afghanistan",
        "code": "AF"
      },
      ...
    ]
  • Color Data

    fetch("https://pubapi.vercel.app/api/color")
      .then((response) => response.json())
      .catch((error) => console.log(error));
    [
      {
        "color": "black",
        "code": {
          "rgba": [255, 255, 255, 1],
          "hex": "#000"
        }
      },
      ...
    ]
rainbow hr

Join us in discussions

We use GitHub Discussions to talk about all sorts of topics related to documentation and this site. For example: if you'd like help troubleshooting a PR, have a great new idea, or want to share something amazing, join us in the discussions.

rainbow hr

Thanks for contributing 💜

  • Thanks for all your contributions and efforts
  • We thank you being part of our ✨ commUnity ✨ !
rainbow hr