> ## Documentation Index
> Fetch the complete documentation index at: https://agnt.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Fetch Archive Ad Details

> This endpoint allows you to retrieve detailed information about a specific ad in the archive based on its archive ID. You can filter the results by page ID, country, and flags indicating whether the ad is non-political or AAA-eligible.



## OpenAPI

````yaml /openapi/facebook.openapi.json get /v1/data/facebook/fetch_archive_ad_details
openapi: 3.0.0
info:
  title: agntdata Facebook API
  description: >-
    Unlock Facebook data effortlessly with our powerful scraping tools. Extract
    page names, URLs, contact info, likes, followers, posts, comments,
    Marketplace listings, and meta ads metrics. Perfect for market research,
    trend analysis, and optimizing marketing strategies.
  version: 1.0.0
  contact:
    name: agntdata
    url: https://agntdata.dev
servers:
  - url: https://api.agntdata.dev
    description: agntdata API
security:
  - ApiKeyAuth: []
tags:
  - name: Facebook Marketplace Listings
    description: ''
  - name: Facebook Posts Details
    description: ''
  - name: Facebook Search
    description: >-
      The Facebook Search API group provides a comprehensive set of endpoints to
      perform various types of searches across Facebook data, including posts,
      pages, people, and places. These endpoints enable users to retrieve
      targeted information based on specific query parameters and filters such
      as location, user identifiers, and other relevant attributes.
  - name: Meta Ads Library Search
    description: >-
      The Meta Ads Library Search allows you to search and retrieve detailed
      information from Meta’s Ad Library, providing insights into active and
      inactive ad campaigns across Facebook and Instagram. This tool is ideal
      for marketing analysis, competitor research, and understanding ad
      strategies.
  - name: Facebook Pages Details/Posts
    description: ''
  - name: 'Facebook Groups Details/Posts '
    description: ''
  - name: Facebook Download Media
    description: >-
      Download media (images, videos, audio) from Facebook URLs. Returns file
      size in MB and media type.
paths:
  /v1/data/facebook/fetch_archive_ad_details:
    get:
      tags:
        - Meta Ads Library Search
      summary: Fetch Archive Ad Details
      description: >-
        This endpoint allows you to retrieve detailed information about a
        specific ad in the archive based on its archive ID. You can filter the
        results by page ID, country, and flags indicating whether the ad is
        non-political or AAA-eligible.
      operationId: Fetch_Archive_Ad_Details
      parameters:
        - name: country
          in: query
          required: false
          schema:
            type: string
        - name: ad_archive_id
          in: query
          required: true
          schema:
            type: string
            default: '870923648247659'
        - name: page_id
          in: query
          required: false
          schema:
            type: string
            default: '144939265372419'
        - name: is_ad_not_aaa_eligible
          in: query
          required: false
          schema:
            type: boolean
            default: 'false'
        - name: is_ad_non_political
          in: query
          required: false
          schema:
            type: boolean
            default: 'true'
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                $ref: >-
                  #/components/schemas/Get_facebook_fetch_archive_ad_details_Response
        '400':
          description: Bad request
        '401':
          description: Unauthorized - invalid API key
        '429':
          description: Rate limit exceeded
      security:
        - ApiKeyAuth: []
components:
  schemas:
    Get_facebook_fetch_archive_ad_details_Response:
      type: object
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: Authorization
      description: >-
        Bearer token. Pass your agntdata API key as: Authorization: Bearer
        agnt_live_...

````