Testing Loshu Grid API Using Postman

"Step-by-Step Guide to Testing the Loshu Grid API in Postman for Accurate Numerological Insights"

 Last updated : 09 Apr, 2025

1. Securing Your API Key

To start, you need an API key. Head over to https://divineapi.com/ and register to initiate your 7-day trial.

  • Select the APIs you are interested in; you can change these selections at any time. You can add or remove APIs in the future.
  • Click on checkout, fill out the sign-up form, and enter your payment details on the next page.

Your trial will begin immediately. You won't be charged during the trial period, and you can cancel anytime without incurring any charges.

Detail Page

Detail Page

 

2. Importing the Postman Collection

Import our Postman collection to facilitate your API testing:

Detail Page

Detail Page

Detail Page

 

3. Configuring Your API Request

Once the collection is imported:

  • Locate the "Loshu Grid" API request.
  • Ensure the method is set to POST.
  • Use this request URL
 https://astroapi-7.divineapi.com/numerology/v1/loshu-grid
Detail Page
Detail Page

4. Setting Request Parameters

This API call necessitates only your API key. To find your API key.

  • Go to your DivineAPI dashboard > API Key page.
  • Click on “Copy” next to the API key

 Notice the difference between the key, and the Access Token.

Detail Page
Detail Page

Go back to Postman to set the parameters.

  • Navigate to “Authorization”, select “Bearer Token” in the Auth type, and then add the token from your Divine API profile.
  • Navigate to 'Body', select 'form_data', and then add:
    • api_key | Value: <Your_API_Key>
    • day: “24” - Enter the day.
    • month: “05” - Enter the month.
    • year: “2023” - Enter the year.
    • fname: “Rahul” - Enter the first name.
    • lname: "kumar" - Enter the last name.
    • lan : “en” - Enter the language ex. (en/hi).
  • Please ensure that the bearer token is exactly the same as in your profile, with no changes in spacing or formatting.
Detail Page
Detail Page

6. Deciphering the Response

The API's response will be structured as follows:

{
   "status": "success",
   "code": 200,
   "message": "Request was successful",
   "data": {
       "grid": [
           {
               "grid": 1,
               "number": 4,
               "times": 1
           },
           {
               "grid": 2,
               "number": 9,
               "times": 1
           },
           {
               "grid": 3,
               "number": 2,
               "times": 3
           },
           {
               "grid": 4,
               "number": 3,
               "times": 1
           },
           {
               "grid": 5,
               "number": 5,
               "times": 1
           },
           {
               "grid": 6,
               "number": 7,
               "times": 0
           },
           {
               "grid": 7,
               "number": 8,
               "times": 1
           },
           {
               "grid": 8,
               "number": 1,
               "times": 0
           },
           {
               "grid": 9,
               "number": 6,
               "times": 1
           }
       ],
       "svg": "<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"300\" height=\"300\" viewBox=\"0 0 300 300\">\r\n    <!-- Draw the Grid -->\r\n    <rect x=\"0\" y=\"0\" width=\"300\" height=\"300\" fill=\"white\" stroke=\"black\" stroke-width=\"2\" />\r\n    <!-- Horizontal Lines -->\r\n    <line x1=\"0\" y1=\"100\" x2=\"300\" y2=\"100\" stroke=\"black\" stroke-width=\"2\" />\r\n    <line x1=\"0\" y1=\"200\" x2=\"300\" y2=\"200\" stroke=\"black\" stroke-width=\"2\" />\r\n    <!-- Vertical Lines -->\r\n    <line x1=\"100\" y1=\"0\" x2=\"100\" y2=\"300\" stroke=\"black\" stroke-width=\"2\" />\r\n    <line x1=\"200\" y1=\"0\" x2=\"200\" y2=\"300\" stroke=\"black\" stroke-width=\"2\" />\r\n\r\n    <!-- Map for Cell Positions -->\r\n    \r\n    <!-- Populate the Numbers -->\r\n                    <text x=\"50\" y=\"60\" text-anchor=\"middle\" font-size=\"24\" fill=\"black\">\r\n                         4                     </text>\r\n                    <text x=\"150\" y=\"60\" text-anchor=\"middle\" font-size=\"24\" fill=\"black\">\r\n                         9                     </text>\r\n                    <text x=\"250\" y=\"60\" text-anchor=\"middle\" font-size=\"24\" fill=\"black\">\r\n                         2  2  2                     </text>\r\n                    <text x=\"50\" y=\"160\" text-anchor=\"middle\" font-size=\"24\" fill=\"black\">\r\n                         3                     </text>\r\n                    <text x=\"150\" y=\"160\" text-anchor=\"middle\" font-size=\"24\" fill=\"black\">\r\n                         5                     </text>\r\n                    <text x=\"250\" y=\"160\" text-anchor=\"middle\" font-size=\"24\" fill=\"black\">\r\n                    </text>\r\n                    <text x=\"50\" y=\"260\" text-anchor=\"middle\" font-size=\"24\" fill=\"black\">\r\n                         8                     </text>\r\n                    <text x=\"150\" y=\"260\" text-anchor=\"middle\" font-size=\"24\" fill=\"black\">\r\n                    </text>\r\n                    <text x=\"250\" y=\"260\" text-anchor=\"middle\" font-size=\"24\" fill=\"black\">\r\n                         6                     </text>\r\n    </svg>",
       "base64_image": "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzMDAiIGhlaWdodD0iMzAwIiB2aWV3Qm94PSIwIDAgMzAwIDMwMCI+DQogICAgPCEtLSBEcmF3IHRoZSBHcmlkIC0tPg0KICAgIDxyZWN0IHg9IjAiIHk9IjAiIHdpZHRoPSIzMDAiIGhlaWdodD0iMzAwIiBmaWxsPSJ3aGl0ZSIgc3Ryb2tlPSJibGFjayIgc3Ryb2tlLXdpZHRoPSIyIiAvPg0KICAgIDwhLS0gSG9yaXpvbnRhbCBMaW5lcyAtLT4NCiAgICA8bGluZSB4MT0iMCIgeTE9IjEwMCIgeDI9IjMwMCIgeTI9IjEwMCIgc3Ryb2tlPSJibGFjayIgc3Ryb2tlLXdpZHRoPSIyIiAvPg0KICAgIDxsaW5lIHgxPSIwIiB5MT0iMjAwIiB4Mj0iMzAwIiB5Mj0iMjAwIiBzdHJva2U9ImJsYWNrIiBzdHJva2Utd2lkdGg9IjIiIC8+DQogICAgPCEtLSBWZXJ0aWNhbCBMaW5lcyAtLT4NCiAgICA8bGluZSB4MT0iMTAwIiB5MT0iMCIgeDI9IjEwMCIgeTI9IjMwMCIgc3Ryb2tlPSJibGFjayIgc3Ryb2tlLXdpZHRoPSIyIiAvPg0KICAgIDxsaW5lIHgxPSIyMDAiIHkxPSIwIiB4Mj0iMjAwIiB5Mj0iMzAwIiBzdHJva2U9ImJsYWNrIiBzdHJva2Utd2lkdGg9IjIiIC8+DQoNCiAgICA8IS0tIE1hcCBmb3IgQ2VsbCBQb3NpdGlvbnMgLS0+DQogICAgDQogICAgPCEtLSBQb3B1bGF0ZSB0aGUgTnVtYmVycyAtLT4NCiAgICAgICAgICAgICAgICAgICAgPHRleHQgeD0iNTAiIHk9IjYwIiB0ZXh0LWFuY2hvcj0ibWlkZGxlIiBmb250LXNpemU9IjI0IiBmaWxsPSJibGFjayI+DQogICAgICAgICAgICAgICAgICAgICAgICAgNCAgICAgICAgICAgICAgICAgICAgIDwvdGV4dD4NCiAgICAgICAgICAgICAgICAgICAgPHRleHQgeD0iMTUwIiB5PSI2MCIgdGV4dC1hbmNob3I9Im1pZGRsZSIgZm9udC1zaXplPSIyNCIgZmlsbD0iYmxhY2siPg0KICAgICAgICAgICAgICAgICAgICAgICAgIDkgICAgICAgICAgICAgICAgICAgICA8L3RleHQ+DQogICAgICAgICAgICAgICAgICAgIDx0ZXh0IHg9IjI1MCIgeT0iNjAiIHRleHQtYW5jaG9yPSJtaWRkbGUiIGZvbnQtc2l6ZT0iMjQiIGZpbGw9ImJsYWNrIj4NCiAgICAgICAgICAgICAgICAgICAgICAgICAyICAyICAyICAgICAgICAgICAgICAgICAgICAgPC90ZXh0Pg0KICAgICAgICAgICAgICAgICAgICA8dGV4dCB4PSI1MCIgeT0iMTYwIiB0ZXh0LWFuY2hvcj0ibWlkZGxlIiBmb250LXNpemU9IjI0IiBmaWxsPSJibGFjayI+DQogICAgICAgICAgICAgICAgICAgICAgICAgMyAgICAgICAgICAgICAgICAgICAgIDwvdGV4dD4NCiAgICAgICAgICAgICAgICAgICAgPHRleHQgeD0iMTUwIiB5PSIxNjAiIHRleHQtYW5jaG9yPSJtaWRkbGUiIGZvbnQtc2l6ZT0iMjQiIGZpbGw9ImJsYWNrIj4NCiAgICAgICAgICAgICAgICAgICAgICAgICA1ICAgICAgICAgICAgICAgICAgICAgPC90ZXh0Pg0KICAgICAgICAgICAgICAgICAgICA8dGV4dCB4PSIyNTAiIHk9IjE2MCIgdGV4dC1hbmNob3I9Im1pZGRsZSIgZm9udC1zaXplPSIyNCIgZmlsbD0iYmxhY2siPg0KICAgICAgICAgICAgICAgICAgICA8L3RleHQ+DQogICAgICAgICAgICAgICAgICAgIDx0ZXh0IHg9IjUwIiB5PSIyNjAiIHRleHQtYW5jaG9yPSJtaWRkbGUiIGZvbnQtc2l6ZT0iMjQiIGZpbGw9ImJsYWNrIj4NCiAgICAgICAgICAgICAgICAgICAgICAgICA4ICAgICAgICAgICAgICAgICAgICAgPC90ZXh0Pg0KICAgICAgICAgICAgICAgICAgICA8dGV4dCB4PSIxNTAiIHk9IjI2MCIgdGV4dC1hbmNob3I9Im1pZGRsZSIgZm9udC1zaXplPSIyNCIgZmlsbD0iYmxhY2siPg0KICAgICAgICAgICAgICAgICAgICA8L3RleHQ+DQogICAgICAgICAgICAgICAgICAgIDx0ZXh0IHg9IjI1MCIgeT0iMjYwIiB0ZXh0LWFuY2hvcj0ibWlkZGxlIiBmb250LXNpemU9IjI0IiBmaWxsPSJibGFjayI+DQogICAgICAgICAgICAgICAgICAgICAgICAgNiAgICAgICAgICAgICAgICAgICAgIDwvdGV4dD4NCiAgICA8L3N2Zz4="
   }
}

7. Error Resolution

Ensure your API key is correctly entered if you encounter errors, as most issues are due to invalid or missing API keys. For a comprehensive guide on resolving errors and understanding their responses, refer to our Detailed Error Guide for API Integration.

8. Further Assistance

For additional support or inquiries, feel free to contact our customer service team at admin@divineapi.com.