Marchex Call Ad Network

API Documentation, version 1.0.



The Marchex Call Ad Network API allows publishers to query for pay-for-performance call-based ads in real time. Publishers can conduct a specific search for one or more ads, or request the full set of ads available to them for display.

Note: In order for phone calls to be properly tracked, the "ctn" field specified with each ad must be used. The "phone" field, if available, merely specifies the final number to which calls are directed after being tracked.


API Requests and Encoding

The API expects all requests to be properly URL-encoded URIs.

For more information on URL encoding, please see Percent-encoding.

For more information on Uniform Resource Identifiers, please see RFC 3986.

A summary of allowed URI characters follows:

Summary of Valid URL Characters
SetCharactersURL usage
Alphanumeric a b c d e f g h i j k l m n o p q r s t u v w x y z A B C D E F G H I J K L M N O P Q R S T U V W X Y Z 0 1 2 3 4 5 6 7 8 9 Text strings, scheme usage (http), port (8080), etc.
Unreserved - _ . ~ Text strings
Reserved ! * ' ( ) ; : @ & = + $ , / ? % # [ ] Control characters and/or Text Strings

Response Formats

The Marchex Call Ad Network API supports responses in xml (default), json, and css.

All responses contain three sections:

Response Structure - Sample XML

	<?xml version="1.0" encoding="utf-8" ?>
				<title>Get insured today!</title>
				<address>123 Main Street</address>
				<title>Insure your car today!</title>
				<address>200 Pine Street</address>

Response Structure - Sample JSON

			"title":"Get insured today!",
			"address":"123 Main Street",
			"title":"Insure your car today!",
			"address":"200 Pine Street",

Retrieving Ads

Retrieve Full Set

Use this method to retrieve the full set of ads. Note that the response to this request may be rather large.

Method name: all
Calling styles: GET only
Parameters: none

Sample request:

Search by Proximity

Use this method to select ads within a specific geographic region.

Method name: proximity
Calling styles: GET
  • latitude
  • longitude
  • radius
  • unit - mile or kilometer
  • Sample request:

    Search by Destination Phone

    Use this method to select ads that direct paid calls to specific phone numbers.

    Method name: phones
    Calling styles: GET or POST (POST preferred)
  • phones - comma separated list of NPANXXxxxx-formatted phone numbers
  • Notes:
  • Ads will contain a 'requested-phone' field that can be used to match the requested phone number to a matching ad
  • Sample request:,8002343638

    Open Search

    Use this method to search for ads based on specific criteria.

    Method name: search
    Calling styles: GET or POST
  • city
  • state
  • zip
  • keywords
  • mode - and or or
  • Sample request:

    Obtaining an API Key

    To obtain a valid publisher API key, please contact


    This document represents version 1.0 of the Marchex Call Ad Network API.