{"__v":3,"_id":"545103947abbbc0800a5eb90","category":{"__v":6,"_id":"54510356a66f020800dbaa17","pages":["545103947abbbc0800a5eb90","54535e2008d1800800473d37","5451f81a14af501a00b50fde","54535f6f90000908009522cf","5451f9f114af501a00b50fec","5453606308d1800800473d3d"],"project":"542dbe0ecb19820800c1f4d7","version":"542ecc0a6b0eb6080066ca77","sync":{"url":"","isSync":false},"reference":false,"createdAt":"2014-10-29T15:10:14.801Z","from_sync":false,"order":19,"slug":"carrier-services","title":"Carrier Services"},"editedParams":true,"editedParams2":true,"is_link":false,"parentDoc":null,"project":"542dbe0ecb19820800c1f4d7","user":"544a586d27b7fc140078db12","version":{"__v":31,"_id":"542ecc0a6b0eb6080066ca77","forked_from":"542dbe0fcb19820800c1f4da","project":"542dbe0ecb19820800c1f4d7","createdAt":"2014-10-03T16:17:14.165Z","releaseDate":"2014-10-03T16:17:14.165Z","categories":["542ecc0a6b0eb6080066ca78","542ef44f6b0eb6080066cb24","543bf3e22a30961a00b66eb3","5446952b82bd7e08002768a0","544821ae8d7af31a00dd41ce","544a7885f1aefa08006efc69","544c758e11845f0e001ed8de","544e5565b80812080035be55","544e558dbd51b9080037f8ca","5450b045a66f020800dba73d","5450eb6aa66f020800dba945","5450f39ea66f020800dba989","5450f877a66f020800dba9cf","54510356a66f020800dbaa17","5451274514af501a00b50c99","54513345a66f020800dbab24","54513cc014af501a00b50d24","54515eec14af501a00b50db9","54519b1d14af501a00b50ea9","54519b2aa66f020800dbacb4","54524f9704160008005b1d27","54538d2308d1800800473d95","54538d420c09721000a06a03","54538e5608d1800800473d9a","5453ea9547c30114004fb375","5453eb12b077c31c00067bcb","5453eb27b077c31c00067bcd","5453ed5db077c31c00067bde","548075cbe291c51a00e7e096","5922fa475c48c70f00f21453","59244fd41e32eb190028ad8d"],"is_deprecated":false,"is_hidden":false,"is_beta":false,"is_stable":true,"codename":"","version_clean":"2.0.0","version":"2"},"updates":[],"next":{"pages":[],"description":""},"createdAt":"2014-10-29T15:11:16.024Z","link_external":false,"link_url":"","githubsync":"","sync_unique":"","hidden":false,"api":{"basic_auth":true,"examples":{"codes":[{"name":null,"language":"shell","code":"curl -X POST 'https://api.zang.io/v2/Accounts/{account_sid}/Lookups/Carrier' -u '{account_sid}:{auth_token}' -d 'PhoneNumber=19087654321'"}]},"method":"post","results":{"codes":[{"name":"","code":"<Response>\n\t<CarrierLookup>\n\t\t<PhoneNumber>+19085143801</PhoneNumber>\n\t\t<DateUpdated>Fri, 11 Nov 2016 17:10:47 -0000</DateUpdated>\n\t\t<Price>0.00</Price>\n\t\t<CarrierId>20294</CarrierId>\n\t\t<CountryCode>US</CountryCode>\n\t\t<Network>Verizon Wireless</Network>\n\t\t<Mobile>true</Mobile>          \n\t\t<Uri>/v2/Accounts/{account_sid}/Carrier/{carrier_lookup_sid}</Uri>\n\t\t<AccountSid>{account_sid}</AccountSid>\n\t\t<Sid>{carrier_lookup_sid}</Sid>\n\t\t<DateCreated>Fri, 11 Nov 2016 17:10:47 -0000</DateCreated>\n\t\t<ApiVersion>v2</ApiVersion>\n\t</CarrierLookup>\n</Response>","language":"xml","status":200}]},"settings":"","try":true,"auth":"required","params":[{"_id":"5451f09aa66f020800dbae25","ref":"","in":"body","required":true,"desc":"The number of the phone you are attempting to perform the carrier lookup on. Multiple PhoneNumbers to lookup can be specified in a single request.","default":"","type":"array_object","name":"PhoneNumber"}],"url":"/v2/Accounts/{AccountSid}/Lookups/Carrier.json"},"isReference":false,"order":0,"body":"[block:parameters]\n{\n  \"data\": {\n    \"0-0\": \"sid\",\n    \"0-1\": \"An alphanumeric string identifying this resource.\",\n    \"1-0\": \"account_sid\",\n    \"1-1\": \"An alphanumeric string identifying the account this lookup occurred through.\",\n    \"2-0\": \"date_created\",\n    \"2-1\": \"The date the lookup resource was created.\",\n    \"3-0\": \"date_updated\",\n    \"3-1\": \"The date the lookup resource was last updated.\",\n    \"4-0\": \"phone_number\",\n    \"4-1\": \"The phone number the lookup was performed on.\",\n    \"5-0\": \"network\",\n    \"5-1\": \"The carrier the phone number is currently operating on.\",\n    \"6-0\": \"mobile\",\n    \"6-1\": \"Boolean value specifying whether the phone number is mobile.\",\n    \"7-0\": \"carrier_id\",\n    \"7-1\": \"Four digit Carrier Identification Code.\",\n    \"8-0\": \"country_code\",\n    \"8-1\": \"The iso country code of the mobile number.\",\n    \"9-0\": \"mnc\",\n    \"9-1\": \"The Mobile Network Code is only returned if available. It is used in conjunction with Mcc to uniquely identify a carrier.\",\n    \"10-0\": \"mcc\",\n    \"10-1\": \"The Mobile Country Code is only returned if available. It is used in conjunction with Mnc to uniquely identify a carrier.\",\n    \"11-0\": \"price\",\n    \"11-1\": \"The cost of the lookup.\",\n    \"12-0\": \"api_version\",\n    \"12-1\": \"The API version being used when the carrier lookup was made.\",\n    \"13-0\": \"uri\",\n    \"13-1\": \"The Uniform Resource Identifier to this resource.\",\n    \"h-0\": \"Parameter\",\n    \"h-1\": \"Description\"\n  },\n  \"cols\": 2,\n  \"rows\": 14\n}\n[/block]","excerpt":"The Carrier Lookup API allows you to retrieve additional information about a phone number.","slug":"carrier-lookup","type":"endpoint","title":"Carrier Lookup"}

postCarrier Lookup

The Carrier Lookup API allows you to retrieve additional information about a phone number.

Definition

{{ api_url }}{{ page_api_url }}

Parameters

Body Params

PhoneNumber:
required
array of objects
The number of the phone you are attempting to perform the carrier lookup on. Multiple PhoneNumbers to lookup can be specified in a single request.

Examples


Result Format


Documentation

[block:parameters] { "data": { "0-0": "sid", "0-1": "An alphanumeric string identifying this resource.", "1-0": "account_sid", "1-1": "An alphanumeric string identifying the account this lookup occurred through.", "2-0": "date_created", "2-1": "The date the lookup resource was created.", "3-0": "date_updated", "3-1": "The date the lookup resource was last updated.", "4-0": "phone_number", "4-1": "The phone number the lookup was performed on.", "5-0": "network", "5-1": "The carrier the phone number is currently operating on.", "6-0": "mobile", "6-1": "Boolean value specifying whether the phone number is mobile.", "7-0": "carrier_id", "7-1": "Four digit Carrier Identification Code.", "8-0": "country_code", "8-1": "The iso country code of the mobile number.", "9-0": "mnc", "9-1": "The Mobile Network Code is only returned if available. It is used in conjunction with Mcc to uniquely identify a carrier.", "10-0": "mcc", "10-1": "The Mobile Country Code is only returned if available. It is used in conjunction with Mnc to uniquely identify a carrier.", "11-0": "price", "11-1": "The cost of the lookup.", "12-0": "api_version", "12-1": "The API version being used when the carrier lookup was made.", "13-0": "uri", "13-1": "The Uniform Resource Identifier to this resource.", "h-0": "Parameter", "h-1": "Description" }, "cols": 2, "rows": 14 } [/block]