DataYuge https://datayuge.com The API Culture Tue, 11 Dec 2018 22:39:37 +0000 en-US hourly 1 https://wordpress.org/?v=4.9.9 https://i0.wp.com/datayuge.com/wp-content/uploads/2018/07/cropped-favicon.png?fit=32%2C32&ssl=1 DataYuge https://datayuge.com 32 32 Growth of telecom sector in India https://datayuge.com/growth-of-telecom-sector-in-india/ https://datayuge.com/growth-of-telecom-sector-in-india/#respond Fri, 02 Nov 2018 17:02:54 +0000 https://datayuge.com/?p=2090 India is currently the world’s second largest telecom market with a subscriber base of 1.17 billion. With 493.96 million internet subscribers, as of March 2018, India stands second in terms of total internet users. As of June 2018, overall teledensity stood at 89.72 per...

The post Growth of telecom sector in India appeared first on DataYuge.

]]>
India is currently the world’s second largest telecom market with a subscriber base of 1.17 billion. With 493.96 million internet subscribers, as of March 2018, India stands second in terms of total internet users. As of June 2018, overall teledensity stood at 89.72 per cent. Urban teledensity stood at 158.16 per cent and rural teledensity at 57.99 per cent.

During the first quarter of 2018, India became the world’s fastest-growing market for mobile applications. Government is planning to develop 100 smart city projects, where IoT would play a vital role in the development of those cities.  The upcoming National Telecom Policy 2018 has envisaged attracting investments worth US$ 100 billion in the telecommunications sector by 2022.

Revenues are expected to grow to US$ 26.38 billion by 2020. The number of internet subscribers in the country is expected to double by 2021 to 829 million and overall IP traffic is expected to grow 4-fold at a CAGR of 30 per cent by 2021. Department of Telecommunication has launched ‘ Tarang Sanchar’ a web portal sharing information on mobile towers and EMF Emission Compliances. As of June 2018, BSNL is expected to launch its 5G services by 2020. Vodafone India and Idea Cellular have merged into ‘Vodafone Idea’ to become India’s largest telecom company, as of September 2018.

The post Growth of telecom sector in India appeared first on DataYuge.

]]>
https://datayuge.com/growth-of-telecom-sector-in-india/feed/ 0
Plan Finder API | Mobile Operator Plan Offer Finder API https://datayuge.com/plan-finder-api/ https://datayuge.com/plan-finder-api/#respond Thu, 11 Oct 2018 19:42:45 +0000 http://v3.datayuge.in/?p=2053 Plan Finder API provides the latest operator plans details from a mobile number. The API can give the results based on the mobile operator and circle. The API returns a JSON response with the Operator and Circle offer details. It...

The post Plan Finder API | Mobile Operator Plan Offer Finder API appeared first on DataYuge.

]]>
Plan Finder API provides the latest operator plans details from a mobile number. The API can give the results based on the mobile operator and circle. The API returns a JSON response with the Operator and Circle offer details. It will provide the latest operator plans which are up to date. The mobile tariff plans API will give the latest operator plans for the entered mobile number.

To detect the mobile number, the free operator and circle finder API can be used. From that API, you can pass the data to the Operator Plans API with the mobile circle and operator. The data is been categorised into multiple sections which will give the latest operator plans. The Plan Finder API be integrated into website/app easily. It also supports the integration in any programming languages. This API comes handy to find the offer details for the operator wise and circle wise. You can use basic PHP knowledge to implement the API into any website. The API accepts multiple refining parameters. This can be used to refine the results and show more accurate data according to developer needs.

The API has 8+ various categories of data. This will help the developer to display the data accordingly on the website. The API once integrated fetches automatically, so no need to upgrade from your end. For more information on the recharge plans API can be found here.

The post Plan Finder API | Mobile Operator Plan Offer Finder API appeared first on DataYuge.

]]>
https://datayuge.com/plan-finder-api/feed/ 0
Operator Plans API https://datayuge.com/operator-plans-api/ https://datayuge.com/operator-plans-api/#respond Tue, 09 Oct 2018 02:52:07 +0000 http://v3.datayuge.in/?p=2044 Operator Plans API helps to list the latest recharge plans from telecom providers. Using this API, the developer can easily build a system to display the latest operator plans from all the operators. The API returns a JSON formatted data,...

The post Operator Plans API appeared first on DataYuge.

]]>
Operator Plans API helps to list the latest recharge plans from telecom providers. Using this API, the developer can easily build a system to display the latest operator plans from all the operators. The API returns a JSON formatted data, the developer can parse the JSON response and display the data accordingly. The mobile tariff plans API will give the daily updated recharge packs from all the providers.

Operator Plans API – Supported Recharge Types

  1. Top up
  2. Full Talktime
  3. Plan (Unlimited)
  4. SMS
  5. 2G Data
  6. 3G Data
  7. 4G Data
  8. Local
  9. STD
  10. ISD
  11. Roaming
  12. Validity
  13. Other

These values can be passed as ‘recharge_type’ parameter and sort the values accordingly. However, this parameter is not mandatory in the API, hence don’t pass the parameter and value to list all the possible recharge options available. The recharge plans API can be accessed here.

The post Operator Plans API appeared first on DataYuge.

]]>
https://datayuge.com/operator-plans-api/feed/ 0
Mobile Tariff Plans API https://datayuge.com/mobile-tariff-plans-api/ https://datayuge.com/mobile-tariff-plans-api/#respond Sun, 07 Oct 2018 11:32:21 +0000 http://v3.datayuge.in/?p=2034 Mobile Tariff Plans API | How To List All Plans The mobile tariff plans API will give the most comprehensive list of mobile tariff plans in India. We support all the operators and circle for listing the mobile tariff plans...

The post Mobile Tariff Plans API appeared first on DataYuge.

]]>
Mobile Tariff Plans API | How To List All Plans

The mobile tariff plans API will give the most comprehensive list of mobile tariff plans in India. We support all the operators and circle for listing the mobile tariff plans API. The latest tariff plans API will give the daily updated mobile plans. The data is listed in a JSON format. This can be integrated into any website or mobile app. The “updated_at” parameter in the API will show the API data updated timestamp.

The API expects 2 mandatory parameters, the operator_id and circle_id. However, the data is set to 25 numbers per page for easy pagination and loading. This helps to load the data faster according to the various categories. It is also possible to list all the results for a particular mobile circle and operator.

To list this, instead of the current version, change the version to “v7“. This will list all mobile recharge plans. The data can be displayed accordingly then. The ‘recharge_type‘ will help you to list and sort the operator plans into specific categories. The new recharge_type ‘plan’ will list the combo offers. These include the latest plans like unlimited calling, mobile data and SMS.

The data is updated from the most trusted sources. A data dump version is also available for the API. This allows the developer to export the data to a cache data store. Thus the developer can do certain manipulation of the data in the datastore.

A 121 offer API is available as special plans API. Along with mobile tariff plans API, the developer can list the custom offers for a specific mobile number using it. The normal operator plans API can be accessed here.

Note: While using the ‘v7’ endpoint, the mandatory parameters like operator_id and circle_id must be passed as per the documentation. All the other operations are the same as the current version.

The post Mobile Tariff Plans API appeared first on DataYuge.

]]>
https://datayuge.com/mobile-tariff-plans-api/feed/ 0
How to convert and import CSV to Redis https://datayuge.com/convert-import-csv-redis/ https://datayuge.com/convert-import-csv-redis/#respond Sun, 15 Apr 2018 06:28:19 +0000 http://v3.datayuge.in/?p=1858 Introduction When dealing with a huge amount of static data’s which are requested continuously, we need to have a fast key-value cache in place. Since we already had a huge chunk of data in SQL database. Let’s see how can...

The post How to convert and import CSV to Redis appeared first on DataYuge.

]]>
Introduction

When dealing with a huge amount of static data’s which are requested continuously, we need to have a fast key-value cache in place. Since we already had a huge chunk of data in SQL database. Let’s see how can we convert that to CSV and then to redis.

 

Step – 1 | Export data from SQL database

Here the data is exported to CSV format from the SQL data store using the favourite tools. We used “sequel pro” to dump the data to CSV format.

Step -2 | Convert the raw CSV data to Redis Commands (Generate the Redis commands from CSV)

Our CSV file is in the following format. Let’s call this as input.csv

1, key1, value1, created_at, updated_at
2, key2, value2, created_at, updated_at

Convert the CSV to Redis commands. This will print “SET, key1, key2” from the “input.csv” file and remove the double quotes. Edit the command to match your CSV file. “$1” prints the first column. (Counting start from 1 and not 0)

awk -F, 'BEGIN {OFS=","} { print "SET",$2, $3}' input.csv | sed 's/\"//g'

This will print the response on the command line as follows. Make sure that the output is in the format  “SET, key1,key2“. Once you are sure that the response is in the expected format, save the file to output.txt as follows

awk -F, 'BEGIN {OFS=","} { print "SET",$2, $3}' input.csv | sed 's/\"//g' > output.txt

Note: We will be using the Redis mass insert. However, you need to convert the Redis commands to Redis protocol to do that.

Step – 3 | Convert the Redis command generated to Redis protocol. (Redis protocol generator)

Here we will be generating the redis protocol to convert the redis commands for importing to redis. We will be using the redis mass insert method for that.

Copy and save the following script to gen_redis_proto.py. Raw GitHub link

#!/usr/bin/env python -tt
# -*- coding: UTF-8 -*-
"""
Generating Redis Protocol

Generate the Redis protocol, in raw format, in order to use 'redis-cli --pipe' command to massively insert/delete.... keys in a redis server
It accepts as input a pipe with redis commands formatted as "SET key value" or "DEL key"...

Usage:

      echo "SET,mykey1,value1\nSET,mykey2,value2" > data.txt
      cat data.txt | python gen_redis_proto.py | redis-cli --pipe

"""

__author__ = "Salimane Adjao Moustapha (me@salimane.com)"
__version__ = "$Revision: 1.0 $"
__date__ = "$Date: 2013/04/30 12:57:19 $"
__copyleft__ = "Copyleft (c) 2013 Salimane Adjao Moustapha"
__license__ = "MIT"

import sys
import fileinput
from itertools import imap


def encode(value):
    "Return a bytestring representation of the value"
    if isinstance(value, bytes):
        return value
    if not isinstance(value, unicode):
        value = str(value)
    if isinstance(value, unicode):
        value = value.encode('utf-8', 'strict')
    return value


def gen_redis_proto(*cmd):
    proto = ""
    proto += "*" + str(len(cmd)) + "\r\n"
    for arg in imap(encode, cmd):
        proto += "$" + str(len(arg)) + "\r\n"
        proto += arg + "\r\n"
    return proto


if __name__ == '__main__':
    for line in fileinput.input():
        sys.stdout.write(gen_redis_proto(*line.rstrip().split(',')))

Now run the following command to generate the redis protocol command and save to redis using the mass insert method.

cat output.txt | python gen_redis_proto.py | redis-cli --pipe

The CSV will be now cached into the redis memory. You can save the data in the memory to a .rdb file using “BGSAVE” command

 

The post How to convert and import CSV to Redis appeared first on DataYuge.

]]>
https://datayuge.com/convert-import-csv-redis/feed/ 0
Recent updates to the Tariff Plans API | For developers https://datayuge.com/tariff-plans-api-updates/ https://datayuge.com/tariff-plans-api-updates/#respond Sat, 24 Mar 2018 06:30:46 +0000 http://v3.datayuge.in/?p=1837 Since the entry of new rivals like Reliance Jio, the telecom industry in India is seeing a drastic change. Also, the pricing war leads to the daily change in the telecom plans as well. Those who are in the telecom-related industry...

The post Recent updates to the Tariff Plans API | For developers appeared first on DataYuge.

]]>
Since the entry of new rivals like Reliance Jio, the telecom industry in India is seeing a drastic change. Also, the pricing war leads to the daily change in the telecom plans as well. Those who are in the telecom-related industry need to have a daily updated pricing for the operator plans and browse plans. Our Tariff plans API provides the latest information on the recharge plans and offers for all the major operators.

tariff plans api

The following changes will happen in the latest version of the operator plans API. If you are a developer using this telecom plan API, you will be notified of official changes in the changes in the tariff plans API.

Major changes in Tariff Plans API

  1. The plans for the operator videocon no longer will be available, make sure that you remove the videocon recharge plans on your existing website or app. This is because the operator is no longer available.
  2. Similarly, the Aircel recharge plans for all the region won’t be available. All the developers using the telecom plan API are requested to remove the Aircel recharge offers from their website and app.
  3. From the beginning, there were almost 14 operators serving across the plans. Now, this is been cut down after removing the non-functional operators.
  4. The implementation of the category called “Plan” in the API response. Since most of the operators started offering packs which are bundled along with unlimited calls and data, these are specially categorised. Please note that special offers are not available to all the operators which we currently support.
  5. The API had huge performance boosted for faster loading of data into your website and apps. Your workflow will be much faster for a smoother User experience now.
  6. Implementation of IP whitelisting for the developers. Now only allow a set of IP address to access the service for maximum protection on the website

A tutorial on how to implement the telecom plan API is here.

The post Recent updates to the Tariff Plans API | For developers appeared first on DataYuge.

]]>
https://datayuge.com/tariff-plans-api-updates/feed/ 0
How to build a coupons & deals website using Coupon Code API https://datayuge.com/coupons-deals-website-coupon-code-api/ https://datayuge.com/coupons-deals-website-coupon-code-api/#respond Fri, 16 Mar 2018 04:13:33 +0000 http://v3.datayuge.in/?p=1823 Introduction Since the launch of our Price Comparison API, the developers were always looking for building the deals and coupon codes engine. We heard you and we have introduced the Coupon Code API. This API gives a list of latest coupon...

The post How to build a coupons & deals website using Coupon Code API appeared first on DataYuge.

]]>
Introduction

Since the launch of our Price Comparison API, the developers were always looking for building the deals and coupon codes engine. We heard you and we have introduced the Coupon Code API. This API gives a list of latest coupon codes and deals for 2000+ e-commerce + online websites. All the coupons are tested by the team and are only listed. So let’s see how to use the coupon codes API.

coupon code API

Step 1 – Obtain the Coupon Code API key

The first step is to obtain an API for accessing the service. You can skip this step if you already have an API key. Note that the Price Comparison API, the Coupon Codes and Deals API share a single API key which can be obtained from the PriceYuge portal.

Step 2 – Access the Coupon API endpoint

It is recommended to read the documentation well before continuing. Once you have an idea of how the platform works, you can implement it easily. The deals and coupon API have different endpoints. Let’s access the deals API endpoint first.

https://price-api.datayuge.com/api/v1/offers/list/coupons?api_key=YOUR_API_KEY

Make sure to replace the “YOUR_API_KEY” with your Coupons and Deals API Key. The above request will return a JSON response with the latest coupon codes available. The API can also pass certain parameters for refining the results to a particular category or a store. Now let’s parse the response from JSON and utilise it.

Part 2 of this tutorial will be available soon. Let’s see in the next part.

 

The post How to build a coupons & deals website using Coupon Code API appeared first on DataYuge.

]]>
https://datayuge.com/coupons-deals-website-coupon-code-api/feed/ 0
How to implement Free Recharge Plans API in your apps? https://datayuge.com/free-recharge-plans-api-browse-plan-api/ https://datayuge.com/free-recharge-plans-api-browse-plan-api/#comments Thu, 16 Nov 2017 03:47:13 +0000 http://v3.datayuge.in/?p=1635 Introduction The recharge plans API is something very crucial if your website or the app provides an online recharge service. The API is normally called browse plan API or it is also known as mobile operator plan offer finder API....

The post How to implement Free Recharge Plans API in your apps? appeared first on DataYuge.

]]>
Introduction

The recharge plans API is something very crucial if your website or the app provides an online recharge service. The API is normally called browse plan API or it is also known as mobile operator plan offer finder API. DataYuge provides a daily updated recharge plan API which all the offers are daily updated, unlike the other providers. Using the free API, the developer can implement the recharge plan API on the website. This recharge plans API is totally a free solution without any limitation. However, you can see the premium plan if you wanted a completely white labelled browse plan API solution with technical assistance.

Step 1 – Obtain the recharge plans API key

DataYuge’s browse plan API works by sending a request to the secure server using an API key parameter in the URL. The developer has to obtain a free API key or a premium key by contacting DataYuge team.

Step 2

After obtaining the API key, the developer can start integrating the API into the web/mobile apps. The API looks something like this.
https://api.datayuge.com/v7/rechargeplans/?apikey=4dTA2DtUAlU5GL5XI084YWflgM&operator_id=Airtel&circle_id=Delhi

Please note that the API key used in the above browse plan API is a dummy key. You have to obtain a valid key to use them.

Step 3

This is the sample code for accessing the mobile plans API on your website. The sample code is written using basic HTML and PHP. You are welcome to modify the code as you need and implement on your website. Commenting is done for basic code readability. You can ask in comments if something you didn’t understand.

First, create a “plans.css” using the following code, which will the be CSS for the HTML page.

Now create another file and name it as “plans.php” with the following code.

This will look something like

recharge plans api

 

Now you have implemented the plans API. Similarly DataYuge providers API for DTH recharge Plans and Data card recharge plans. The more details about this browse plans API can be found here. Also please check out the MNP lookup API where the operator and circle of MNP (ported numbers) can be found.

The post How to implement Free Recharge Plans API in your apps? appeared first on DataYuge.

]]>
https://datayuge.com/free-recharge-plans-api-browse-plan-api/feed/ 1
How to find operator and circle of mobile number? Mobile Operator Finder API https://datayuge.com/find-operator-circle-mobile-number-mobile-operator-finder-api/ https://datayuge.com/find-operator-circle-mobile-number-mobile-operator-finder-api/#respond Fri, 10 Nov 2017 10:41:26 +0000 http://v3.datayuge.in/?p=1618 Introduction The mobile number system in India is quite large with 8+ major providers on the market. The number allocation for each telecom carrier is different. Mainly the Indian mobile numbers start with ‘9’ or ‘8’ or ‘7’. It is...

The post How to find operator and circle of mobile number? Mobile Operator Finder API appeared first on DataYuge.

]]>
Introduction

The mobile number system in India is quite large with 8+ major providers on the market. The number allocation for each telecom carrier is different. Mainly the Indian mobile numbers start with ‘9’ or ‘8’ or ‘7’. It is a very difficult task to find the operator and circle of the mobile number. With the entry of new providers like JIO, the need for Jio number lookup API also increased. This is because of the new number allocation for these carriers. We are providing a free mobile operator finder API.

Please note: This is completely free API without any restrictions. Click here for MNP Lookup API, where you can find the operator and circle of ported numbers and even JIO numbers.

Step 1

  • Get the API from here.

https://api.datayuge.com/v1/lookup/{number}

  • The number parameter can be the first 5 digits of an Indian Mobile number or a valid 10 digit Indian Mobile Number

https://api.datayuge.com/v1/lookup/80000
or
https://api.datayuge.com/v1/lookup/8000012345

  • The database is automatically updated, so you don’t have to worry about the accuracy of the database. As new series allocates, it’s automatically included in the API.

Step 2

The API can be easily consumed in any programming language. Hereby showing a small script on how to consume the MNP check API in PHP.

Please note that the same can be implemented in any programming language. Send an HTTP request, then decode the response and use the data. There is a rate-limiting enabled for the free API to avoid misuse of the API. The current rate-limiting is 180 5 requests per minute.

Now you can use this API to get the current operator and circle of mobile number. However, this only shows the default operator and circle. For showing the MNP Details, that is the ported operator and circle of mobile number, please try the DataYuge’s MNP API

The post How to find operator and circle of mobile number? Mobile Operator Finder API appeared first on DataYuge.

]]>
https://datayuge.com/find-operator-circle-mobile-number-mobile-operator-finder-api/feed/ 0