API 来确定手机运营商?

发布于 2024-07-09 15:10:05 字数 1557 浏览 5 评论 0原文

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(8

蓝天白云 2024-07-16 15:10:05

Data24-7 提供了一个 API,用于查找无线电话号码的运营商。 它还返回电子邮件地址以将短信和彩信发送到手机。 它不是免费的,每月 12 美元,每次查找 0.006 美元。

链接为:http://www.data24-7.com

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.

The link is: http://www.data24-7.com

权谋诡计 2024-07-16 15:10:05

我知道这个问题已经有 5 年历史了,但对于那些仍在寻找东西的人,PacificEast(我工作的公司)提供了线路识别为美国和加拿大号码添加服务,以处理本地号码可携性。 该服务可作为 SOAP API 或批处理服务使用(您向 PacificEast 发送您的文件,他们处理该文件并将其发回)。 除了运营商之外,该服务还将识别线路类型(无线、固定电话等)、号码是否已转网以及一些地理信息。

I know this question is 5 years old already but for those still looking for something, PacificEast (who I work for) offers a Line Identification Append service for US and Canadian numbers that handles local number portability. The service is available as a SOAP API or as a batch service (you send PacificEast your file, they process it and send it back). Besides the carrier, the service will also identify line type (wireless, landline, etc.), whether the number has been ported or not, and some geographic information.

挽袖吟 2024-07-16 15:10:05

如果您正在寻找我的方法(一种轻松发送电子邮件的方式 -> 向某个程序发送短信的人),我相信最好的方法是向该国家/地区的每个运营商发送电子邮件“phonenumber@sms-gateway”。 这样做时,该号码将仅适用于此时该号码处于活动状态的一家运营商。 其他邮件将被退回。

如果您尝试使用在线服务进行查找,那么您现在依赖的是他们数据库中的运营商,该数据库可能已经过时。

If you are looking for what I was (a way to easily email -> SMS people for a program), I believe the best is going to be to send an email phonenumber@sms-gateway to each carrier for the country. In doing so, the number will only work with one carrier where the number is active at this moment. The other emails will be returned.

If you try to look it up using an online service, you are now relying on the carrier they have in their database, which may be outdated.

新雨望断虹 2024-07-16 15:10:05

您应该注意,确定号码属于哪个运营商的方法将是特定于国家/地区的(尽管有些国家/地区可能会使用相同的方案,但我不确定 - 我已经使用过挪威和瑞典的可移植性数据库)它们的 api-wize 完全不同 - 并且需要 vpn + 身份验证)。

至少在这里,这些信息不向公众开放——我见过服务提供商、网络运营商和信息提供商(如黄页)可以访问。

但是 otoh,合适的短信网关服务不会为您做这件事吗?

You should note that the way to figure out which carrier a number belongs to will be country-specific (though, some countries might use the same scheme, but I'm not sure - I've worked with both the norwegian and swedish portability databases and they're quite different api-wize - and require vpn + authentication).

The information is, at least here, not available to the public - I've seen service providers, network operators and information providers (as in yellow pages) that have access.

But otoh, wouldn't a proper sms gateway service do this for you?

甜味拾荒者 2024-07-16 15:10:05

Neustar 将是您最好的选择,他们处理查找、号码可携性、谢绝来电列表等等...该服务不是免费的,但它们是业内最可靠的。 另一个选择可能是 Twilio

Neustar would be your best bet, they handle lookups, number portability, Do Not Call list, etc... The service is not free but they are the most reliable in the business. Another option might be Twilio

离线来电— 2024-07-16 15:10:05

你最大的问题是人们现在可以随身携带他们的号码。 因此,虽然过去手机运营商有大量的电话号码,而且可能仍然如此,但没有可靠的方法将特定的手机号码映射到特定的运营商。

Your biggest problem is that people can now take their numbers with them. So while in the past cell phone carriers had blocks of phone numbers, and probably still do, there's no reliable way to map a specific cell number to a certain carrier.

黎歌 2024-07-16 15:10:05

您可以尝试从 http://www.fonefinder.net 之类的网站进行屏幕抓取,该网站对下面

是一个要抓取的示例 url。 (我验证了它的真正冲刺,所以这是正确的)

http://www.fonefinder.net/findome.php?npa=817&nxx=683&thoublock=2926

You can try to screenscrape from a website like http://www.fonefinder.net that does a 'whois' on the number

Here is an example url to scrape. (I verified its really sprint, so that is correct)

http://www.fonefinder.net/findome.php?npa=817&nxx=683&thoublock=2926
離殇 2024-07-16 15:10:05

我最近用 Ruby 编写了一个与前面提到的 FoneFinder.net 接口的

https://rubygems.org/gems/FoneFinder --> 红宝石宝石页面
https://github.com/evinugur/FoneFinder.rb/ -->; Github Source

您可以使用它来获取与手机号码相关的一些数据字段,但要确定运营商,请执行此操作。

require 'FoneFinder'
myPhoneNumber = FoneFinder.new("123-456-7890")
puts myPhoneNumber.carrier

I recently wrote one in Ruby that interfaces with the aforementioned FoneFinder.net

https://rubygems.org/gems/FoneFinder --> Ruby Gem page
https://github.com/evinugur/FoneFinder.rb/ --> Github Source

You can use it to get a few fields of data that relate to a cell phone number, but to determine carrier, do this.

require 'FoneFinder'
myPhoneNumber = FoneFinder.new("123-456-7890")
puts myPhoneNumber.carrier
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文