Guides

This section provides a guide to each of the different types of data that Meta Content Library API supports plus some additional guides to further develop your expertise with the API.

Code examples

Code examples in the guides use a tabbed code block with tabs for R and Python. Click the tab for the language of your choice to display the appropriate code. This is an example:

This is the R code. Click the Python tab to display the Python code.
This is the Python code. Click the R tab to display R code.

You can copy the code in either tab and paste it into a Jupyter notebook cell for the same language (R or Python).

Facebook Pages data

Describes the /facebook/pages/preview endpoint, including parameters and some query examples.

Facebook groups data

Describes the /facebook/groups/preview endpoint, including parameters and some query examples.

Facebook events data

Describes the /facebook/events/preview endpoint, including parameters and some query examples.

Facebook profiles data

Describes the /facebook/profiles/preview endpoint, including parameters and some query examples.

Facebook posts data

Describes the /facebook/posts/preview endpoint, including parameters and some query examples.

Facebook Marketplace data

Describes the /facebook/marketplace-listings/preview endpoint, including parameters and some query examples.

Facebook fundraisers data

Describes the /facebook/fundraisers/preview endpoint, including parameters and some query examples.

Facebook donations data

Describes the Facebook /donations/preview endpoint, including parameters and some query examples.

Facebook comments data

Describes the Facebook /comments/preview endpoint, including parameters and some query examples.

Instagram accounts data

Describes the /instagram/accounts/preview endpoint, including parameters and some query examples.

Instagram posts data

Describes the /instagram/posts/preview endpoint, including parameters and some query examples.

Instagram fundraisers data

Describes the /instagram/fundraisers/preview endpoint, including parameters and some query examples.

Instagram channel data

Describes the /instagram/channels/preview endpoint, including parameters and some query examples.

Instagram channel message data

Describes the messages/preview and /instagram/channel-messages/job endpoints, including parameters and some query examples.

Instagram comments data

Describes the Instagram /comments/preview endpoint, including parameters and some query examples.

Bulk comments data

Describes the /facebook/comments/job and /instagram/comments/job endpoints, including parameters and some query examples.

ID-based retrieval

Explains how to fetch a Meta Content Library node by using a Meta Content Library ID.

Search guide

Explains how search works in the Content Library API and how to create search objects.

Advanced search guidelines

Describes boolean operators supported by the search functionality and how to use them, including examples.

Rate limiting and query budgeting

Explains the rate-limiting and query-budgeting parameters for both Content Library UI and API.

Data deletion

Describes the fixed 30-day deletion schedule Meta employs.