Overview

Use Meta Content Library API to query and analyze the Meta public content archive. Conduct data analysis in Python or R using Secure Research Environment, a secure digital cleanroom. The API can also be used in an approved third-party cleanroom. The following third-party cleanroom environments are approved as of Content Library API version 6.0:

  • Inter-university Consortium for Political and Social Research (ICPSR) at the University of Michigan

User documentation for third-party cleanroom interfaces is outside the scope of the Meta Content Library API documentation and can instead be provided by the third-party's system administrator.

The Content Library API provides access to the following public Facebook and Instagram data:

  • Facebook public Pages
  • Facebook public groups
  • Facebook public events
  • Facebook public profiles
  • Facebook posts from Facebook public Pages, profiles, groups and events
  • Facebook Marketplace listings from public Pages and profiles
  • Facebook public fundraisers and donations
  • Facebook public comments
  • Instagram public creator, business and personal accounts
  • Instagram posts from Instagram public creator, business and a subset of personal accounts
  • Instagram public fundraisers
  • Instagram public comments
  • Instagram public channels and channel messages

Facebook profiles must be set to public and have either a verified badge or a threshold number of followers to be included. A verified badge in this context refers to accounts confirmed as authentic and not those with a paid Meta Verified subscription. Learn more about verified Pages and profiles. See Guide to Facebook profiles data for the threshold number of followers by API version.

Public Instagram accounts include professional accounts for businesses and creators. They also include a subset of personal accounts that meet qualification criteria, including account privacy set to public and either a verified badge or a threshold number of followers. A verified badge in this context refers to accounts confirmed as authentic and not those with a paid Meta Verified subscription. See Guide to Instagram accounts data for the threshold number of followers by API version.

Downloading data from the API is not permitted

Downloading of Facebook and Instagram data from the Content Library API by any means is not permitted, regardless of whether you are accessing the API through Secure Research Environment or a third-party cleanroom such as the one provided by ICPSR.

Geographic scope

Public data from public Facebook Pages, groups, events and profiles, and from public Instagram accounts from most countries/territories. Public data/content will be excluded from these countries:

  • China
  • North Korea
  • South Korea
  • Togo

This means that:

  1. At least one admin of a public Facebook Page, group, event or profile must have a stated location that is in a non-excluded country or region for information about that Page, group, event or profile to be accessible. The owner of a public Instagram account must have a primary country or region that is in a non-excluded country or region for information about that account to be accessible.

  2. Of the Facebook Pages, groups, events, and profiles, and Instagram accounts that qualify based on #1, only posts made by users in non-excluded countries/territories are in scope.

Audience-restricted content

Facebook and Instagram content can have age-based or location-based audience restrictions. This can affect the data surfaced in Meta Content Library user interface (UI) and API as follows:

Age restrictions

Age restrictions may be imposed by producers on their content, or restrictions can be based on the classification of content as less appropriate for certain age groups.

Meta Content Library UI and API may not surface age-restricted content as it is not considered publicly accessible.

Location restrictions

Location restrictions may be imposed for a variety of reasons, such as producers limiting visibility of their content, local laws, legal actions, etc. For example, see Content Restrictions Based on Local Law.

Facebook

  • Meta Content Library UI does not surface location-restricted content to users accessing the tool in that restricted location.

  • Location-restricted content is unavailable to users accessing Meta Content Library API using a cleanroom that is in a restricted location.

Instagram

  • Location-restricted content is not publicly accessible and will not be surfaced in Meta Content Library UI or API.

Language scope

Search results in all languages are included unless the search is filtered based on language.

Meta Content Library

Meta Content Library is a web-based tool that allows researchers to explore and understand data across Facebook and Instagram by offering a comprehensive, visual, searchable collection of publicly accessible content—the same content that is also accessible through the Content Library API. The web-based user interface allows you to explore data, test out search parameters, and assess whether the resulting data is appropriate for your planned research. No knowledge of query or programming languages is needed.