How to check if an address is a business or residential address [closed] - api

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 5 years ago.
Improve this question
I have a dataset that contains many addresses (60,000-ish entries). I want to classify these addresses into either residential or business addresses.
Does anyone know a good API/Service to get started doing this?
I don't think the google maps geocoder can do this at this time.
Fedex and UPS both seem to have API's but they are only released to companies that are shipping products (sort of a need to know basis only)
USPS API: https://www.usps.com/nationalpremieraccounts/rdi.htm
Fedex API:http://www.fedex.com/us/developer/web-services/index.html
This is a hobby project, so free or cheap are better! But paid solutions are not out of the question.

As mentioned previously, RDI is the way to go. RDI stands for "residential delivery indicator" and it tells you whether an address is residential or commercial. The only issue with that is you have to be a developer to use it and you have to have standardized and certified addresses, not to mention the annual licensing fee from the USPS for hundreds of dollars. Once you've got it and programmed a solution, you can just give it an address with any old ZIP and expect it to work. The address must have the full 12-digit delivery point barcode.
Or you could use a service provider to do the same thing and pay about $50-100 for a list your size.
Full disclosure: I'm the founder of SmartyStreets. We have RDI included into our offering at no extra charge. This means it's as simple as dragging your list to our website and having it processed and back in seconds. We also offer an address verification web service API which will returns the residential/business indicator to let you know the kind of address you're working with.

Whitepages claims they let you do that in their API. For hobby purposes of up to 200 queries per day, it's free. You would query zoning type.
The Address ID Data Structure contains a "usage" field, which is described as "Only valid for US address LocationType. This indicates the US Postal Service opinion about whether this address is primarily a "Business" or "Residential"."

Take a look at the API at http://compass.webservius.com
It's a listing of 16+ million businesses in the US (aims to be a complete business listing). If an address isn't there, chances are it's a residential address.

This is a bit of a hack, but why not write a script to check to see if the first line of the address contains any of the last names from the census list? That should get you most of the residential addresses. Assuming the person's/business's name is part of the address you have.

Related

Phone number carrier API [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 5 years ago.
Improve this question
Is there any public database containing current mobile carriers for phone numbers?
I find out that there are many paid services (like numverify.com) and static (not real time updated) database from Google (libphonenumber).
I am looking for free API or database like libphonenumber, but with actual data about mobile phone carrier (in countries where numbers can be moved from one carrier to another).
Thank you
Well there are a plenty of services available. All of them paid. They do offer a trial version with limited api requests.
You should note that the way to figure out which carrier a number belongs to will be country-specific.
The information is, at least there, not available to the public - I've known service providers, network operators and information providers (as in yellow pages) that have access.
But, wouldn't a proper sms gateway service do this for you?
The cheap ones out there you could try out are
1) Data24-7 offers an API for looking up the carrier for wireless phone numbers. It also returns the email addresses to send SMS and MMS messages to the phone. It's not free, it's $12 per month and $0.006 per lookup. Check it out on
http://www.data24-7.com/carrier24-7.php
2) Twilio is one of the most reliable service provider out there.
You can find some more providers here https://git.daplie.com/coolaj86/node-tel-carrier

Api / services for receiving sms (text messaging) online [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 8 years ago.
Improve this question
My current project requires us to receive text messages online. It's hard to wade through the search results as many of the are just websites with about 10 numbers for everyone to use.
I am looking for services along the lines of what is being offered at http://www.tropo.com
You can send and receive text messages online on your own private generated phone number within the US or Canada.
Preferably free, just need a few more before I make any decisions
Thanks!
Disclaimer, I do developer evangelism part time at Nexmo.
Here are a few paid SMS APIs:
Nexmo
Twilio
Tropo
You may be able to hack something together that works for free, but you risk that solution being disabled by whatever provider you use (for example, some people send SMS via Google Voice, but I wouldn't recommend relying on that).
Since you're receiving SMS, Nexmo would be a good solution when it comes to price. You only pay for the virtual number (roughly $1 a month), and all incoming messages are free.
Try www.twilio.com they have a good API and it is free while testing.

Country calling codes including area codes [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 6 years ago.
Improve this question
I'm trying to create a table full of calling country codes, so I can match phone numbers and retrieve their country of origin.
I'm aware of http://blog.attigohk.com/2010/12/12/countriesdb-free-country-code-sql-database/ and especially http://www.itu.int/ which contains the "official" list.
But I'm stuck on getting area codes as well, as Canada and USA share +1, so that's no good identifying a number only with +1.
Can anyone help me in the right direction, so "all the worlds" phone'numbers can be identified?
I would use Wikipedia's lists here. For +1 you're going to have to use more digits to identify the country as it is also shared by various Caribbean nations. This other Wikipedia article breaks it down here.
It may also be useful to have the list of international prefixes too (that is, the digits used to indicate you are dialing internationally). That list is here. That can be handy in some environments where you can't be sure the format of the phone number provided to you. For example, some mobile carriers will send usage records with the number as dialled by the customer such as '+441234567890' as that is automatically converted to '0011441234567890' but some customers will dial that full number so you'll need to know which numbers to ignore.
A database for Area Codes can be downloaded from here (MS Access Format)
The US and Canada share the +1 but the area codes differ and don't overlap. If you want to identify a phone number just select the country based on the country identifier and the first numbers of the area code. That way you'll get the correct country (and area code) even for the us and canada.

What are some Physical Mailing Services with APIs? (pdf to delivered letter) [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 7 years ago.
Improve this question
I'm writing a bill generation service for a client, and I would like to program my self out of the most time consuming part of the process. It goes something like this.
print X number of pdfs and envelopes, stuff envelops, stamp, and bring to post office
It would only be a few hundred bills monthly to start but it could grow. I'm sure some sort of service exists that provides an api to deliver a printed pdf to an address but I can't find one. I think part of my problem is discovering the terminology to google with.
Have you ever used any services like this?
UPDATE
I've found some helpful search terms, but no good results yet.
Mail Processing Services
Document Processing Services
I should also add that I'm located in nyc and am looking for a US based solution.
Check out PostalMethods Web-to-Postal. PostalMethods offers a SOAP Web Service where you can provide a letter document and a postal address - we take care of the rest.
Our Postal API section containing all the data you need to quickly send letters and postcards directly from any application. The Reference Manual of our SOAP Web Service API and many Code Samples will help send your snail mail quickly.
We also offer a free development account and free, quick and unlimited support. Pricing model is pay-as-you-go. Purchase a prepaid card from $10 to $10,000 and enjoy volume discounts.
I have no experience in such things, but it sounds like you're looking for something like this: http://www.billingpros.com/
For what it's worth, the magic Google keywords I used were "automatic postal billing". ;)
I found a local shipping center who will receive pdf's via email and send them out and bill me for a negotiated nominal fee. A service with an api doesn't seem to exist.
We were investigating Lob's services. However, Lob required both the recipient's and the sender's address while we only had the former at our disposal.
Therefore, we did not choose Lob.

US Government APIs? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 4 years ago.
Improve this question
I'm working on an app to provide an easy way for people to track the status of a bill [and various other political information]. I love the idea of OpenCongress, for instance, which surfaces summary information on legislation as it navigates the political process, but I'd like it if it had a tag-based search system and some other rich search options, as well as more conveniently accessible voting history and term information. And while they now have JavaScript widgets which show the current status of bills you select, I think more could be done in this regard.
I don't know where they get their data, though, and while they have an API of their own, I don't know whether sticking a wart onto it is the best way of implementing what I envision. For all its touting of transparency, it's not at all obvious to me what data the government makes available, or even how to find that out!
So, does anyone know any good APIs for obtaining information on the status of American legislation, legislators (such as voting histories), agencies and/or upcoming elections? (Or, if you think it's really interesting, feel free to post any other APIs that are relevant to U.S. politics.)
Although they aren't APIs, www.data.gov provides official data sets, which can be mined. For now, I think this is the closest you're going to get to an official, centralized source of data.
Check out ProgrammableWeb's list of government-related APIs. Not all of them are the US federal government, so you might need to sift through it a bit. Also, they're not all provided directly by the government.
There's also an open source project that provides an API for thomas.loc.gov.
We publish feeds of all legislative information for the New York State Senate, with an API, at: http://open.nysenate.gov/legislation/developers
I'm not sure if it addresses exactly your concerns but the Watchdog site tries to do something like this. Their source is available online and they extract a lot of information from public records. A lot of the published stuff is in rather antiquated formats (huge zipped XML files) and so the whole process is not totally straightforward.
You should check out the collection civic APIs that are listed here:
https://live.temboo.com/library/keyword/civic/