[Tools-discuss] Re: Datatracker API
"Andrew G. Malis" <agmalis@gmail.com> Sat, 27 July 2024 15:32 UTC
Return-Path: <agmalis@gmail.com>
X-Original-To: tools-discuss@ietfa.amsl.com
Delivered-To: tools-discuss@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id B3813C157931 for <tools-discuss@ietfa.amsl.com>; Sat, 27 Jul 2024 08:32:31 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -7.104
X-Spam-Level:
X-Spam-Status: No, score=-7.104 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_HI=-5, RCVD_IN_ZEN_BLOCKED_OPENDNS=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01, URIBL_BLOCKED=0.001, URIBL_DBL_BLOCKED_OPENDNS=0.001, URIBL_ZEN_BLOCKED_OPENDNS=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com
Received: from mail.ietf.org ([50.223.129.194]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Uneiy80f2EKQ for <tools-discuss@ietfa.amsl.com>; Sat, 27 Jul 2024 08:32:27 -0700 (PDT)
Received: from mail-lj1-x234.google.com (mail-lj1-x234.google.com [IPv6:2a00:1450:4864:20::234]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature ECDSA (P-256) server-digest SHA256) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 9E2EEC14F619 for <tools-discuss@ietf.org>; Sat, 27 Jul 2024 08:32:27 -0700 (PDT)
Received: by mail-lj1-x234.google.com with SMTP id 38308e7fff4ca-2eeb1ba040aso36146351fa.1 for <tools-discuss@ietf.org>; Sat, 27 Jul 2024 08:32:27 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1722094346; x=1722699146; darn=ietf.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=4zVcu/vbzciAwaFxON0v/b61wbUA3t6lsop0oaop8Vw=; b=GFQERyIJ/n69Ux+yN3L0Ar8SrspbYRxTbbvAzpfh6/H2iP4bCrxYe/kJP53KSBWm7s 2+HvV4ZOSmkA45iJ5i+gesOGNXEJSb+qI/gbLk2Z42bXtRE40Y7dDUwT5WnV+xRpqr+y DWTF5JiPYCd8ls8nRlEKsAvqn7OyQytc+w1XmsyXc8Fm2V10QSKz26XyNJ5sntylgJsw rP2yybcjqMwkmaHGtratQ1Dza5lK5p2uo0xpq9pLxKvi/X3GtHS8qU/e0/OEfPUeHGKF U4JAoWxEqZx7nBgkXzqGO4yOtQ4MkYPieI3PWJjmq070ob/PNgTFaRGvbfpPCsJmXpTW 484A==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1722094346; x=1722699146; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=4zVcu/vbzciAwaFxON0v/b61wbUA3t6lsop0oaop8Vw=; b=ZnE9VcevfP+Fy0A5moecU7kFX82Cj1Gq81tqMl7SgZk4gjPUERVwmnwi7P4A4SDZuV T+gewavqw36iGVTREEW6z2/AEruyXLMw+CstXpI9NNIOhrzydmQksDHEnVHvGwGpUMxV DxjoxQVEhmsZLb4DlRXZzqII8rMut+RU8LEYrRG+IUFDHZsHCyoQJaV0isgt8GuszNtS gmwyAKEb00DzbfiWJk3WNchP2h5RGsmvXH8YCHd43RB6d7F3A0YglmVo8My5DXwq9xYu 1DzpyripWx3VAU8zczbC2keb7JneoqHbvMRa8kP4SxHKHPebR/XJd0DAdLEKBgH4HgR9 0COA==
X-Gm-Message-State: AOJu0YyuDl20959z2me8yH78D5aimogewopsFQcyfde/zsG3BybIXFYh 6dXTP4xJ0JUhjBc0PNDoUUoPUjIQsb1pc31GMT7frBEmi/Jjs8uJKURRIDUONAJ9zfYeC2kCydv rCJ9Iur0gbvG+RqfaNiXEctYJ5osw0A==
X-Google-Smtp-Source: AGHT+IFCYDnXSYXTCAHINlgAyfASEgHqmZP0YRzJEHOOftadXhidKdM0mrc/M38xTzZ3MvfHIxhVD5f+ePjxMxSi7tk=
X-Received: by 2002:a2e:b019:0:b0:2ef:29d4:3d97 with SMTP id 38308e7fff4ca-2f12ee03270mr17834621fa.5.1722094345536; Sat, 27 Jul 2024 08:32:25 -0700 (PDT)
MIME-Version: 1.0
References: <d06f5676-04ad-47fd-93d2-55c4e166377e@petit-huguenin.org> <28ad9824-a449-4508-a155-d5d04df3fcc6@petit-huguenin.org>
In-Reply-To: <28ad9824-a449-4508-a155-d5d04df3fcc6@petit-huguenin.org>
From: "Andrew G. Malis" <agmalis@gmail.com>
Date: Sat, 27 Jul 2024 11:32:07 -0400
Message-ID: <CAA=duU3P5TVRKfJdcH5tZaR_XrwD9v1f=eRYNW9ZsDmWB6uuAg@mail.gmail.com>
To: Marc Petit-Huguenin <marc@petit-huguenin.org>
Content-Type: multipart/alternative; boundary="000000000000bc4c08061e3c558d"
Message-ID-Hash: C5HT7IRCAGIYWR6DG33X7FGR5J644KHQ
X-Message-ID-Hash: C5HT7IRCAGIYWR6DG33X7FGR5J644KHQ
X-MailFrom: agmalis@gmail.com
X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-tools-discuss.ietf.org-0; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header
CC: tools-discuss <tools-discuss@ietf.org>
X-Mailman-Version: 3.3.9rc4
Precedence: list
Subject: [Tools-discuss] Re: Datatracker API
List-Id: IETF Tools Discussion <tools-discuss.ietf.org>
Archived-At: <https://mailarchive.ietf.org/arch/msg/tools-discuss/BE-PDV0YATt-mdlult5N3f220pI>
List-Archive: <https://mailarchive.ietf.org/arch/browse/tools-discuss>
List-Help: <mailto:tools-discuss-request@ietf.org?subject=help>
List-Owner: <mailto:tools-discuss-owner@ietf.org>
List-Post: <mailto:tools-discuss@ietf.org>
List-Subscribe: <mailto:tools-discuss-join@ietf.org>
List-Unsubscribe: <mailto:tools-discuss-leave@ietf.org>
Marc, For the record, how did you figure it out? Cheers, Andy On Sat, Jul 27, 2024 at 10:43 AM Marc Petit-Huguenin < marc@petit-huguenin.org> wrote: > On 7/26/24 9:09 AM, Marc Petit-Huguenin wrote: > > Hi, > > > > I could not find much documentation for the Datatracker HTTP API (short > of https://datatracker.ietf.org/api/) and experimenting with the various > APIs at https://datatracker.ietf.org/api/v1/doc got me nowhere. Is there > more documentation (or more examples) that I missed (short of reading the > code)? > > > > What I am trying to do is: > > > > 1. Get the list of all referenced-by documents for a specific I-D or RFC > (similar to what the button of that name returns). > > 2. Get the list of external resources for a specific I-D or RFC. (I > found https://datatracker.ietf.org/api/v1/doc/docextresource/, but could > not figure how to select a specific document) > > Never mind, I found what I needed. For the record: > > "https://datatracker.ietf.org/api/v1/doc/<document name>" get the id of > the document. > > "https://datatracker.ietf.org/api/v1/doc/relateddocument/?target=<id>" > lists all the documents that references that document > > "https://datatracker.ietf.org/api/v1/doc/docextresource/?doc=<id>" lists > all the external resources for that document. > > > -- > Marc Petit-Huguenin > Email: marc@petit-huguenin.org > Blog: https://marc.petit-huguenin.org > Profile: https://www.linkedin.com/in/petithug > > ----------------------------------------------- > Tools-discuss mailing list -- tools-discuss@ietf.org > To unsubscribe send an email to tools-discuss-leave@ietf.org > https://mailarchive.ietf.org/arch/browse/tools-discuss/
- [Tools-discuss] Datatracker API Marc Petit-Huguenin
- [Tools-discuss] Re: Datatracker API Marc Petit-Huguenin
- [Tools-discuss] Re: Datatracker API Andrew G. Malis
- [Tools-discuss] Re: Datatracker API Marc Petit-Huguenin
- [Tools-discuss] Re: Datatracker API Tim Wicinski
- [Tools-discuss] Re: Datatracker API Robert Sparks