Giter VIP home page Giter VIP logo

check-indonesia-voter's Introduction

Indonesia Voter API

Introduction

Welcome to the documentation for the Indonesia Voter API, a service that provides information about voters based on their identity number. This API is accessible at indonesia-voter.membasuh.com.

Endpoint

POST /

  1. Parameter
    • identity_number (string): The 16-digit identity number of the voter.
  2. Example Request
    {
      "meta": {
        "success": true,
        "code": 200,
        "message": "Identity number found",
        "errors": []
      },
      "data": {
        "full_name": "FULL NAME",
        "identity_number": "1333333333333337",
        "family_identity_number": "133337**********",
        "polling_station": {
          "name": "TPS 137",
          "number": "137",
          "regency_name": "CITY NAME",
          "district_name": "DISTRICT NAME",
          "village_name": "VILLAGE NAME",
          "address": "ADDRESS"
        }
      }
    }
  3. Example Response
    {
      "meta": {
        "success": false,
        "code": 500,
        "message": "TimeoutError: Waiting for element to be located By(css selector, .showMap)\nWait timed out after 5177ms",
        "errors": []
      },
      "data": null
    }

Response Format

The API response is in JSON format and consists of two main sections

  • meta
    • success (boolean): Indicates whether the request was successful.
    • code (integer): HTTP status code.
    • message (string): Descriptive message about the status of the request.
    • errors (array): List of errors (if any).
  • data
    • full_name (string): Full name of the voter.
    • identity_number (string): The 16-digit identity number of the voter.
    • family_identity_number (string): Masked family identity number for privacy.
    • polling_station (object): Information about the voter's polling station.
      • name (string): Polling station name.
      • number (string): Polling station number.
      • regency_name (string): Regency name.
      • district_name (string): District name.
      • village_name (string): Village name.
      • address (string): Address of the polling station.

Error Handling

If there are errors, they will be listed in the errors array within the meta section of the response. The data section will be null in case of an error. Feel free to use this documentation to integrate the Indonesia Voter API into your project! If you have any questions or issues, please contact our support team.

References

check-indonesia-voter's People

Stargazers

Perjaka Sunda avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.