LeadGen Consumer:Request Parameters: Difference between revisions
Created page with "{{LGXConsumerNav |RequestCollapse= }} {{CustomTOC}} ==Standard Components== {|class="alternate01" cellspacing="0" !Parameter !style="border-right:0px;"|Definition |- |Domai..." |
No edit summary |
||
Line 76: | Line 76: | ||
{|class="alternate01" cellspacing="0" | {|class="alternate01" cellspacing="0" | ||
!URL Parameter | !URL Parameter | ||
! | !Format | ||
!Required | !Required | ||
!Optional | !Optional | ||
!style="border-right:0px;"|Get/Buy | |||
!style="border-right:0px;"| | |||
|- | |- | ||
|zip? | |zip? | ||
|5-digit ZIP or 9-digit ZIP+4. Multiple ZIP or ZIP+4 can be requested, comma separated with no space. | |5-digit ZIP or 9-digit ZIP+4. Multiple ZIP or ZIP+4 can be requested, comma separated with no space. | ||
Line 177: | Line 86: | ||
| | | | ||
|Get/Buy | |Get/Buy | ||
|- | |- | ||
|city? | |city? | ||
|2-digit state;city name. Multiple cities be requested, comma separated with no space. | |2-digit state;city name. Multiple cities be requested, comma separated with no space. | ||
Line 185: | Line 92: | ||
| | | | ||
|Get/Buy | |Get/Buy | ||
|- | |- | ||
|county? | |county? | ||
|2-digit state;county name. Multiple counties be requested, comma separated with no space. | |2-digit state;county name. Multiple counties be requested, comma separated with no space. | ||
Line 193: | Line 98: | ||
| | | | ||
|Get/Buy | |Get/Buy | ||
|- | |- | ||
|state? | |state? | ||
|2-digit state. State requests will return records from a specified state. Multiple states be requested, comma separated with no space. | |2-digit state. State requests will return records from a specified state. Multiple states be requested, comma separated with no space. | ||
Line 203: | Line 104: | ||
| | | | ||
|Get/Buy | |Get/Buy | ||
|- | |- | ||
|radius? | |radius? | ||
|Radius requests will return the nearest records to the selected address, up to 100,000 records (65,535 when requesting Excel files). | |Radius requests will return the nearest records to the selected address, up to 100,000 records (65,535 when requesting Excel files). | ||
Line 213: | Line 112: | ||
strzip= | strzip= | ||
|Get/Buy | |Get/Buy | ||
|- | |- | ||
|street? | |street? | ||
|Returns the records from a specified street within a specified ZIP code. | |Returns the records from a specified street within a specified ZIP code. | ||
Line 221: | Line 118: | ||
| | | | ||
|Get/Buy | |Get/Buy | ||
|- | |- | ||
|CitiesByCounty? | |CitiesByCounty? | ||
|Returns a complete list of cities within the specified U.S. County. | |Returns a complete list of cities within the specified U.S. County. | ||
Line 229: | Line 124: | ||
| | | | ||
|Get | |Get | ||
|- | |- | ||
|CitiesByState? | |CitiesByState? | ||
|Returns a complete list of cities within the specified U.S. State. | |Returns a complete list of cities within the specified U.S. State. | ||
Line 237: | Line 130: | ||
| | | | ||
|Get | |Get | ||
|- | |- | ||
|CountiesByState? | |CountiesByState? | ||
|Returns a complete list of counties within the specified U.S. State. | |Returns a complete list of counties within the specified U.S. State. | ||
Line 245: | Line 136: | ||
| | | | ||
|Get | |Get | ||
|- | |- | ||
|States? | |States? | ||
|Returns a complete list of Sates within the United States of America. | |Returns a complete list of Sates within the United States of America. | ||
Line 253: | Line 142: | ||
| | | | ||
|Get | |Get | ||
|- | |- | ||
|ZipsByCity? | |ZipsByCity? | ||
|Returns a complete list of ZIP Codes within the specified City. State is separated from city with a “;” semi-colon. Multiple entries are delimited with a “,” comma. | |Returns a complete list of ZIP Codes within the specified City. State is separated from city with a “;” semi-colon. Multiple entries are delimited with a “,” comma. | ||
Line 261: | Line 148: | ||
| | | | ||
|Get | |Get | ||
|} | |} | ||
==Examples== | |||
{|class="alternate01" cellspacing="0" | |||
!URL Parameter | |||
!style="border-right:0px;"|Example URL | |||
|- | |||
|zip? | |||
|<code>http://list.melissadata.net/V1/Consumer/rest/Service.svc/get/zip?id=customer@domain.com&zip=926882112,92612</code> | |||
|- | |||
|city? | |||
|<code>http://list.melissadata.net/V1/Consumer/rest/Service.svc/get/city?id=customer@domain.com&city=ca;irvine,tx;dallas</code> | |||
|- | |||
|county? | |||
|<code>http://list.melissadata.net/V1/Consumer/rest/Service.svc/get/county?id=customer@domain.com&county=ca;lake,ak;anchorage</code> | |||
|- | |||
|state? | |||
|<code>http://list.melissadata.net/V1/Consumer/rest/Service.svc/get/state?id=customer@domain.com&st=ca,ak</code> | |||
|- | |||
|radius? | |||
|<code>http://list.melissadata.net/V1/Consumer/rest/Service.svc/get/radius?id=customer@domain.com&addr=22382avenidaempresa&zip=92688&records=100&mile=1</code> | |||
|- | |||
|street? | |||
|<code>http://list.melissadata.net/V1/Consumer/rest/Service.svc/get/street?id=customer@domain.com&zip=92688&str=empresa</code> | |||
|- | |||
|CitiesByCounty? | |||
|<code>http://list.melissadata.net/V1/Consumer/rest/Service.svc/get/CitiesByCounty?id=customer@domain.com&st=ca&county=orange</code> | |||
|- | |||
|CitiesByState? | |||
|<code>http://list.melissadata.net/V1/Consumer/rest/Service.svc/get/CitiesByState?id=customer@domain.com&st=ak</code> | |||
|- | |||
|CountiesByState? | |||
|<code>http://list.melissadata.net/V1/Consumer/rest/Service.svc/get/CountiesByState?id=customer@domain.com&st=ak</code> | |||
|- | |||
|States? | |||
|<code>http://list.melissadata.net/V1/Consumer/rest/Service.svc/get/States?id=customer@domain.com</code> | |||
|- | |||
|ZipsByCity? | |||
|<code>http://list.melissadata.net/V1/Consumer/rest/Service.svc/get/ZipsByCity?id=customer@domain.com&city=ca;irvine,ca;tustin</code> | |||
|} | |||
Revision as of 23:46, 10 July 2015
LeadGen Consumer Navigation |
---|
Introduction |
Request Parameters |
XML Response |
List/File |
Consumer Result Codes |
Standard Components
Parameter | Definition |
---|---|
Domain | |
Version | Web Service version. |
Web Service | Consumer |
Protocol | REST. The protocol used by the Web Service. |
Action | "get" or "buy" |
Geographic type | ZIP, city, county, state, radius. See Geographic Types for more info. |
Customer ID | The requester’s Customer ID or email address. |
Options |
Actions
The following actions are supported by the web service:
Action | Service Description |
---|---|
Get | Get count of consumers that fit in the given criteria. |
Buy | Buy a list of consumers’ info that fit the given criteria. |
Authentication
Each Customer’s ID or email address is passed in as id in the URL. It is checked against the list of registered customers.
Required
URL Parameter | Description |
---|---|
id | Required. User ID or Email Address. You must be subscribed to the LeadGen Customer Web Service. |
Geographic Types
Each request must specify a geographic type.
Don't forget! The call URL format: Consumer Call Format.
URL Parameter | Format | Required | Optional | Get/Buy |
---|---|---|---|---|
zip? | 5-digit ZIP or 9-digit ZIP+4. Multiple ZIP or ZIP+4 can be requested, comma separated with no space. | zip= | Get/Buy | |
city? | 2-digit state;city name. Multiple cities be requested, comma separated with no space. | city= | Get/Buy | |
county? | 2-digit state;county name. Multiple counties be requested, comma separated with no space. | county= | Get/Buy | |
state? | 2-digit state. State requests will return records from a specified state. Multiple states be requested, comma separated with no space. | st= | Get/Buy | |
radius? | Radius requests will return the nearest records to the selected address, up to 100,000 records (65,535 when requesting Excel files). | records= | mile=
str= strzip= |
Get/Buy |
street? | Returns the records from a specified street within a specified ZIP code. | Get/Buy | ||
CitiesByCounty? | Returns a complete list of cities within the specified U.S. County. | Get | ||
CitiesByState? | Returns a complete list of cities within the specified U.S. State. | Get | ||
CountiesByState? | Returns a complete list of counties within the specified U.S. State. | Get | ||
States? | Returns a complete list of Sates within the United States of America. | Get | ||
ZipsByCity? | Returns a complete list of ZIP Codes within the specified City. State is separated from city with a “;” semi-colon. Multiple entries are delimited with a “,” comma. | Get |
Examples
Options
Each request takes a set of geographic input. Consumer address types and other input are optional with default values, as well as purchase options. See Columns in File for the format of all columns appended to file.
Geographic Options
URL Parameter | Geographic Type | Description |
---|---|---|
str |
Required: street Optional: radius |
For street: If exact street name cannot be found, similar street names will be returned. Ex: If no street called “Gilberto” is found, similar streets like “Gilberto Ave” and “Gilberton” will be returned. For radius: Exact street name will be searched within the radius. If nothing found, nothing is returned. |
records | Required: radius |
Defines the number of records to be returned. |
mile | Optional: radius | Defines the number of miles from &addr and &zip a record can be returned. If used with &records the search will be for the specified number of records within the given number of miles. Maximum value is 10. |
strzip | Optional: radius | All addresses within the radius and with this zip will be returned. |
Demographic Options
URL Parameter | Description | Default Value | Optional Output Parameter | ||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
hInc | Household Income. With no input, it will include all. When 0, this option will not be considered. May be dash delimited to include specific ranges. | N/A |
Include all: hInc= To specify: hInc-d=xx
| ||||||||||||||||||||||||||||
cAge | Contact Age Group. With no input, it will include all. When 0, this option will not be considered. May be dash delimited to include specific ranges. | N/A |
Include all: cAge= To specify: cAge-d=xx
|
Purchase Options
The following options are for buy requestes only.
URL Parameter | Description | Default Value | Optional Output Parameter | ||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
multi | Buy Requests Only. By default, purchased lists may be used once. With this parameter included in the Buy call, you can purchase the right to use a list for multiple mailings. Specify the number of uses like this: multi=4. The maximum number of uses allowed for any purchased list is 5. | multi=1 | multi=(1 through 5) | ||||||||||||||||||
file | Buy Requests Only. Defines the desired file format of a purchased list. | file=8 |
| ||||||||||||||||||
po | Buy Requests Only. Defines the customer’s purchase order number. | N/A | To specify: po=xxxx |
General Options
URL Parameter | Description | Default Value | Optional Output Parameter |
---|---|---|---|
dbug | Parameter check. If a parameter in the url is spelled wrong or not suited for the given call, the request will be rejected. | dbug=0 | To check: dbug=1 |