# Find Facebook Ads for Real Estate

**Use case:** 

Find real estate ads on Facebook from the Meta Ad Library. See how agents and agencies advertise properties, then model your own campaigns.

## Input

```json
{
  "urls": [
    {
      "url": "https://www.facebook.com/ads/library/?active_status=active&ad_type=all&country=US&is_targeted_country=false&media_type=all&q=%22real%20estate%22&search_type=keyword_exact_phrase&sort_data[direction]=desc&sort_data[mode]=total_impressions"
    }
  ],
  "maxAds": 10,
  "fetchDetails": true,
  "proxyConfig": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}
```

## Output

```json
{
  "adArchiveId": {
    "label": "Library ID",
    "format": "text"
  },
  "collationId": {
    "label": "Collation ID",
    "format": "text"
  },
  "pageName": {
    "label": "Page",
    "format": "text"
  },
  "image": {
    "label": "Image",
    "format": "image"
  },
  "bodyText": {
    "label": "Body",
    "format": "text"
  },
  "title": {
    "label": "Title",
    "format": "text"
  },
  "publicationDate": {
    "label": "Publication Date",
    "format": "object"
  },
  "adVariations": {
    "label": "Ad Variations",
    "format": "number"
  },
  "ctaText": {
    "label": "CTA",
    "format": "text"
  },
  "linkUrl": {
    "label": "Link",
    "format": "link"
  },
  "isActive": {
    "label": "Active",
    "format": "boolean"
  },
  "hasVideo": {
    "label": "Video",
    "format": "boolean"
  },
  "platforms": {
    "label": "Platforms",
    "format": "object"
  },
  "mediaType": {
    "label": "Media Type",
    "format": "text"
  },
  "audience": {
    "label": "Audience",
    "format": "object"
  },
  "reach": {
    "label": "Reach",
    "format": "object"
  },
  "payer": {
    "label": "Payer",
    "format": "text"
  },
  "beneficiary": {
    "label": "Beneficiary",
    "format": "text"
  },
  "all_images": {
    "label": "All Images",
    "format": "object"
  },
  "all_videos": {
    "label": "All Videos",
    "format": "object"
  },
  "details_raw": {
    "label": "Details Raw",
    "format": "object"
  },
  "graphql_raw": {
    "label": "GraphQL Raw",
    "format": "object"
  }
}
```

## About this Actor

This example demonstrates how to use [Facebook Ads Library](https://apify.com/data_xplorer/facebook-ads-library) with a specific input configuration. Visit the [Actor detail page](https://apify.com/data_xplorer/facebook-ads-library) to learn more, explore other use cases, and run it yourself.