Here are the different codes that will work to add ads/listings output to your site:

First you need to know your company's cli #
Use your company's cli instead of the sample account cli=392
To find out our Agency CLI and your agent UID CLICK HERE TO LOG IN. The information is right on top next to the BostonApartments.com logo.

To display all the rental ads without a search:
http://www.bostonapartments.com/cli.php?cli=392

This link above displays with the following defaults: display advertised (active) listings, display 25 ads per page, display the results in a table that is 630 pixels wide and has a 4 column output.

You may customize the address and use the variables as follows:

http://www.bostonapartments.com/cli.php?cli=392&type=1&per_page=10&tablewidth=550&STATUS=avail&htype=ns&template=1colpix

tablewidth can be set by adding tablewidth=550 (where 550 is the # of pixels wide you want the output data)

FEATURES_FURNISHED can be set to "=on" or "=off" ( eg: http://www.bostonapartments.com/cli.php?cli=392&FEATURES_FURNISHED=on ) It on, only the furnished listings (where the box is checked in the features section of the input screen for listings/ads). If set to "=off" then only unfurnished ads will show. If not passed as a variable, all ads whether furnished or unfurnished will show.

type can be substituted as follows:
VALUETYPE
1Rental (default)
2Sale
3Commercial Sale
4Commercial Rental
5Parking Spaces - Rent
6Parking Spaces - Sale
7Parking Spaces - Wanted
8Vacation Rental
9Rent To Own
10Business Opportunities
11Senior Living Rental
12Senior Living Sale
13Bank Owned

per_page is how many ads per page to paginate. The default is 25 ads per page.

You can pass different variable settings to cli.php producing links for different styles of output:

Setting STATUS variable to "avail" will show all "available listings" and NOT the "advertised". Setting STATUS to "active" will show advertised listings. (this is default). If you set the STATUS variable to "both", only listings that are marked available and advertised will show.

You can further customize the page by passing a "template" variable. Currently: 2col, 3col, 4col, templates are available. Customized list templates are available upon request. You can produce the output without stationary by setting "htype" variable to "ns". Custonm detail sheet layouts are also available.

You can use a form to search. There's a sample form at: http://www.bostonapartments.com/developer/form.html

You can pass along any fields in a hidden field like # of ads per page, the cli, etc.

If you want a photo gallery instead of a grid of photos (2x2 by how many rows - the default) you can pass the variable by adding " &gallery=yes ".

Other fields accepted are:

Date
VALUE MONTH
01 January
02 February
03 March
04 April
05 May
06 June
07 July
08 August
09 September
10 October
11 November
12 December

agency this is used for agencies that have more than one office sharing a central database. Each office has an agency value in addition to the cli for the over all master agency. Not parsing an agency when you have sub-agencies will give only those listings assigned to the master account. adding &agency=off to the URL or as a value in a hidden field in a form will allow searching all listings for all sub-agencies as well as the master agency.

uid default is none so all the office listings show. You can add &uid=#### (where #### is the agent UID) so that only the ads for a specific agent in the company will be outputted vs. the whole office's listings.

usig default is no. You can add &usig=yes or parse as a hidden field in a form so that the Personalized Agent Signatures will appear in the output.

sig default is no. You can add &sig=yes or parse as a hidden field in a form so that the Company signature string will appear at the top of the list of ads.

If you want your company signature after each ad (a bit annoying to the reader), you need to have a custom ad template on line. You would then add &template=the_name_of_the_template to the request string or as a hidden field in a form.

Bedrooms
VALUE# bedrooms
0.25LOFT
0.50STUDIO
0.75STUDIO + ALCOVE
0.76STUDIO - 2 ROOMS
0.79STUDIO+LOFT BED
1.001 BEDROOM
1.501 BEDROOM SPLIT
1.751 BEDROOM PLUS
1.781 BEDROOM LOFT
2.002 BEDROOM
2.502 BEDROOM SPLIT
2.752 BEDROOM PLUS
2.782 BEDROOM LOFT
3.003 BEDROOM
3.503 BEDROOM SPLIT
3.753 BEDROOM PLUS
3.783 BEDROOM LOFT
4.004 BEDROOM
4.504 BEDROOM SPLIT
4.754 BEDROOM PLUS
4.784 BEDROOM LOFT
5.005 BEDROOM
5.505 BEDROOM SPLIT
5.755 BEDROOM PLUS
5.785 BEDROOM LOFT
6.006 BEDROOM
7.007 BEDROOM
8.008 BEDROOM
9.009 BEDROOM
10.0010 BEDROOM
11.0011 BEDROOM
12.0012 BEDROOM
13.0013 BEDROOM
14.0014 BEDROOM
15.0015 BEDROOM
16.0016 BEDROOM
17.0017 BEDROOM
18.0018 BEDROOM
19.0019 BEDROOM
20.0020 BEDROOM

Location
VALUETown/Area
1ABINGTON
2ACTON
3ACUSHNET
4ADAMS
5AGAWAM
6ALFORD
7AMESBURY
8AMHERST
9ANDOVER
10ARLINGTON
11ASHBY
12ASHFIELD
13ASHLAND
14ATHOL
15ATTLEBORO
16AUBURN
17AVON
18AYER
19BARNSTABLE
20BARRE
481BARRINGTON, RI
21BECKET
22BEDFORD
375BEDFORD, NH
23BELCHERTOWN
24BELLINGHAM
25BELMONT
26BERKLEY
27BERLIN
28BERNARDSTON
29BEVERLY
30BILLERICA
31BLACKSTONE
32BLANDFORD
483BLOCK ISLAND, RI
33BOLTON
403BONDSVILLE
34BOSTON - ALLSTON
35BOSTON - BACK BAY
36BOSTON - BAY VILLAGE
37BOSTON - BEACON HILL
38BOSTON - BERKLEE COLLEGE AREA
39BOSTON - BOSTON UNIVERSITY AREA
40BOSTON - BRIGHAM CIRCLE
41BOSTON - BRIGHTON
42BOSTON - Brookline Line
398BOSTON - CHARLES RIVER PARK
86BOSTON - CHARLESTOWN
43BOSTON - CHINATOWN
44BOSTON - COPLEY SQUARE
45BOSTON - DORCHESTER
46BOSTON - DOWNTOWN
47BOSTON - EAST BOSTON
381BOSTON - EMERSON COLLEGE AREA
48BOSTON - FENWAY
49BOSTON - FINANCIAL DISTRICT
404BOSTON - FORT HILL
389BOSTON - FORT POINT
50BOSTON - FORT POINT CHANNEL
51BOSTON - GOVERNMENT CENTER
177BOSTON - HYDE PARK
52BOSTON - JAMAICA PLAIN
53BOSTON - KENMORE SQUARE
400BOSTON - LADDER DISTRICT
54BOSTON - LEATHER DISTRICT
55BOSTON - LONGWOOD
388BOSTON - MATTAPAN
56BOSTON - MISSION HILL
395BOSTON - NEPONSET CIRCLE
57BOSTON - NORTH END
58BOSTON - NORTHEASTERN UNIV. AREA
379BOSTON - PRUDENTIAL AREA
386BOSTON - READVILLE
59BOSTON - ROSLINDALE
60BOSTON - ROXBURY
61BOSTON - SEAPORT DISTRICT
62BOSTON - SOUTH BOSTON
63BOSTON - SOUTH END
382BOSTON - SOUTH STATION
387BOSTON - SUFFOLK UNIV. AREA
64BOSTON - SYMPHONY
378BOSTON - THEATER DISTRICT
65BOSTON - WATERFRONT
66BOSTON - WEST END
67BOSTON - WEST ROXBURY
68BOURNE
69BOXBOROUGH
70BOXFORD
71BOYLSTON
392BRADFORD
72BRAINTREE
73BREWSTER
74BRIDGEWATER
75BRIMFIELD
482BRISTOL, RI
76BROCKTON
77BROOKFIELD
78BROOKLINE
461BROOKLINE - ASPINWALL HILL
462BROOKLINE - BEACONSFIELD
463BROOKLINE - BROOKLINE HILLS
464BROOKLINE - BROOKLINE VILLAGE
465BROOKLINE - BUTTONWOOD VILLAGE
466BROOKLINE - CHESTNUT HILL
467BROOKLINE - CLEVELAND CIRCLE
468BROOKLINE - COOLIDGE CORNER
469BROOKLINE - COREY FARM
470BROOKLINE - COREY HILL
471BROOKLINE - COTTAGE FARM
472BROOKLINE - FISHER HILL
473BROOKLINE - LONGWOOD
474BROOKLINE - NORTH BROOKLINE
475BROOKLINE - PILL HILL
476BROOKLINE - PUTTERHAM CIRCLE
477BROOKLINE - RUNKLE DISTRICT
478BROOKLINE - SOUTH BROOKLINE
479BROOKLINE - WASHINGTON SQUARE
480BROOKLINE - WHISKEY POINT
79BUCKLAND
80BURLINGTON
484BURRILLVILLE, RI
81CAMBRIDGE
411CAMBRIDGE - AGASSIZ
412CAMBRIDGE - AVON HILL
413CAMBRIDGE - CAMBRIDGE HIGHLANDS
414CAMBRIDGE - CAMBRIDGEPORT
415CAMBRIDGE - CENTRAL SQUARE
416CAMBRIDGE - COOLIDGE HILL
417CAMBRIDGE - EAST CAMBRIDGE
442CAMBRIDGE - FRESH POND
418CAMBRIDGE - HARVARD SQUARE
441CAMBRIDGE - HURON VILLAGE
419CAMBRIDGE - INMAN SQUARE
420CAMBRIDGE - KENDALL SQUARE
421CAMBRIDGE - MID CAMBRIDGE
443CAMBRIDGE - Near Harvard
422CAMBRIDGE - NORTH CAMBRIDGE
423CAMBRIDGE - PORTER SQUARE
445CAMBRIDGE - RADCLIFFE
424CAMBRIDGE - RIVERSIDE
425CAMBRIDGE - STRAWBERRY HILL
426CAMBRIDGE - WEST CAMBRIDGE
82CANTON
83CAPE COD
391CARLISLE
84CARVER
485CENTRAL FALLS, RI
85CHARLEMONT
486CHARLESTOWN, RI
87CHATHAM
88CHELMSFORD
89CHELSEA
90CHESHIRE
91CHESTER
92CHESTERFIELD
93CHICOPEE
94CHILMARK
95CLARKSBURG
96CLINTON
97COHASSET
98COLRAIN
99CONCORD
100CONWAY
487COVENTRY, RI
405CRANSTON, RI
401CUMBERLAND, RI
101CUMMINGTON
102DALTON
103DANVERS
104DARTMOUTH
105DEDHAM
106DEERFIELD
107DENNIS
376DERRY, NH
108DIGHTON
109DOUGLAS
110DOVER
111DRACUT
112DUDLEY
113DUNSTABLE
114DUXBURY
116EAST BRIDGEWATER
117EAST BROOKFIELD
488EAST GREENWICH, RI
118EAST LONGMEADOW
489EAST PROVIDENCE, RI
119EASTHAM
120EASTHAMPTON
121EASTON
122EDGARTOWN
123EGREMONT
124ERVING
125ESSEX
126EVERETT
490EXETER, RI
127FAIRHAVEN
128FALL RIVER
129FALMOUTH
130FITCHBURG
131FLORIDA
491FOSTER, RI
132FOXBORO
133FRAMINGHAM
134FRANKLIN
135FREETOWN
136GARDNER
137GAY HEAD
138GEORGETOWN
139GILL
140GLOUCESTER
492GLOUCESTER, RI
410GOFFSTOWN, NH
141GOSHEN
142GOSNOLD
143GRAFTON
144GRANBY
145GRANVILLE
146GREAT BARRINGTON
147GREENFIELD
148GROTON
149GROVELAND
150HADLEY
151HALIFAX
152HAMILTON
153HAMPDEN
154HANCOCK
155HANOVER
156HANSON
157HARDWICK
158HARVARD
159HARWICH
160HATFIELD
161HAVERHILL
162HAWLEY
163HEATH
164HINGHAM
165HINSDALE
166HOLBROOK
167HOLDEN
168HOLLAND
169HOLLISTON
170HOLYOKE
171HOPEDALE
172HOPKINTON
493HOPKINTON, RI
173HUBBARDSTON
174HUDSON
175HULL
176HUNTINGTON
178IPSWICH
494JAMESTOWN, RI
406JOHNSTON, RI
180KINGSTON
179KINGSTON, RI
384LAKE WINNIPESAUKEE, NH
181LAKEVILLE
182LANCASTER
183LANESBOROUGH
184LAWRENCE
185LEE
186LEICESTER
187LENOX
188LEOMINSTER
189LEVERETT
190LEXINGTON
191LEYDEN
192LINCOLN
495LINCOLN, RI
496LITTLE COMPTON, RI
193LITTLETON
194LONGMEADOW
195LOWELL
196LUDLOW
197LUNENBURG
198LYNN
199LYNNFIELD
200MALDEN
201MANCHESTER
383MANCHESTER, NH
202MANSFIELD
203MARBLEHEAD
204MARION
205MARLBOROUGH
206MARSHFIELD
207MARTHA'S VINEYARD
208MASHPEE
210MATTAPOISETT
211MAYNARD
212MEDFIELD
213MEDFORD
214MEDWAY
215MELROSE
216MENDON
217MERRIMAC
218METHUEN
219MIDDLEBOROUGH
220MIDDLEFIELD
221MIDDLETON
497MIDDLETOWN, RI
222MILFORD
223MILLBURY
224MILLIS
225MILLVILLE
226MILTON
227MONROE
228MONSON
229MONTAGUE
230MONTEREY
231MONTGOMERY
232MOUNT WASHINGTON
233NAHANT
234NANTUCKET
498NARRAGANSETT, RI
390NASHUA, NH
235NATICK
236NEEDHAM
237NEW ASHFORD
238NEW BEDFORD
239NEW BRAINTREE
240NEW MARLBOROUGH
241NEW SALEM
500NEW SHOREHAM, RI
242NEWBURY
243NEWBURYPORT
447NEWMARKET, NH
499NEWPORT, RI
244NEWTON
448NEWTON - AUBURNDALE
449NEWTON - CHESTNUT HILL
452NEWTON - HIGHLANDS
453NEWTON - LOWER FALLS
450NEWTON - NEWTON CENTRE
451NEWTON - NEWTON CORNER
455NEWTON - NEWTONVILLE
456NEWTON - NONANTUM
457NEWTON - OAK HILL
458NEWTON - THOMPSONVILLE
454NEWTON - UPPER FALLS
459NEWTON - WABAN
460NEWTON - WEST NEWTON
245NORFOLK
246NORTH ADAMS
397NORTH ANDOVER
247NORTH ATTLEBOROUGH
248NORTH BROOKFIELD
501NORTH KINGSTOWN, RI
502NORTH PROVIDENCE, RI
249NORTH READING
503NORTH SMITHFIELD, RI
250NORTHAMPTON
251NORTHBOROUGH
252NORTHBRIDGE
253NORTHFIELD
254NORTON
255NORWELL
256NORWOOD
257OAK BLUFFS
258OAKHAM
393ONSET
259ORANGE
260ORLEANS
399OSTERVILLE
261OTIS
262OXFORD
263PALMER
504PAWTUCKET, RI
264PAXTON
265PEABODY
266PELHAM
267PEMBROKE
268PEPPERELL
269PERU
270PETERSHAM
271PHILLIPSTON
272PITTSFIELD
273PLAINFIELD
274PLAINVILLE
275PLYMOUTH
276PLYMPTON
505PORTSMOUTH, RI
277PRINCETON
396PROVIDENCE, RI
278PROVINCETOWN
279QUINCY
280RANDOLPH
281RAYNHAM
282READING
283REHOBOTH
284REVERE
285RICHMOND
506RICHMOND, RI
286ROCHESTER
446ROCHESTER, NH
287ROCKLAND
288ROCKPORT
289ROWE
290ROWLEY
291ROYALSTON
292RUSSELL
293RUTLAND
294SALEM
394SALEM, NH
295SALISBURY
296SANDISFIELD
297SANDWICH
298SAUGUS
299SAVOY
300SCITUATE
507SCITUATE, RI
301SEEKONK
302SHARON
303SHEFFIELD
304SHELBURNE
305SHERBORN
306SHIRLEY
307SHREWSBURY
308SHUTESBURY
508SMITHFIELD, RI
309SOMERSET
310SOMERVILLE
427SOMERVILLE - BALL SQUARE
428SOMERVILLE - DAVIS SQUARE
429SOMERVILLE - EAST SOMERVILLE
430SOMERVILLE - INMAN SQUARE
440SOMERVILLE - KIRKLAND VILLAGE
439SOMERVILLE - MAGOUN SQUARE
444SOMERVILLE - Near Porter
431SOMERVILLE - POWDERHOUSE SQUARE
432SOMERVILLE - PROSPECT HILL
433SOMERVILLE - SPRING HILL
434SOMERVILLE - TEELE SQUARE
435SOMERVILLE - TUFTS UNIVERSITY AREA
436SOMERVILLE - UNION SQUARE
437SOMERVILLE - WEST SOMERVILLE
438SOMERVILLE - WINTER HILL
311SOUTH HADLEY
509SOUTH KINGSTOWN, RI
312SOUTHAMPTON
313SOUTHBOROUGH
314SOUTHBRIDGE
315SOUTHWICK
316SPENCER
317SPRINGFIELD
318STERLING
319STOCKBRIDGE
320STONEHAM
321STOUGHTON
322STOWE
323STURBRIDGE
324SUDBURY
325SUNDERLAND
326SUTTON
327SWAMPSCOTT
328SWANSEA
329TAUNTON
330TEMPLETON
331TEWKSBURY
332TISBURY
510TIVERTON, RI
333TOLLAND
334TOPSFIELD
335TOWNSEND
402TREMONT
336TRURO
337TYNGSBOROUGH
338TYRINGHAM
339UPTON
340UXBRIDGE
341WAKEFIELD
407WAKEFIELD, RI
342WALPOLE
343WALTHAM
344WARE
345WAREHAM
346WARREN
511WARREN, RI
347WARWICK
512WARWICK, RI
348WASHINGTON
349WATERTOWN
350WAYLAND
351WEBSTER
352WELLESLEY
353WELLFLEET
354WENDELL
355WENHAM
385WEST BRIDGEWATER
514WEST GREENWICH, RI
408WEST GREENWICH, RI
409WEST WARWICK, RI
515WEST WARWICK, RI
356WESTBOROUGH
513WESTERLY, RI
357WESTFIELD
358WESTFORD
359WESTHAMPTON
360WESTMINSTER
361WESTON
362WESTPORT
363WESTWOOD
364WEYMOUTH
365WHITMAN
366WILMINGTON
367WINCHENDON
368WINCHESTER
369WINTHROP
370WOBURN
516WOONSOCKET, RI
371WORCESTER
372WORTHINGTON
373WRENTHAM
374YARMOUTH

A list of all the variables you can parse to cli are (Case sensitive):

cli
cid (the listings id number)
type
agency
usig
per_page
pageNum
Location
Bedrooms
Date
Price
BedroomsPlus
STATUS
template
htype
college
early_day
early_month
early_year
late_day
late_month
late_year
Rent_Low
Rent_High
LOC
TYPE
CLI
SCHOOL
luxury=on (Building Style 6)
luxury_apt=y (Luxury Apt. Checked)
building_type
not_building_type
featured
border
sig
MLS (=y for yes to include MLS listings)
nofee (=1 for yes)
new (=1 for yes)
shortterm (=1 for yes)
(can be lease type TAW or short-term or the body may contain "short-term", "short term" and many other terms used commonly in short term ads.)
furnished (=1 for yes)
(can be furnished checked in the features section or say "furnished" in the body of the ad.
agenteml (the agent's UID) - This feature allows the system to make the dynamic forms for listings go to a particular agent. For example if you search through an agent site vs. the office site response forms will be emailed to the agent vs. the office.
ahf=1 for agent headers and footers vs. office ones
dogs=1 for Dog Only Listings
pets=1 for Pet Only Listings

The natural sorting order is:
LOCNAME, STATUS_SALE (so sold show at the end in sales), PRICE, ROOMS (size).
You can sort by date by adding: &sort=date and the order will be:
LOCNAME, STATUS_SALE (so sold show at the end in sales), PRICE, ROOMS (size), AVAIL.
You can sort by price by adding: &sort=price and the order will be:
PRICE (lowest to highest), LOCNAME, STATUS_SALE (so sold show at the end in sales), ROOMS (size), AVAIL.
For the order to go highest price to lowest price add: &sort=priceh SIZE (smallest to biggest), AVAIL, PRICE (lowest to highest), LOCNAME.
For the order to go by size in the above order add: &sort=size2
SIZE (smallest to biggest), PRICE (lowest to highest), AVAIL, LOCNAME.
For the order to go by size in the above order add: &sort=size2 WhenUsing MLS you may want your listings to show before the MLS Listings. Which will sort High Price To Low, Location, etc. With Company Listings First.
For the order to go by size in the above order add: &sort=cosortph

You can submit to BostonApartments.com customized headers and footers or use a ns (non skinned output) for each type of ad/listing. Headers and footers must be written to have full URL's for all calls to graphics and links. The header and footer template files should be put in "BostonApartments.com Templates" under the "Admin" menu when logged into the database system.

Any questions, give me a call at 617-254-5501.

I do have some dynamic forms available that can be plugged in that'll only give search capability for options that have a positive result like only the towns where listing are rather than the whole list over every city/town. Documentation for those will be coming soon.