Use this endpoint to call various consumer service actions.
LeadGen - Consumer
LeadGen Consumer Cloud API offers a real-time REST-based solution, enabling users to select, retrieve counts, and purchase customized consumer mailing lists.
The LeadGen Cloud APIs are at the disposal of mailers, whether for private in-house use or as a customer-facing portal for list selection.
Documentation
Useful Resources
Product Page
Support Center
There are two available actions: get and buy. get: Get count of addresses that fit in the given criteria. buy: Buy a list of addresses' info that fit the given criteria.
The included Geographic Types are zip, city, county, state, radius, circle, and polygon.
Customer ID, License Key, or Email Address. This is checked against the list of registered customers.
Geographic Type
- Required: zip
- Optional: radius
Handling: Plus4 is a filter in data selection.
Geographic Type
- Required: city
- Optional: radius
Handling: Each city and state combination is valid
Geographic Type
- Required: county
Handling: Each county and state combination is validated. FIPS is retrieved if valid.
Geographic Type
- Required: state
- Optional: radius
Handling: Two-digit state code is validated.
Geographic Type
- Required: radius
Handling: Exact street number and street name are used in data selection. No validation. Latitude and longitude are retrieved if the address exists.
Geographic Type
- Required: circle
- Optional: radius (Mile or record must be given.)
Handling: Mile is used to find out the latitude and longitude of a parameter for many miles away from the given address. For radius type, maximum is 50 miles. For circle type, the radius must be between .025 and 25 miles
Geographic Type
- Optional: radius (Mile or record must be given.)
Handling: Number of records that are closest to the given address
Geographic Type
- Optional: radius
Handling: A street name within the given zip. (The street name needs to be exact.)
Geographic Type
- Optional: radius
Handling: Zip for a specific street that is within the given radius (combination with a given address.)
Geographic Type
- Required: polygon
Handling: Each set of points for a polygon is validated and reoriented in the sequence of drawing.
Default: all inclusive. Otherwise specify the index; use '-' dash to specify multiple ranges, i.e.: hInc-d=2-3-5
Various ranges of household incomes:
1- $0 - 14,9992- $15,000 - 19,9993- $20,000 - 29,9994- $30,000 - 39,9995- $40,000 - 49,9996- $50,000 - 74,9997- $75,000 - 99,9998- $100,000 - 124,9999- $125,000 - 149,99910- $150,000 - 174,99911- $175,000 - 199,99912- $200,000 - 249,99913- $250,000+
Meaning: Append contact age group info to file if exists (frequency 84.2%)
Default: cAge=0
To append: cAge=1
Default: all inclusive. Otherwise specify the index; use '-' dash to specify multiple ranges, i.e.: cAge-d=2-3-5
Various contact age groups:
1- 18-202- 21-253- 26-304- 31-355- 36-406- 41-457- 46-508- 51-559- 56-6010- 61-6511- 66-7012- 71-7513- 76+
Meaning: Append home owner/renter info to file if exists (frequency 98.5%)
Default: ownRent=0
To append: ownRent=1
Default: all inclusive. Otherwise specify the index i.e.: ownRent-d=1
Home owner or renter:
1- Home Owner2- Renter
Default: all inclusive. Otherwise specify the index; use '-' dash to specify multiple ranges, i.e.: marital-d=2-3-4
Various marital statuses:
1- Unknown2- Household contain at least 1 married person3- Household contain at least 1 single person4- Household contains both married & single NumPersonsInHousehold
Default: all inclusive. Otherwise specify the index; use '-' dash to specify multiple ranges, i.e.: resLen-d=2-3-4
Various lengths of residency:
1- 0 - 6 months2- 7 - 12 months3- 1 - 2 years4- 3 - 5 years5- 6 - 10 years6- 11 - 15 years7- 16 - 20 years8- 20 or more years
Default: all inclusive. Otherwise specify the index; use '-' dash to specify multiple ranges, i.e.: hAge-d=2-3-4
Various household age codes:
1- 18 - 242- 25 - 343- 35 - 444- 45 - 545- 55 - 646- 65 - 747- 75+
Meaning: Append number of people in household to file
Default: people=0
To append: people=1
Default: all inclusive. Otherwise specify the index; use '-' to specify multiple ranges, i.e.:people-d=2-3-4
Various numbers of people in the household:
1- 1 person2- 2 persons3- 3 persons4- 4 persons5- 5 persons6- 6 persons7- 7 persons8- 8 persons9- 9+
Meaning: Append number of adults in household to file
Default: adults=0
To append: adults=1
Default: all inclusive. Otherwise specify the index; use '-' dash to specify multiple ranges, i.e.: adults-d=2-3-4
Various numbers of adults in household:
1- 1 adult2- 2 adults3- 3 adults4- 4 adults5- 5 adults
Meaning: Append numbers of children in household to file if exists (frequency 25.5%)
Default: kids=0
To append: kids=1
Default: All inclusive. Otherwise specify the index; use '-' dash to specify multiple ranges, i.e.: kids-d=2-3-9
Various numbers of children in household:
1- 0 child2- 1 child3- 2 children4- 3 children5- 4 children6- 5 children7- 6 children8- 7 children9- 8 children10- 9 children or more
Default: all inclusive. Otherwise specify the index; use '-' dash to specify multiple ranges, i.e.: cCard-d=2-3-4
Various household credit cards:
1- Miscellaneous Credit Card2- Standard Retail Card3- Standard Specialty Card4- Upscale Retail Card5- Upscale Specific Retail Card6- Bank Card7- Oil-Gas Card8- Finance Company Card9- Travel/Entertainment Card
Meaning: Append mail responsive info to file if exists (frequency 66.5%)
Default: mail=0
To append: mail=1
Default: all inclusive.Otherwise specify the index; use '-' dash to specify multiple ranges, i.e.: mail-d=2
Various mail responsive info:
1- Mail Buyer Indicator2- Mail Donor Indicator
Meaning: Append net worth to file if exists (frequency: 69.5%)
Default: worth=0
To append: worth=1
Default: all inclusive Otherwise specify the index; use '-' dash to specify multiple ranges, i.e. worth-d=2-3-5
Various net worth ranges:
1- Less than $25,0002- $25,000-$49,9993- $50,000-$74,9994- $75,000-$99,0005- $100,000-$149,9996- $150,000-$249,9997- $250,000-$499,9998- $500,000-$749,9999- $750,00-$999,99910- $1,000,000 or more
Meaning: Append target home valuation mode in 1,000s to file if exists (frequency: 76.2%)
Default: home=0
To append: home=1
Default: all inclusive. Otherwise specify the index; use '-' dash to multiple ranges, i.e.: home-d=2-3-5
Various ranges of target home valuation mode in 1,000s:
1- $1 - 49,9992- $50,000 - 149,9993- $100,000 - 149,9994- $150,000 - 199,9995- $200,000 - 249,9996- $250,000 - 299,9997- $300,000 - 349,9998- $350,000 - 399,9999- $400,000 - 449,99910- $450,000 - 499,99911- $500,000 - 574,99912- $575,000 - 649,99913- $650,000 - 724,99914- $725,000 - 799,99915- $800,000 - 899,99916- $900,000 - 999,99917- $1,000,000 - 1,999,99918- $2,000,000+
Default: all inclusive. Otherwise specify the index, i.e.: dwell=2
Dwelling type:
1- Single and Multi-Family2- Single Family Only3- Multi-Family Only
Meaning: Records with ZIP+4 info only
Default: zip4=0
Otherwise zip4=1
returns only addresses with zip4 info
Meaning: Using USPS preferred city names
Default: usps=1
Otherwise usps=0
returns whatever city name (official name or vanity name or abbreviated) consumers entered
Meaning: Show latitude/longitude for each address in street count's response
Default: latlon=0
Otherwise latlon=1
returns latitude and longitude
Meaning: Parameter check. If a parameter is spelt wrong or not suited for the given call, the request will be rejected
Default: dbug=0
Otherwise dbug=1 to check
Meaning: Include or exclude PO box. Default is to include
Default: pobox=1
Otherwise pobox=0
Meaning: Append phone number to file if exists (frequency: 41.1%)
0 (To append, set value to 1)
Meaning: Append birth date to file if exists (frequency 84.2%)
0 (To append, set value to 1)
Meaning: Append family relationship to file if exists (frequency 99.9%)
0 (To append, set value to 1)
Meaning: Append structure year to file if exists (frequency: 52.8%)
0 (To append, set value to 1)
Meaning: Up to five orders in recent six months for suppression, comma separated with no space
Values: n/a
Meaning: Append the highest known education of the primary householder
Default: eduhh=0
To append: eduhh=1
Default: all inclusive. Otherwise specify the index; use '-' dash to specify multiple ranges, i.e.: eduhh-d=1-2
Meaning:
1- Completed High School2- Completed College3- Completed Graduate School4- Attended Vocational/Technical
Meaning: Append the highest known education in the household.
Default: eduIndv =0
To append: eduIndv=1
- Consumer Service Serverhttps://list.melissadata.net/v1/Consumer/rest/Service.svc/{action}/{geographicType}
- curl
- C#
- Python
- Java
- JavaScript
- Node.js
- PHP
- Go
- Ruby
- R
- C#+Newtonsoft
- Java8+Apache
- Payload
curl -i -X GET \
'https://list.melissadata.net/v1/Consumer/rest/Service.svc/get/city?id=REPLACE-WITH-YOUR-LICENSE-KEY&city=CA%3Borange&cAge-d=3-4-5&ownRent-d=1&dwell=2&phone=1'<Consumer>
<Geography>
<City>CA;orange</City>
</Geography>
<Options>
<ContactPersonInfo>
<ContactPersonInfo>One per Address</ContactPersonInfo>
<USPSPreferredCityNames>True</USPSPreferredCityNames>
</ContactPersonInfo>
<AdvantageDwellingType>
<Details>Single Family Only</Details>
</AdvantageDwellingType>
<Emails>
<Details>All Records</Details>
</Emails>
<ContactAgeGroup>
<Details>26-30; 31-35; 36-40</Details>
</ContactAgeGroup>
<HomeOwnerRenter>
<Details>Home Owner</Details>
</HomeOwnerRenter>
</Options>
<CountDetails>
<StreetRange>
<Street>
<StartNumber />
<EndNumber />
<Geography>Orange, CA</Geography>
<Zip />
<Count>3172</Count>
</Street>
</StreetRange>
</CountDetails>
<TotalCount>
<Count>3172</Count>
</TotalCount>
<Result>
<StatusCode>Approved</StatusCode>
</Result>
</Consumer>